1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "products": [
12 {
13 "sku": "BB-1001",
14 "upc": "669028116546",
15 "brand": "Boon",
16 "name": "NURSH reusable bottle 8 oz 3-pack"
17 },
18 {
19 "sku": "HT-2002",
20 "brand": "DREO",
21 "model": "DR-HSH015",
22 "name": "Ceramic space heater with remote",
23 "dateCode": "2025/09"
24 },
25 {
26 "sku": "KT-5005",
27 "brand": "OXO",
28 "name": "Good Grips salad spinner"
29 }
30 ],
31 "lookbackYears": 1
32};
33
34
35const run = await client.actor("howmuchworks/cpsc-recall-match").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45