RapidAPI logo

Skyscanner Car Hire Live Prices

FREE
By skyscanner
Updated a month ago
Travel, Transportation
8.3/10
Popularity Score
1201ms
Latency
54%
Success Rate

Skyscanner Car Hire Live Prices API Documentation

Retrieve live prices for car hire providers.

View API Details
GETPoll Session Results
GETCreate session
GETPoll Session Results

Polling the session will return the details of all possible car hire quotes that satisfy the request query parameters. Prices will be obtained for the car hire quotes during the session. The calling application should poll the session in 1-3 second intervals until all updates are complete (all returned websites have inProgress equal to false), and all prices have been populated. This can take from a few seconds to a minute depending on the query. Please allow at least one second between polls. A note about delta results In your polling requests you may specify a parameter called ‘deltaExcludeWebsites’. This is a CSV or semicolon-separated list of website IDs. The server will set this in the Location headers to exclude whatever websites have finished sending results (inProgress equal to false). Excluding any given provider will remove its cars and website information from your result. Merely supplying&deltaExcludeWebsites= removes all images, the query, and the car classes lookup. The Location header in the first poll will include this parameter, even if it’s an empty string, in order that you don’t fetch that information multiple times.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
sessionKeySTRING
REQUIREDSession Key acquired from Create Session endpoint
apikeySTRING
REQUIRED
Optional Parameters
deltaExcludeWebsitesSTRING
OPTIONALA list of website IDs whose results you want to discard, or an empty string. CSV or semicolon-separated values.
Code Snippet
unirest.get("https://skyscanner-car-hire-live-prices.p.rapidapi.com/apiservices/carhire/liveprices/v2/{sessionKey}")
.header("X-RapidAPI-Host", "skyscanner-car-hire-live-prices.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://skyscanner-car-hire-live-prices.p.rapidapi.com/apiservices/carhire/liveprices/v2/{sessionKey}
Request Method: GET
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://skyscanner-car-hire-live-prices.p.rapidapi.com/apiservices/carhire/liveprices/v2/{sessionKey}")
.header("X-RapidAPI-Host", "skyscanner-car-hire-live-prices.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication