Requests


Installing & Making a Request

To use Requests, install it using pip:

Shell
$ pip install requests

If you prefer to use Pipenv for managing Python packages, you can run the following:

Shell
$ pipenv install requests

After installing the pip package, you can now begin making API requests by importing Requests and forming a request:

JavaScript
import requests

url = "{{API_URL}}"

payload = "{}"
headers = {
    'x-rapidapi-key': "{{API_KEY}}",
}
params = {

}

response = requests.request("{{HTTP_METHOD}}", url, data=payload, headers=headers, params=params)

print(response.text)