Skyscanner API Bulk (Flights)
$15.00/month
Skyscanner API Bulk (Flights)
$15.00/month
Get the best flight itineraries and calendar prices in BULK from Skyscanner! Also supports Multi-city and Explore with various filters. It's fast.
You can access the Skyscanner API Bulk (Flights) programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "query": [
12 {
13 "origin": "cdg",
14 "destination": "lyon",
15 "datefrom": "251004",
16 "dateto": "251007",
17 "adults": 2,
18 "children": [],
19 "classtype": "economy",
20 "direct": false
21 },
22 {
23 "origin": "las",
24 "destination": "everywhere",
25 "datefrom": "250618",
26 "dateto": "250620",
27 "adults": 1,
28 "children": [],
29 "classtype": "economy",
30 "direct": true
31 }
32 ],
33 "proxy": {
34 "useApifyProxy": true,
35 "apifyProxyGroups": [
36 "RESIDENTIAL"
37 ]
38 }
39};
40
41// Run the Actor and wait for it to finish
42const run = await client.actor("canadesk/skyscanner-flights-api-bulk").call(input);
43
44// Fetch and print Actor results from the run's dataset (if any)
45console.log('Results from dataset');
46console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
47const { items } = await client.dataset(run.defaultDatasetId).listItems();
48items.forEach((item) => {
49 console.dir(item);
50});
51
52// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Skyscanner API Bulk (Flights) API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Skyscanner API Bulk (Flights) API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
npm install apify-client
Other API clients include:
Actor Metrics
1 monthly user
-
0 No stars yet
96% runs succeeded
Created in Dec 2024
Modified a month ago