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

Javascript

To get started using Javascript to consume APIs on RapidAPI, include the following script in your HTML:

<script src="https://storage.googleapis.com/code-snippets/rapidapi.min.js"></script>

You can now instantiate a new RapidAPI client with your ProjectName and ProjectKey:

var rapid = new RapidAPI("ProjectName", "ProjectKey");

To call the API, all you have to do is write the following code:

rapid.call('PackageName', 'FunctionName', { 
	'ParameterKey1': 'ParameterValue1',
	'ParameterKey2': 'ParameterValue2',
}).on('success', function (payload) {
	 /*YOUR CODE GOES HERE*/ 
}).on('error', function (payload) {
	 /*YOUR CODE GOES HERE*/ 
});