1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "url": "https://turo.com/us/en/search?age=30&country=US&defaultZoomLevel=11&deliveryLocationType=googlePlace&endDate=&endTime=&flexibleType=NOT_FLEXIBLE&isMapSearch=false&itemsPerPage=200&latitude=34.0549076&location=Los%20Angeles&locationType=CITY&longitude=-118.242643&monthlyEndDate=01%2F12%2F2027&monthlyStartDate=10%2F12%2F2026&pickupType=ALL&placeId=ChIJE9on3F3HwoAR9AhGJW_fL-I®ion=CA&searchDurationType=DAILY&sortType=RELEVANCE&startDate=&startTime="
12};
13
14
15const run = await client.actor("shahidirfan/turo-com-vehicle-scraper").call(input);
16
17
18console.log('Results from dataset');
19console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
20const { items } = await client.dataset(run.defaultDatasetId).listItems();
21items.forEach((item) => {
22 console.dir(item);
23});
24
25