1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searches": [{
10 "origin": "JFK",
11 "destination": "LAX",
12 "departureDate": "2027-03-17",
13 }],
14 "currency": "USD",
15 "country": "US",
16 "language": "en-US",
17 "cabinClass": "economy",
18 "adults": 1,
19 "children": 0,
20 "infantsOnLap": 0,
21 "infantsInSeat": 0,
22 "sortBy": "best",
23 "includeBookingDetails": False,
24 "airlines": [],
25}
26
27
28run = client.actor("danthedataman/google-flights-fare-atlas").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35