1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "routes": [
10 {
11 "origin": "NYC",
12 "destination": "LON",
13 "departDate": "2026-11-10",
14 "returnDate": "2026-11-17",
15 },
16 {
17 "origin": "LAX",
18 "destination": "TYO",
19 "departDate": "2026-12-01",
20 },
21 ],
22 "proxyConfiguration": {
23 "useApifyProxy": True,
24 "apifyProxyGroups": ["RESIDENTIAL"],
25 "apifyProxyCountry": "US",
26 },
27}
28
29
30run = client.actor("nextgensda/skyscanner-flights").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37