1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "recallDateStart": "2026-10-01",
12 "recallDateEnd": "2026-10-02",
13 "catalog": [
14 {
15 "productId": "demo-agrish-rail",
16 "manufacturer": "Zhongshan Lebo Medical Co., Ltd., of China",
17 "models": [
18 "AG-12011"
19 ],
20 "upcs": []
21 }
22 ],
23 "maxRecalls": 100,
24 "maxResults": 1,
25 "maxRequests": 3,
26 "maxSeconds": 40,
27 "maxBudgetUsd": 0.02
28};
29
30
31const run = await client.actor("felixgoldwin/cpsc-recall-catalog-matcher").call(input);
32
33
34console.log('Results from dataset');
35console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
36const { items } = await client.dataset(run.defaultDatasetId).listItems();
37items.forEach((item) => {
38 console.dir(item);
39});
40
41