1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "listingUrls": [
12 "https://www.airbnb.com/rooms/2072026",
13 "https://www.airbnb.com/rooms/39811858"
14 ],
15 "locations": [
16 "Asheville, North Carolina"
17 ],
18 "checkIn": "2026-10-15",
19 "checkOut": "2026-10-18",
20 "adults": 2,
21 "samples": 3,
22 "maxPages": 5,
23 "currency": "USD",
24 "maxItems": 100,
25 "proxyConfiguration": {
26 "useApifyProxy": true,
27 "apifyProxyCountry": "US"
28 }
29};
30
31
32const run = await client.actor("cirkit/airbnb-rank-tracker").call(input);
33
34
35console.log('Results from dataset');
36console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42