1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "query": [
10 {
11 "origin": "cdg",
12 "destination": "lyon",
13 "datefrom": "251004",
14 "dateto": "251007",
15 "adults": 2,
16 "children": [],
17 "classtype": "economy",
18 "direct": False,
19 },
20 {
21 "origin": "las",
22 "destination": "everywhere",
23 "datefrom": "250618",
24 "dateto": "250620",
25 "adults": 1,
26 "children": [],
27 "classtype": "economy",
28 "direct": True,
29 },
30 ],
31 "proxy": {
32 "useApifyProxy": True,
33 "apifyProxyGroups": ["RESIDENTIAL"],
34 },
35}
36
37
38run = client.actor("canadesk/skyscanner-flights-api-bulk").call(run_input=run_input)
39
40
41print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
42for item in client.dataset(run["defaultDatasetId"]).iterate_items():
43 print(item)
44
45