1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "pickupLocations": ["REC"],
10 "startDate": "2026-09-07 10:30:00",
11 "endDate": "2026-09-08 10:30:00",
12 "dateRanges": [
13 {
14 "startDate": "2026-09-07 10:30:00",
15 "endDate": "2026-09-08 10:30:00",
16 },
17 {
18 "startDate": "2026-09-14 10:30:00",
19 "endDate": "2026-09-21 10:30:00",
20 },
21 ],
22 "currency": "BRL",
23 "locale": "pt_BR",
24}
25
26
27run = client.actor("xtracto/expedia-brazil-car-rentals").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34