Example Requests

Let's check out some requests. In our examples we'll look for pornstars who are: 34 years old, breast cup size 'A' and have red hair.

Python

import requests

url = "https://papi-pornstarsapi.p.rapidapi.com/pornstars/"

querystring = {"max_cup_size":"A","min_age":"34","max_age":"34","hair":"red"}

headers = {
    'x-rapidapi-host': "papi-pornstarsapi.p.rapidapi.com",
    'x-rapidapi-key': "<<<INSERT YOUR API KEY HERE>>>"
    }

response = requests.request("GET", url, headers=headers, params=querystring)

print(response.text)

Javascript

import axios from "axios";

const options = {
  method: 'GET',
  url: 'https://papi-pornstarsapi.p.rapidapi.com/pornstars/',
  params: {max_cup_size: 'A', min_age: '34', max_age: '34', hair: 'red'},
  headers: {
    'x-rapidapi-host': 'papi-pornstarsapi.p.rapidapi.com',
    'x-rapidapi-key': '<<<INSERT YOUR API KEY HERE>>>'
  }
};

axios.request(options).then(function (response) {
	console.log(response.data);
}).catch(function (error) {
	console.error(error);
});

PHP

<?php

$client = new http\Client;
$request = new http\Client\Request;

$request->setRequestUrl('https://papi-pornstarsapi.p.rapidapi.com/pornstars/');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
	'max_cup_size' => 'A',
	'min_age' => '34',
	'max_age' => '34',
    'hair' => 'red'
]));

$request->setHeaders([
	'x-rapidapi-host' => 'papi-pornstarsapi.p.rapidapi.com',
	'x-rapidapi-key' => '<<<INSERT YOUR API KEY HERE>>>'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();