1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://www.tagvenue.com/uk/search/event-venue?longitude_from=-18.27310078124999&longitude_to=12.181000781250008&latitude_from=45.153378402503485&latitude_to=64.13122223751947&form_timestamp=1758682558&getAllRoomsPositions=true&hideRoomsData=false&items_per_page=36&map_zoom=5&people=&date=&time_from=&time_to=&room_layout=0&min_price=&max_price=&price_range=&price_method=&neighbourhood=United%20Kingdom&page=1&room_tag=event-venue&supervenues_only=false&flexible_cancellation_only=false&no_age_restriction=false&iso_country_code=GB&view=results&trigger=initMap"
14 }
15 ]
16};
17
18
19const run = await client.actor("lexis-solutions/tagvenue-scraper").call(input);
20
21
22console.log('Results from dataset');
23console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
24const { items } = await client.dataset(run.defaultDatasetId).listItems();
25items.forEach((item) => {
26 console.dir(item);
27});
28
29