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 "query": "the killers",
13 "searchType": "events",
14 "urls": [
15 "https://www.songkick.com/metro-areas/4120-us-atlanta",
16 "https://www.songkick.com/metro-areas/4120-us-atlanta?page=2",
17 "https://www.songkick.com/metro-areas/4120-us-atlanta/gigography",
18 "https://www.songkick.com/metro-areas/4120",
19 "https://www.songkick.com/en/metro-areas/4120-us-atlanta",
20 "https://www.songkick.com/artists/10158736-bella-poarch",
21 "https://www.songkick.com/artists/10158736",
22 "https://www.songkick.com/artists/10158736-bella-poarch/calendar",
23 "https://www.songkick.com/artists/10158736-bella-poarch/gigography",
24 "https://www.songkick.com/venues/10960-georgia-theatre",
25 "https://www.songkick.com/venues/10960-georgia-theatre?page=2",
26 "https://www.songkick.com/venues/10960-georgia-theatre/calendar",
27 "https://www.songkick.com/venues/10960-georgia-theatre/gigography",
28 "https://www.songkick.com/concerts/43055252-breaking-benjamin-at-ameris-bank-amphitheatre",
29 "https://www.songkick.com/concerts/43055252",
30 "https://www.songkick.com/festivals/3760879-gaelic-storm",
31 "https://www.songkick.com/festivals/3760879-gaelic-storm/id/43437118-gaelic-storm-2026",
32 "https://www.songkick.com/festivals/3760879-gaelic-storm/id/43437118",
33 "https://www.songkick.com/search?query=the+killers&type=events",
34 "https://www.songkick.com/search?query=the+killers&type=past_events&page=2",
35 "https://www.songkick.com/search?query=beyonce&type=artists",
36 "https://www.songkick.com/search?query=mercedes&type=venues",
37 "https://www.songkick.com/search?query=atlanta&type=cities"
38 ],
39 "fetchDetails": true,
40 "maxItems": 20,
41 "maxPages": 0,
42 "proxyConfiguration": {
43 "useApifyProxy": true
44 },
45 "incrementalMode": false,
46 "emitUnchanged": false,
47 "emitExpired": false,
48 "ignoreFieldsForChanges": [],
49 "maxNotifyListings": 50
50};
51
52
53const run = await client.actor("abotapi/songkick-concert-calendar-scraper").call(input);
54
55
56console.log('Results from dataset');
57console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
58const { items } = await client.dataset(run.defaultDatasetId).listItems();
59items.forEach((item) => {
60 console.dir(item);
61});
62
63