{"id":14955868,"url":"https://github.com/ekohe/crunchbase4","last_synced_at":"2026-03-10T00:33:14.707Z","repository":{"id":47754437,"uuid":"269236743","full_name":"ekohe/crunchbase4","owner":"ekohe","description":"A Ruby Library for CrunchBase API v4","archived":false,"fork":false,"pushed_at":"2024-10-01T00:36:13.000Z","size":705,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-30T19:18:55.181Z","etag":null,"topics":["api-service","crunchbase","crunchbase-api","ekohe","json-data","ruby","rubyonrails"],"latest_commit_sha":null,"homepage":"https://app.swaggerhub.com/apis-docs/Crunchbase/crunchbase-enterprise_api/1.0.3","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekohe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-06-04T01:57:23.000Z","updated_at":"2024-08-18T12:55:40.000Z","dependencies_parsed_at":"2024-08-18T13:58:54.235Z","dependency_job_id":"6d8fdc1a-d2d9-42a2-96c9-03adeb5128a2","html_url":"https://github.com/ekohe/crunchbase4","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":"0.25531914893617025","last_synced_commit":"204121b96865291095f2d987651c11c3f3660133"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ekohe/crunchbase4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekohe%2Fcrunchbase4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekohe%2Fcrunchbase4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekohe%2Fcrunchbase4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekohe%2Fcrunchbase4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekohe","download_url":"https://codeload.github.com/ekohe/crunchbase4/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekohe%2Fcrunchbase4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30318460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-service","crunchbase","crunchbase-api","ekohe","json-data","ruby","rubyonrails"],"created_at":"2024-09-24T13:11:55.587Z","updated_at":"2026-03-10T00:33:14.681Z","avatar_url":"https://github.com/ekohe.png","language":"Ruby","readme":"# Crunchbase4\n\nCrunchbase4 is a ruby wrapper based on Crunchbase V4 API, it provides easy to get the API data by each endpoint. [Crunchbase Enterprise API, 2021-07-16](https://app.swaggerhub.com/apis/Crunchbase/crunchbase-enterprise_api/1.0.3)\n\n[![Gem Version](https://badge.fury.io/rb/crunchbase4.svg)](https://badge.fury.io/rb/crunchbase4)\n[![Build Status](https://travis-ci.org/ekohe/crunchbase4.svg?branch=master)](https://travis-ci.org/ekohe/crunchbase4)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'crunchbase4', github: 'ekohe/crunchbase4'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install crunchbase4\n\n## Getting Started\n\n#### Crunchbase API Infos\n\n- Title: Crunchbase Enterprise API\n- Last Updated Date: 2021-07-16\n- Servers URL: https://api.crunchbase.com/api/v4\n- API Reference doc: https://data.crunchbase.com/docs\n- Tags\n  - Autocomplete\n  - Deleted Entities\n  - Entity\n  - Search\n\n#### Configure your certificate for API\n\n```ruby\nrequire 'crunchbase'\n\nconfig = YAML.load(File.read('spec/crunchbase.yml'))\nCrunchbase.config.user_key = config['user_key']\nCrunchbase.config.debug = config['debug'] || false # If you want to know the request information, can set the debug = true\n```\n\n#### If you want to use it in Rails Application, simple way to create a file `crunchbase.rb` in `config/initializers`\n\n- and put the above info(https://github.com/ekohe/crunchbase4#configure-your-certificate-for-api) into the new file\n\n\n## Usage\n\n#### Class: `Client` for API\n\n```\npry(main)\u003e client = Crunchbase::Client.new\n```\n\n#### API request for endpoint we completed\n\n- [Entity](https://github.com/ekohe/crunchbase4#entity)\n  - Organization\n    - fields\n    - cards: [raised_investments, participated_funds, child_organizations, participated_investments, investors, parent_organization, raised_funding_rounds, ipos, event_appearances, raised_funds, acquiree_acquisitions, acquirer_acquisitions, parent_ownership, jobs, founders, child_ownerships, participated_funding_rounds, press_references, headquarters_address]\n  - Person\n    - fields\n  - FundingRound\n    - fields\n- [Searches](https://github.com/ekohe/crunchbase4#search)\n- [Autocompletes](https://github.com/ekohe/crunchbase4#autocompletes)\n- [Deleted Entities](https://github.com/ekohe/crunchbase4#deleted-entities)\n\n```ruby\n\u003c!-- Examples of organization and single card --\u003e\nresponse                = client.organization('ekohe')\nipos                    = client.organization('ekohe', card_id: 'ipos')\nfund                    = client.organization('ekohe', card_id: 'fund')\nownership               = client.organization('ekohe', card_id: 'ownership')\nfounders                = client.organization('ekohe', card_id: 'founders')\ninvestors               = client.organization('ekohe', card_id: 'investors')\njobs                    = client.organization('ekohe', card_id: 'jobs')\nheadquarters_address    = client.organization('ekohe', card_id: 'headquarters_address')\ntop_2_press_references  = client.organization('ekohe', card_id: 'press_references', limit: 2)\n\n\u003c!-- Examples to get the funding rounds of the organization through paging --\u003e\nresponse = client.organization(\n  'facebook', card_id: 'participated_funding_rounds',\n  limit: 5,\n  order: 'announced_on:desc',\n  after_id: '3cdfcecd-5377-439b-acab-cefcf6fe21a5'\n)\n\n\u003c!-- Examples of person and single card --\u003e\n\nresponse = client.person('mark-zuckerberg')\nresponse = client.person('mark-zuckerberg', card_id: 'participated_investments')\nresponse = client.funding_round('3cdfcecd-5377-439b-acab-cefcf6fe21a5')\nresponse = client.funding_round('3cdfcecd-5377-439b-acab-cefcf6fe21a5', card_id: 'investors')\nresponse = client.acquisition('7638eae9-07b7-4fc6-ad20-5d99de3ff928')\nresponse = client.fund('aeaac12b-df56-7039-40f9-f1992f88e20e')\nresponse = client.ownership('4506d9ce-85d3-4a8f-89cd-07a225359d55')\n\n\u003c!-- Get the JSON response of entity --\u003e\n\nresponse.as_json\n\n\u003c!-- Search --\u003e\nclient.search_organizations(query_data)\nclient.search_people(query_data)\nclient.search_funding_rounds(query_data)\nclient.recent_updates({\n                        scope_name: 'organization',\n                        field_ids: %w[name website permalink],\n                        date: '2020-05-05',\n                        limit: 100\n                      })\n\n\u003c!-- Autocompletes --\u003e\nresponse = client.autocomplete('ekohe')\nresponse = client.autocomplete('ekohe', collection_ids: 'organizations')\nresponse = client.autocomplete('ekohe', collection_ids: 'organizations', limit: 3)\nresponse = client.autocomplete('encore', collection_ids: 'people')\nresponse = client.autocomplete('facebook', collection_ids: 'funding_rounds')\nresponse = client.autocomplete('facebook', collection_ids: 'press_references')\n\n\u003c!-- Deleted Entities --\u003e\nresponse = client.deledeted_entities(collection_ids: 'organizations')\nresponse = client.deledeted_entities(collection_ids: 'people')\nresponse = client.deledeted_entities(collection_ids: 'funding_rounds')\n```\n\n#### Module: Utils\n\n* We return all the original data from CrunchBase without any conversion. So you want to use the converted data, you can use this tool to convert.\n\n```ruby\npry(main)\u003e Crunchbase::Utils.constants\n=\u003e [:QUERY_OPERATORS,\n :COMPANY_TYPES,\n :FACET_IDS,\n :IPO_STATUS,\n :FUNDING_STAGES,\n :FUNDING_TYPES,\n :CURRENCY_ENUM,\n :DATE_PRECISIONS,\n :LAYOUT_IDS,\n :NUM_EMPLOYEES_ENUM,\n :OPERATING_STATUS,\n :PROGRAM_TYPES,\n :REVENUE_RANGES,\n :SCHOOL_METHODS,\n :SCHOOL_TYPES,\n :STATUS,\n :STOCK_EXCHANGE_SYMBOLS]\npry(main)\u003e Crunchbase::Utils::COMPANY_TYPES\n=\u003e {\"for_profit\"=\u003e\"For Profit\", \"non_profit\"=\u003e\"Non-profit\"}\n```\n\n### Entity\n\n####  Get the organization data\n\n```ruby\npry(main)\u003e response = client.organization('ekohe')\n=\u003e #\u003cCrunchbase::Models::Organization:0x00007fbc5cfdf2f8\n @categories=[\"Apps\", \"Artificial Intelligence\", \"Big Data\", \"Blockchain\", \"Cryptocurrency\", \"Enterprise Software\", \"iOS\", \"Machine Learning\", \"Retail\", \"UX Design\"],\n @category_groups=[\"Apps\", \"Artificial Intelligence\", \"Commerce and Shopping\", \"Data and Analytics\", \"Design\", \"Financial Services\", \"Mobile\", \"Platforms\", \"Science and Engineering\", \"Software\"],\n @company_type=\"for_profit\",\n @contact_email=\"info@ekohe.com\",\n @created_at=\"2013-05-14T14:28:38Z\",\n ...\n ...\u003e\npry(main)\u003e response.name\n=\u003e \"Ekohe\"\npry(main)\u003e response.permalink\n=\u003e \"ekohe\"\n```\n\nOr, if you want to use json data, please call `response.as_json` in your project.\n\n##### Get the person data\n\n```ruby\npry(main)\u003e response = client.person('mark-zuckerberg')\n=\u003e #\u003cCrunchbase::Models::Person:0x00007ffbf201d178\n @aliases=[\"Zuck\"],\n @born_on=\"1984-05-14\",\n @created_at=\"2007-05-26T04:51:46Z\",\n @entity_def_id=\"person\",\n @entity_id=\"mark-zuckerberg\",\n @facebook=\"https://www.facebook.com/zuck\",\n @facet_ids=[\"investor\", \"rank\"],\n @first_name=\"Mark\",\n @gender=\"male\",\n...\u003e\npry(main)\u003e response.name\n=\u003e \"Mark Zuckerberg\"\npry(main)\u003e response.permalink\n=\u003e \"mark-zuckerberg\"\n```\n\n##### Get the funding round data\n\n```ruby\npry(main)\u003e response = client.funding_round('371c20af-8aa9-4bcb-a8da-0694d138f247')\n=\u003e #\u003cCrunchbase::Models::FundingRound:0x00007f8806b55ca8\n @announced_on=\"2013-06-30\",\n @closed_on=nil,\n @created_at=\"2020-04-02T12:17:59Z\",\n @entity_def_id=\"funding_round\",\n @funded_organization_categories=nil,\n @funded_organization_description=\"Facebook is an online social networking service that enables its users to connect with friends and family.\",\n @funded_organization_funding_stage=\"ipo\",\n @funded_organization_funding_total=16122817488,\n @funded_organization_identifier=\"Facebook\",\n @funded_organization_location=[\"Menlo Park\", \"California\", \"United States\", \"North America\"],\n @funded_organization_revenue_range=\"r_10000000\",\n ....\u003e\npry(main)\u003e response.name\n=\u003e \"Secondary Market - Facebook\"\npry(main)\u003e response.uuid\n=\u003e \"371c20af-8aa9-4bcb-a8da-0694d138f247\"\n```\n##### Get the fund data\n\n```ruby\npry(main)\u003e response = client.fund('aeaac12b-df56-7039-40f9-f1992f88e20e')\n=\u003e #\u003cCrunchbase::Models::Fund:0x00007ffa6a5a4080\n @announced_on=\"2017-04-03\",\n @created_at=\"2017-04-04T04:40:49Z\",\n @entity_def_id=\"fund\",\n @image_id=\"v1491280776/azwvvy68ap2o29ffcnn7.png\",\n @investor_identifiers=[\"Betaworks\", \"Craig Newmark Philanthropies\", \"Democracy Fund\", \"Facebook\", \"Ford Foundation\", \"Knight Foundation\", \"Mozilla\", \"Tow Foundation\"],\n @money_raised=14000000,\n @name=\"The News Integrity Initiative Fund I\",\n @num_investors=8,\n @owner_identifier=\"The News Integrity Initiative\",\n @permalink=\"the-news-integrity-initiative-raised-the-news-integrity-initiative-fund-i--aeaac12b\",\n @short_description=\"The News Integrity Initiative raises new  The News Integrity Initiative Fund I on 2017-04-03\",\n @started_on=nil,\n @updated_at=\"2018-02-12T22:18:54Z\",\n @uuid=\"aeaac12b-df56-7039-40f9-f1992f88e20e\"\u003e\npry(main)\u003e response.name\n=\u003e \"The News Integrity Initiative Fund I\"\npry(main)\u003e response.uuid\n=\u003e \"aeaac12b-df56-7039-40f9-f1992f88e20e\"\n```\n\n##### Get the acquisition data\n\n```ruby\npry(main)\u003e response = client.acquisition('7638eae9-07b7-4fc6-ad20-5d99de3ff928')\n=\u003e #\u003cCrunchbase::Models::Acquisition:0x00007fa01134da60\n @acquiree_categories=[\"Communities\", \"Internet\", \"Photo Sharing\", \"Publishing\", \"Search Engine\", \"Social Media\"],\n @acquiree_funding_total=150949998,\n @acquiree_identifier=\"Giphy\",\n @acquiree_last_funding_type=\"series_d\",\n @acquiree_locations=[\"New York\", \"New York\", \"United States\", \"North America\"],\n ...\u003e\npry(main)\u003e response.uuid\n=\u003e \"7638eae9-07b7-4fc6-ad20-5d99de3ff928\"\npry(main)\u003e response.acquiree_funding_total\n=\u003e 150949998\n```\n\n##### Get the press reference data\n\n```ruby\npry(main)\u003e response = client.press_reference('0171b30e-9cf8-4ad5-8288-2993e4308e0f')\n=\u003e #\u003cCrunchbase::Models::PressReference:0x00007fd6faf97800\n @activity_entities=\n  [#\u003cCrunchbase::Models::Organization:0x00007fd6fb41d9d8\n    @aliases=nil,\n    @description=nil,\n    @identifier=[],\n    @legal_name=nil,\n    @linkedin=nil,\n    @name=\"Facebook\",\n    @permalink=\"facebook\",\n    @permalink_aliases=nil,\n    @rank_org=nil,\n    @rank_org_company=nil,\n    @short_description=nil,\n    @twitter=nil,\n    @uuid=\"df662812-7f97-0b43-9d3e-12f64f504fbb\",\n    @website=nil\u003e,\n   #\u003cCrunchbase::Models::Organization:0x00007fd6fb42f2c8\n    @aliases=nil,\n    @description=nil,\n    @identifier=[],\n    @legal_name=nil,\n    @linkedin=nil,\n    @name=\"General Atlantic\",\n    @permalink=\"general-atlantic\",\n    @permalink_aliases=nil,\n    @rank_org=nil,\n    @rank_org_company=nil,\n    @short_description=nil,\n    @twitter=nil,\n    @uuid=\"8b8d96f8-9dfe-b27a-8f57-7d266a051dc9\",\n    @website=nil\u003e,\n   #\u003cCrunchbase::Models::Organization:0x00007fd6fb42da18\n    @aliases=nil,\n    @description=nil,\n    @identifier=[],\n    @legal_name=nil,\n    @linkedin=nil,\n    @name=\"Kohlberg Kravis Roberts\",\n    @permalink=\"kkr\",\n    @permalink_aliases=nil,\n    @rank_org=nil,\n    @rank_org_company=nil,\n    @short_description=nil,\n    @twitter=nil,\n    @uuid=\"6c93ebd7-3558-5603-daaf-074652d0e1bb\",\n    @website=nil\u003e,\n   #\u003cCrunchbase::Models::Organization:0x00007fd6fb42c168\n    @aliases=nil,\n    @description=nil,\n    @identifier=[],\n    @legal_name=nil,\n    @linkedin=nil,\n    @name=\"Reliance Industries\",\n    @permalink=\"reliance-industries-84fd\",\n    @permalink_aliases=nil,\n    @rank_org=nil,\n    @rank_org_company=nil,\n    @short_description=nil,\n    @twitter=nil,\n    @uuid=\"7ba47aa0-0e01-4101-a74d-67a8205584fd\",\n    @website=nil\u003e,\n   #\u003cCrunchbase::Models::Organization:0x00007fd6fb43e868\n    @aliases=nil,\n    @description=nil,\n    @identifier=[],\n    @legal_name=nil,\n    @linkedin=nil,\n    @name=\"Vista Equity Partners\",\n    @permalink=\"vista-equity-partners\",\n    @permalink_aliases=nil,\n    @rank_org=nil,\n    @rank_org_company=nil,\n    @short_description=nil,\n    @twitter=nil,\n    @uuid=\"4d096273-ae5d-d4c3-a411-20a42514d2ce\",\n    @website=nil\u003e],\n @author=nil,\n @created_at=\"2020-06-05T17:41:10Z\",\n @entity_def_id=\"press_reference\",\n @identifier=[\"0171b30e-9cf8-4ad5-8288-2993e4308e0f\", \"Jio Platforms to receive $1.2b from Abu Dhabi’s sovereign investment firm\"],\n @posted_on=\"2020-06-05\",\n @publisher=\"Tech in Asia\",\n @thumbnail_url=\"https://cdn.techinasia.com/wp-content/uploads/2016/07/Flickr_-_World_Economic_Forum_-_Ambani.jpg\",\n @title=\"Jio Platforms to receive $1.2b from Abu Dhabi’s sovereign investment firm\",\n @updated_at=\"2020-06-05T17:41:10Z\",\n @url=\"https://ift.tt/3cByFh1\",\n @uuid=\"0171b30e-9cf8-4ad5-8288-2993e4308e0f\"\u003e\n```\n\n##### Get the investment data\n\n```ruby\npry(main)\u003e response = client.investment('1368da0c-07b0-46ef-9a86-b518367e60d6')\n=\u003e #\u003cCrunchbase::Models::Investment:0x00007f8c15105830\n @announced_on=\"2013-06-30\",\n @created_at=\"2020-04-02T12:17:59Z\",\n @entity_def_id=\"investment\",\n @funding_round_identifier=\"Secondary Market - Facebook\",\n @funding_round_money_raised=nil,\n @identifier=\"Jean-Brice Abrial investment in Secondary Market - Facebook\",\n @investor_identifier=\"Jean-Brice Abrial\",\n @investor_stage=[\"early_stage_venture\", \"seed\"],\n @investor_type=[\"angel\"],\n @is_lead_investor=nil,\n @money_invested=1500000.0,\n @name=\"Jean-Brice Abrial investment in Secondary Market - Facebook\",\n @organization_identifier=\"Facebook\",\n @partner_identifiers=nil,\n @permalink=\"jean-brice-abrial-invested-in-facebook-secondary-market--371c20af--1368da0c\",\n @updated_at=\"2020-04-02T12:17:59Z\",\n @uuid=\"1368da0c-07b0-46ef-9a86-b518367e60d6\"\u003e\n```\n\n##### Get the ownership data\n\n```ruby\npry(main)\u003e response = client.ownership('4506d9ce-85d3-4a8f-89cd-07a225359d55')\n=\u003e #\u003cCrunchbase::Models::Ownership:0x00007fbf2fdb78b0\n @created_at=\"2015-03-04T20:04:23Z\",\n @entity_def_id=\"ownership\",\n @identifier=[\"4506d9ce-85d3-4a8f-89cd-07a225359d55\", \"Facebook owns Instagram\", \"facebook-owns-instagram--4506d9ce\"],\n @name=\"Facebook owns Instagram\",\n @ownee_identifier=\"Instagram\",\n @owner_identifier=\"Facebook\",\n @ownership_type=\"subsidiary\",\n @permalink=\"facebook-owns-instagram--4506d9ce\",\n @updated_at=\"2018-02-13T01:18:10Z\",\n @uuid=\"4506d9ce-85d3-4a8f-89cd-07a225359d55\"\u003e\npry(main)\u003e response.name\n=\u003e \"Facebook owns Instagram\"\npry(main)\u003e response.uuid\n=\u003e \"4506d9ce-85d3-4a8f-89cd-07a225359d55\"\n```\n\n### Search\n\n* Search query parameters for each endpoint\n\n```ruby\n{\n  \"field_ids\": [],\n  \"query\": [],\n  \"order\": [],\n  \"limit\": 0\n}\n```\n\n##### Get the latest updated entities\n\nAllow user using the method `recent_updates(args)` to get recent updates for each endpoint on searches\n\n* Example to get recent updated organizations\n\n```ruby\nargs = {\n  scope_name: 'organization',             # must\n  date: '2020-05-05',                     # must\n  field_ids: %w[name website permalink],  # default %[uuid created_at updated_at]\n  sort: 'desc'                            # default `desc`\n  before_id: 'uuid'                       # optional\n  after_id: 'uuid'                        # optional\n}\n\nresponse = client.recent_updates(args)\n\nargs = {\n  scope_name: 'press_reference',             # must\n  from_date: '2020-05-05',                   # optional\n  to_date: '2020-05-05',                     # optional\n  field_ids: %w[title posted_on publisher],  # default %[uuid created_at updated_at]\n  sort: 'desc'                              # default `desc`\n  before_id: 'uuid'                         # optional\n  after_id: 'uuid'                          # optional\n}\n\nresponse = client.recent_updates(args)\n```\n\n##### Search organizations by query conditions and order\n\n* building the query conditions\n\n```ruby\nquery_data = {\n  'field_ids' =\u003e %w[\n    name\n    website\n    uuid\n    short_description\n    company_type\n  ],\n  'order' =\u003e [\n    {\n      'field_id' =\u003e 'company_type',\n      'sort' =\u003e 'asc'\n    }\n  ],\n  'query' =\u003e [\n    {\n      'type' =\u003e 'predicate',\n      'field_id' =\u003e 'funding_total',\n      'operator_id' =\u003e 'between',\n      'values' =\u003e [\n        {\n          'value' =\u003e 1_000_000,\n          'currency' =\u003e 'usd'\n        },\n        {\n          'value' =\u003e 10_000_000,\n          'currency' =\u003e 'usd'\n        }\n      ]\n    },\n    {\n      'type' =\u003e 'predicate',\n      'field_id' =\u003e 'facet_ids',\n      'operator_id' =\u003e 'includes',\n      'values' =\u003e %w[company investor]\n    }\n  ],\n  'limit' =\u003e 4\n}\n```\n\n* Use `client` to send a request and parse response\n\n```ruby\npry(main)\u003e response = client.search_organizations(query_data)\n=\u003e #\u003cCrunchbase::Searches::Client:0x00007fdfc1ad6eb8\n @conditions=\n  {\"field_ids\"=\u003e[\"name\", \"website\", \"uuid\", \"short_description\", \"company_type\"],\n   \"order\"=\u003e[{\"field_id\"=\u003e\"company_type\", \"sort\"=\u003e\"asc\"}],\n   \"query\"=\u003e\n    [{\"type\"=\u003e\"predicate\", \"field_id\"=\u003e\"funding_total\", \"operator_id\"=\u003e\"between\", \"values\"=\u003e[{\"value\"=\u003e1000000, \"currency\"=\u003e\"usd\"}, {\"value\"=\u003e10000000, \"currency\"=\u003e\"usd\"}]},\n     {\"type\"=\u003e\"predicate\", \"field_id\"=\u003e\"facet_ids\", \"operator_id\"=\u003e\"includes\", \"values\"=\u003e[\"company\", \"investor\"]}],\n   \"limit\"=\u003e4},\n @count=4,\n @entities=\n  [#\u003cCrunchbase::Models::Organization:0x00007fdfc1b06460\n    @company_type=\"for_profit\",\n    @name=\"360VUZ\",\n    @short_description=\"360VUZ is an immersive virtual video mobile app that enables users to teleport from their smartphone in 360°\",\n    @uuid=\"cb32a4d7-2bd0-1727-a055-63aa6a545380\",\n    @website=\"http://www.360VUZ.com\"\u003e,\n   #\u003cCrunchbase::Models::Organization:0x00007fdfc1b05b78\n    @company_type=\"for_profit\",\n    @name=\"HATCHER+\",\n    @short_description=\"Hatcher+ is a data-driven venture investment platform.\",\n    @uuid=\"a0ed41b8-8031-adad-dbb3-2e8f8e1e6848\",\n    @website=\"https://h2.hatcher.com\"\u003e,\n   #\u003cCrunchbase::Models::Organization:0x00007fdfc1b05290\n    @company_type=\"for_profit\",\n    @name=\"Merck\",\n    @short_description=\"Merck is a biopharmaceutical company that offers medicines and vaccines for various diseases.\",\n    @uuid=\"2f9b212a-d3aa-a8c2-6317-516127c8ba88\",\n    @website=\"http://www.merck.com\"\u003e,\n   #\u003cCrunchbase::Models::Organization:0x00007fdfc1b049a8\n    @company_type=\"for_profit\",\n    @name=\"Archistar.ai\",\n    @short_description=\"World-first artificial intelligence helping professionals find development sites, assess for feasibility and generate architectural designs\",\n    @uuid=\"3be8b43a-1143-4e26-8ecb-660a5a78edc5\",\n    @website=\"https://archistar.ai/\"\u003e],\n @entity_type=\"organization\",\n @kclass_name=Crunchbase::Models::Organization,\n @total_count=44871\u003e\n```\n\n- Get entities: response.entities\n- Get total count: response.total_count\n- Get entities count: response.count\n\n##### Search people by query conditions and order\n\n* building the query conditions\n\n```ruby\nquery_data = {\n  'field_ids' =\u003e %w[\n    first_name\n    last_name\n    uuid\n    permalink\n    name\n  ],\n  'order' =\u003e [\n    {\n      'field_id' =\u003e 'last_name',\n      'sort' =\u003e 'asc',\n      'nulls' =\u003e 'last'\n    }\n  ],\n  'query' =\u003e [\n    {\n      'type' =\u003e 'predicate',\n      'field_id' =\u003e 'first_name',\n      'operator_id' =\u003e 'contains',\n      'values' =\u003e [\n        'Maxime'\n      ]\n    },\n    {\n      'type' =\u003e 'predicate',\n      'field_id' =\u003e 'last_name',\n      'operator_id' =\u003e 'contains',\n      'values' =\u003e [\n        'Guilbot'\n      ]\n    }\n  ],\n  'limit' =\u003e 5\n}\n```\n\n* Use `client` to send a request and parse response\n\n```ruby\npry(main)\u003e response = client.search_people(query_data)\n=\u003e #\u003cCrunchbase::Searches::Client:0x00007f9acca12d18\n @conditions=\n  {\"field_ids\"=\u003e[\"first_name\", \"last_name\", \"uuid\", \"permalink\", \"name\"],\n   \"order\"=\u003e[{\"field_id\"=\u003e\"last_name\", \"sort\"=\u003e\"asc\", \"nulls\"=\u003e\"last\"}],\n   \"query\"=\u003e\n    [{\"type\"=\u003e\"predicate\", \"field_id\"=\u003e\"first_name\", \"operator_id\"=\u003e\"contains\", \"values\"=\u003e[\"Maxime\"]}, {\"type\"=\u003e\"predicate\", \"field_id\"=\u003e\"last_name\", \"operator_id\"=\u003e\"contains\", \"values\"=\u003e[\"Guilbot\"]}],\n   \"limit\"=\u003e5},\n @count=1,\n @entities=[#\u003cCrunchbase::Models::Person:0x00007f9acca43418 @first_name=\"Maxime\", @last_name=\"Guilbot\", @name=\"Maxime Guilbot\", @permalink=\"maxime-guilbot\", @uuid=\"90f4c92e-3479-1f6e-6470-b2ae78805839\"\u003e],\n @entity_type=\"person\",\n @kclass_name=Crunchbase::Models::Person,\n @total_count=1\u003e\npry(main)\u003e response.entities\n=\u003e [#\u003cCrunchbase::Models::Person:0x00007f9acca43418 @first_name=\"Maxime\", @last_name=\"Guilbot\", @name=\"Maxime Guilbot\", @permalink=\"maxime-guilbot\", @uuid=\"90f4c92e-3479-1f6e-6470-b2ae78805839\"\u003e]\npry(main)\u003e response.total_count\n=\u003e 1\n```\n\n### Autocompletes\n\n##### Allow users to filter by keyword from these endpoints\n\nSearch by keyword has been supported in \"Organization\", \"People\" and \"Fund Round\"\n\n* Search in an organization by keyword\n\n```ruby\npry(main)\u003e response = client.autocomplete('ekohe', collection_ids: 'organizations')\n=\u003e #\u003cCrunchbase::Autocompletes::Client:0x00007fecb34ce1e8\n @conditions={:query=\u003e\"ekohe\", :collection_ids=\u003e\"organizations\"},\n @count=25,\n @entities=\n  [#\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb3976cb8\n    @facet_ids=[\"siftery\", \"apptopia\", \"company\", \"rank\", \"builtwith\", \"bombora\", \"similarweb\"],\n    @identifier=[\"9fe491b2-b6a1-5c87-0f4d-226dd0cc97a9\", \"Ekohe\", \"ekohe\"],\n    @permalink=\"ekohe\",\n    @short_description=\"Creating cutting-edge, useful technical solutions to move you forward -- we deliver on the promise of AI.\",\n    @uuid=\"9fe491b2-b6a1-5c87-0f4d-226dd0cc97a9\"\u003e,\n   #\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb3975980\n    @facet_ids=[\"rank\", \"builtwith\", \"company\", \"siftery\"],\n    @identifier=[\"4994381c-3f6a-07bc-6ccf-a180cfbfbf60\", \"Ekohealth\", \"ekohealth\"],\n    @permalink=\"ekohealth\",\n    @short_description=\"Ekohealth is an online platform, entitling the patients having Ekohealth card to avail up to 50% discount on medical expense.\",\n    @uuid=\"4994381c-3f6a-07bc-6ccf-a180cfbfbf60\"\u003e,\n   #\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb3974cb0\n    @facet_ids=[\"siftery\", \"apptopia\", \"company\", \"rank\", \"builtwith\", \"bombora\", \"similarweb\"],\n    @identifier=[\"d21d2598-6f76-d6b4-458e-579bc9c3a36d\", \"EcoHealth Alliance\", \"ecohealth-alliance\"],\n    @permalink=\"ecohealth-alliance\",\n    @short_description=\"EcoHealth Alliance is a solutions that promote conservation and prevents pandemics.\",\n    @uuid=\"d21d2598-6f76-d6b4-458e-579bc9c3a36d\"\u003e,\n    ...]\npry(main)\u003e response.entities\npry(main)\u003e response.count\npry(main)\u003e response.total_count\n```\n\n* Search in an people by keyword\n\n```ruby\npry(main)\u003e response = client.autocomplete('maxime', collection_ids: 'people')\n=\u003e #\u003cCrunchbase::Autocompletes::Client:0x00007fecb474f9c0\n @conditions={:query=\u003e\"maxime\", :collection_ids=\u003e\"people\"},\n @count=25,\n @entities=\n  [#\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb477db40\n    @facet_ids=[\"rank\"],\n    @identifier=[\"e270e799-052d-60ba-86d4-9c0535556851\", \"Maxime Leufroy-Murat\", \"maxime-leufroy-murat\"],\n    @permalink=\"maxime-leufroy-murat\",\n    @short_description=\"Maxime Leufroy-Murat - CEO @ FG Properties\",\n    @uuid=\"e270e799-052d-60ba-86d4-9c0535556851\"\u003e,\n   #\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb477ce70\n    @facet_ids=[\"rank\"],\n    @identifier=[\"0b71cab9-43dc-4f03-9267-4dcbc191ec30\", \"Maxime Schwab\", \"maxime-schwab\"],\n    @permalink=\"maxime-schwab\",\n    @short_description=\"Co-Founder\",\n    @uuid=\"0b71cab9-43dc-4f03-9267-4dcbc191ec30\"\u003e,\n   #\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb477c1f0\n    @facet_ids=[\"rank\"],\n    @identifier=[\"527a4a8e-46e4-d808-c7df-b540bd8fedab\", \"Maxime Lombardini\", \"maxime-lombardini\"],\n    @permalink=\"maxime-lombardini\",\n    @short_description=\"Maxime Lombardini is Chief Executive Officer and Member of the board of Iliad since 2007. \\r\\n\\r\\nBefore joining Iliad, Maxime Lombardini use to...\",\n    @uuid=\"527a4a8e-46e4-d808-c7df-b540bd8fedab\"\u003e,\n    ...]\npry(main)\u003e response.entities\npry(main)\u003e response.count\npry(main)\u003e response.total_count\n```\n\n* Search in an funding rounds by keyword\n\n```ruby\npry(main)\u003e response = client.autocomplete('facebook', collection_ids: 'funding_rounds')\n=\u003e #\u003cCrunchbase::Autocompletes::Client:0x00007fecb4dd66b8\n @conditions={:query=\u003e\"facebook\", :collection_ids=\u003e\"funding_rounds\"},\n @count=25,\n @entities=\n  [#\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb4e04950\n    @facet_ids=[\"rank\"],\n    @identifier=[\"6fae3958-a001-27c0-fb7e-666266aedd78\", \"Series B - Facebook\", \"facebook-series-b--6fae3958\"],\n    @permalink=\"facebook-series-b--6fae3958\",\n    @short_description=\"Facebook raised $27500000 on 2006-04-01 in Series B\",\n    @uuid=\"6fae3958-a001-27c0-fb7e-666266aedd78\"\u003e,\n   #\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb4e17c30\n    @facet_ids=[\"rank\"],\n    @identifier=[\"d950d7a5-79ff-fb93-ca87-13386b0e2feb\", \"Series A - Facebook\", \"facebook-series-a--d950d7a5\"],\n    @permalink=\"facebook-series-a--d950d7a5\",\n    @short_description=\"Facebook raised $12700000 on 2005-05-01 in Series A\",\n    @uuid=\"d950d7a5-79ff-fb93-ca87-13386b0e2feb\"\u003e,\n   #\u003cCrunchbase::Models::AutocompleteEntity:0x00007fecb4e16f60\n    @facet_ids=[\"rank\"],\n    @identifier=[\"59971bc0-0935-be60-e279-a9db5e787169\", \"Secondary Market - Facebook\", \"facebook-secondary-market--59971bc0\"],\n    @permalink=\"facebook-secondary-market--59971bc0\",\n    @short_description=\"Facebook raised $120000000 on 2010-06-28 in Secondary Market\",\n    @uuid=\"59971bc0-0935-be60-e279-a9db5e787169\"\u003e,\n    ...]\npry(main)\u003e response.entities\npry(main)\u003e response.count\npry(main)\u003e response.total_count\n```\n\n### Deleted Entities\n\n* Get deleted entities by collection_ids\n\n```ruby\npry(main)\u003e response = client.deleted_entities\n=\u003e #\u003cCrunchbase::DeletedEntities::Client:0x00007fa9196b6498\n @conditions={:collection_ids=\u003e\"organizations\"},\n @count=1000,\n @entities=\n  [#\u003cCrunchbase::Models::DeletedEntity:0x00007fa9197f9df0 @deleted_at=\"2020-06-06T11:51:34Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"31e5d1dd-3a7d-4c8c-b7dc-4780d391bbc3\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa9197f8fb8 @deleted_at=\"2020-06-06T10:43:10Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"31d2ba51-ef94-4039-a6fc-22e5c1f0ed80\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa9197f86a8 @deleted_at=\"2020-06-05T18:32:20Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"3f105ec3-606c-4779-85c8-29ec78d67d2d\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91981fd48 @deleted_at=\"2020-06-05T15:01:59Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"e66d053a-86fa-4f5f-9c98-1d4b3ed0778d\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91981f438 @deleted_at=\"2020-06-05T13:17:39Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"014de711-a0b0-4e29-a8ce-5f8c2696d9af\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91981eb28 @deleted_at=\"2020-06-05T13:09:11Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"8b3102a2-04cc-4fb2-85cb-b2aa55662291\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91981e218 @deleted_at=\"2020-06-05T11:47:50Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"62ae4ffc-a999-4c09-8c42-eef26be606aa\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91981d908 @deleted_at=\"2020-06-05T11:47:34Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"7aa08989-f6ef-427c-96ac-7e1482a7eec1\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91981cff8 @deleted_at=\"2020-06-05T11:46:13Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"7a6a5e41-d396-437a-9dfb-8539ef554268\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91981c6e8 @deleted_at=\"2020-06-05T11:45:21Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"10db5120-a638-40eb-b636-e7cca20708e0\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91982fd88 @deleted_at=\"2020-06-05T11:45:01Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"86c09840-b344-4687-a5ee-e5ea851b0b94\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91982f478 @deleted_at=\"2020-06-05T11:44:07Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"2ac345e0-f6a0-4352-b66b-3254d4616c87\"\u003e,\n   #\u003cCrunchbase::Models::DeletedEntity:0x00007fa91982eb68 @deleted_at=\"2020-06-05T11:43:23Z\", @entity_def_id=\"organization\", @identifier=[], @uuid=\"9fa9c806-bc1b-49e6-81f4-719cbfd7928e\"\u003e,\n   ....]\npry(main)\u003e response.entities\npry(main)\u003e response.count\npry(main)\u003e response.total_count\n\n# Get deleted people and funding rounds\npry(main)\u003e response = client.deleted_entities(collection_ids: 'people')\npry(main)\u003e response = client.deleted_entities(collection_ids: 'funding_rounds')\n```\n\n### Daily CSV Export\n\n* https://api.crunchbase.com/bulk/v4/bulk_export.tar.gz?user_key=user_key\n\n\n```ruby\npry(main)\u003e response = client.download_bulk(dir, extract: true)\n```\n\nAfter running the download operation, you will see `bulk_export.tar.gz` in your provided folder.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\n## Changelog\n\nIf you want to know what update, please check the [Changelog](https://github.com/ekohe/crunchbase4/blob/master/CHANGELOG.md).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ekohe/crunchbase4. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected.\n\nTo see all contributors from https://github.com/ekohe/crunchbase4/graphs/contributors\n\n## License\n\nCrunchbase is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Crunchbase project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/ekohe/crunchbase4/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekohe%2Fcrunchbase4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekohe%2Fcrunchbase4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekohe%2Fcrunchbase4/lists"}