1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "urls": [
12 "https://urlaub.check24.de/suche/angebot?areaId=586&hotelId=7305&extendedSearch=1&sorting=categoryDistribution&pageArea=package&offerSort=offerRanking&areaSort=topregion&airport=BER,BRE,CGN,DRS,DTM,DUS,ERF,FDH,FKB,FMM,FMO,FRA,GWT,HAJ,HAM,HHN,KSF,LBC,LEJ,MUC,NRN,NUE,PAD,RLG,SCN,STR&ds=r&transportType=flight&hotelListId=01fa4a86-5dc1-4525-98d7-483ebd337eb8&days=exact&departureDate=2025-07-27&returnDate=2025-08-10&roomAllocation=A-A&noRedirect=1&"
13 ],
14 "max_retries_per_url": 2,
15 "proxy": {
16 "useApifyProxy": false
17 }
18};
19
20
21const run = await client.actor("ecomscrape/urlaub-check24-trip-details-scraper").call(input);
22
23
24console.log('Results from dataset');
25console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
26const { items } = await client.dataset(run.defaultDatasetId).listItems();
27items.forEach((item) => {
28 console.dir(item);
29});
30
31