1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "collectListings": True,
10 "locations": ["Austin, TX"],
11 "maxListingsPerMarket": 10,
12 "maxListings": 15,
13 "includeHostDetails": False,
14 "collectHosts": False,
15 "hostLocations": ["Austin, TX"],
16 "maxHosts": 10,
17 "enrichListings": False,
18 "listingUrls": [],
19 "maxListingsFromUrls": 10,
20 "checkIn": "",
21 "checkOut": "",
22 "adults": 2,
23 "maxItems": 100,
24 "maxRetries": 3,
25 "webhookUrl": "",
26 "webhookFormat": "json",
27 "proxyConfiguration": {
28 "useApifyProxy": True,
29 "apifyProxyGroups": ["RESIDENTIAL"],
30 "apifyProxyCountry": "US",
31 },
32}
33
34
35run = client.actor("b2b_leads/airbnb-real-time-data").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42