1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "schemaVersion": "1.0",
12 "requestId": "auto",
13 "watchId": "lego-watch",
14 "watchUniverse": [
15 "tcin:16747749"
16 ],
17 "rows": [
18 {
19 "adapter": "target",
20 "sourceRecordId": "target-16747749",
21 "sourceName": "target_probe",
22 "observedAt": "2026-08-06T11:03:21.195Z",
23 "data": {
24 "tcin": "16747749",
25 "upc": "673419233606",
26 "productTitle": "LEGO Classic Large Creative Brick Box",
27 "brand": "LEGO",
28 "price": null,
29 "availability": null,
30 "url": "https://www.target.com/p/example/-/A-16747749"
31 },
32 "mapCents": 2999
33 }
34 ]
35};
36
37
38const run = await client.actor("zinin/us-map-retail-evidence").call(input);
39
40
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48