1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "pricecalendar",
10 "origin": "LHR",
11 "destination": "JFK",
12 "year": 2026,
13 "month": 7,
14 "market": "UK",
15 "locale": "en-GB",
16 "currency": "GBP",
17 "adults": 1,
18 "cabin_class": "ECONOMY",
19 "include_place_info": True,
20 "max_results": 50,
21 "proxy": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 },
25}
26
27
28run = client.actor("xtracto/skyscanner-scraper").call(run_input=run_input)
29
30
31print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33 print(item)
34
35