RapidAPI

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    Documentation

Python

Query RapidAPI using Python

To get started using Python to consume APIs on RapidAPI, download the RapidAPI SDK using pip:

pip install rapidconnect

Once you've installed the SDK, require it in your code:

from rapidconnect import RapidConnect

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

rapid = RapidConnect('ProjectName', 'ProjectKey')

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

result = rapid.call('APIName', 'FunctionName', { 
	'ParameterKey1': 'ParameterValue1',
	'ParameterKey2': 'ParameterValue2',
})

Python

Query RapidAPI using Python