Hello,
I am trying to set up an API (my first one) from Crunchbase via Rapid API. The code snippet is below. I have tried configuring it using a Text Input and the Download tool but I haven't been successful.
The instructions indicate that the 2 required fields in the header are X-RapidAPI-Host and X-RapidAPI-Key, with numerous optional fields such as Updated Since and Locations ( e.g. locations=California,San Francisco).
Any help is appreciated.
var unirest = require("unirest");
var req = unirest("GET", "https://crunchbase-crunchbase-v1.p.rapidapi.com/odm-organizations");
req.headers({
"x-rapidapi-host": "crunchbase-crunchbase-v1.p.rapidapi.com",
"x-rapidapi-key": "abcd1234"
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});