1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "location": "Санкт-Петербург",
13 "guestsAdults": 2,
14 "sortings": "relevance",
15 "maxItems": 20,
16 "maxPages": 0,
17 "urls": [
18 {
19 "url": "https://sochi.sutochno.ru/998663"
20 },
21 {
22 "url": "https://sutochno.ru/front/searchapp/detail/858763"
23 },
24 {
25 "url": "https://sutochno.ru/hotels/144264"
26 },
27 {
28 "url": "https://sutochno.ru/hotels/144264?occupied=2026-12-10;2026-12-13"
29 },
30 {
31 "url": "https://sutochno.ru/front/searchapp/search?term=%D0%A1%D0%B0%D0%BD%D0%BA%D1%82-%D0%9F%D0%B5%D1%82%D0%B5%D1%80%D0%B1%D1%83%D1%80%D0%B3&guests_adults=2"
32 },
33 {
34 "url": "https://sutochno.ru/front/searchapp/search?term=%D0%A1%D0%BE%D1%87%D0%B8&occupied=2026-12-10;2026-12-13&guests_adults=2&sortings=1"
35 },
36 {
37 "url": "https://sutochno.ru/front/searchapp/search?term=Sochi&page=2&guests_adults=2"
38 },
39 {
40 "url": "https://sutochno.ru/front/searchapp/search?is_hotel=1&guests_adults=2&id=397367&type=city&term=%D0%A1%D0%B0%D0%BD%D0%BA%D1%82-%D0%9F%D0%B5%D1%82%D0%B5%D1%80%D0%B1%D1%83%D1%80%D0%B3"
41 },
42 {
43 "url": "https://spb.sutochno.ru/"
44 },
45 {
46 "url": "https://spb.sutochno.ru/?page=2"
47 },
48 {
49 "url": "https://spb.sutochno.ru/1-komnatnye"
50 },
51 {
52 "url": "https://spb.sutochno.ru/hotels"
53 },
54 {
55 "url": "https://sutochno.ru/armenia"
56 },
57 {
58 "url": "https://sutochno.ru/998663"
59 },
60 {
61 "url": "https://m.sutochno.ru/998663"
62 }
63 ],
64 "fetchDetails": true,
65 "fetchReviews": true,
66 "maxReviews": 20,
67 "fetchAvailability": true,
68 "availabilityDays": 30,
69 "proxyConfiguration": {
70 "useApifyProxy": true
71 },
72 "changeScope": "all",
73 "incrementalMode": false,
74 "compactUpdates": false,
75 "expireAfterMissedScans": 1
76};
77
78
79const run = await client.actor("abotapi/sutochno-ru-scraper").call(input);
80
81
82console.log('Results from dataset');
83console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
84const { items } = await client.dataset(run.defaultDatasetId).listItems();
85items.forEach((item) => {
86 console.dir(item);
87});
88
89