1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "queries": [
12 {
13 "id": "monaco_restaurants",
14 "regionPath": "europe/monaco",
15 "snapshotDate": "2026-10-25",
16 "categories": [
17 "restaurant"
18 ],
19 "limit": 3
20 },
21 {
22 "id": "bremen_restaurants",
23 "regionPath": "europe/germany/bremen",
24 "snapshotDate": "2026-10-25",
25 "categories": [
26 "restaurant"
27 ],
28 "limit": 3
29 },
30 {
31 "id": "bremen_pharmacies",
32 "regionPath": "europe/germany/bremen",
33 "snapshotDate": "2026-10-01",
34 "categories": [
35 "pharmacy"
36 ],
37 "limit": 3
38 }
39 ]
40};
41
42
43const run = await client.actor("danielmichalek/osm-point-poi-exporter").call(input);
44
45
46console.log('Results from dataset');
47console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
48const { items } = await client.dataset(run.defaultDatasetId).listItems();
49items.forEach((item) => {
50 console.dir(item);
51});
52
53