The RapidAPI Developer Hub

Welcome to the RapidAPI developer hub. You'll find comprehensive guides and documentation to help you start working with RapidAPI as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Guides

Installing & Making a Request

To utilize the Request library for node.js, first install the npm module:

$ npm install request

After installing the npm package, you can now create a new instance of the Request client and form a request.

var request = require('request');

var options = {
  method: '{{HTTP_METHOD}}',
  url: '{{API_URL}}',
  headers: {
    'x-rapidapi-key': '{{API_KEY}}'
  }
};

request(options, function (error, response, body) {
    if (error) throw new Error(error);

    console.log(body);
});

For more information about using Request, visit their documentation page here.

Updated about a year ago

Request


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.