Node.js wrapper for CrunchBase API V3
Based on crunchbase2 (now out of date and incompatible with API V3).
Examples
var crunchbase = ; // Init the object with your API keycrunchbase; // Lookup all organizations with keyword "airbnb"//Accepts title search querycrunchbase; // Lookup a single organization with the permalink "airbnb"//accepts permalink (airbnb's happens to be airbnb)crunchbase; //get pages of people//accepts page numbercrunchbase; //get a single person//accepts user permalinkcrunchbase; //get pages of products//accepts a page numbercrunchbase; //get a single product//accepts a permalinkcrunchbaseproduct query: "airbnb" { if !error console // Print the search results }; //get funding round for a specific product. A uuid can be gotten from product endpoint//accepts a uuidcrunchbase; //This operation returns the properties and relationships of the Acquisition.//accepts a uuidcrunchbase; //This operation returns the properties and relationships of the IPO.//accepts a uuidcrunchbase; //This operation returns the properties and relationships of the Fund Raise.//accepts a uuidcrunchbase; //Returns a paginated list of all active Locations in CrunchBase.//accepts a pagecrunchbase; //Returns a paginated list of all active Categories in CrunchBase.//accepts a pagecrunchbase;
Redis support
You can pass an object of options that node_redis recognizes as the second argument to init to enable caching of results in Redis.
node_redis needs to be installed (npm install redis
) for this to work.
Here's an example configuration that will use the Redis URL in the REDIS_URL
environment variable, falling back to localhost Redis if not set:
var crunchbase = ; crunchbase;
Contributing
Fork, make your changes, add yourself to contributors in package.json, bump version in package.json as needed, submit pull request, done!
License
Apache 2.0