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 "rice",
13 "cumin",
14 "coffee",
15 "pistachio"
16 ],
17 "maxDiscoveryChargeUsd": 0.5,
18 "sourceMode": "list",
19 "itemsList": [
20 {
21 "awardedTo": "ADM RICE INC",
22 "awardedToUei": "LJA7RS89WNQ3",
23 "awardId": "121NTB26C0022",
24 "buyer": "Department of Agriculture",
25 "buyerUnit": "Agricultural Marketing Service",
26 "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011325/4210007552/RICE, MILLED BULK",
27 "pscCode": "8920",
28 "product": "BAKERY AND CEREAL PRODUCTS",
29 "naicsCode": "311212",
30 "awardValueUsd": 15622474,
31 "awardedOn": "2026-05-13",
32 "endsOn": "2026-07-20",
33 "lastModified": "2026-08-28",
34 "awardType": "DEFINITIVE CONTRACT",
35 "placeOfPerformance": "LA, USA",
36 "description": "milled bulk rice for USDA food donations",
37 "url": "https://www.usaspending.gov/award/CONT_AWD_121NTB26C0022_12K2_-NONE-_-NONE-"
38 },
39 {
40 "awardedTo": "SUPREME RICE, LLC",
41 "awardedToUei": "NELHRV2LMSQ5",
42 "awardId": "123J1426C1732",
43 "buyer": "Department of Agriculture",
44 "buyerUnit": "Agricultural Marketing Service",
45 "title": "COMMODITIES FOR USG FOOD DONATIONS: 2000011408/4100034792/RICE US#2 LONG GRAIN PKG-24/1 LB,RICE BRN US#1 LONG PARBOILED BAG-25 LB,RICE US#2 LONG GRAIN PKG-30/2 LB,RICE US#1 LONG GRAIN PARBOILED BAG-25 LB,RICE BRN US#1 LONG PARBOILED PKG-24/2 LB,RICE",
46 "pscCode": "8920",
47 "product": "BAKERY AND CEREAL PRODUCTS",
48 "naicsCode": "311212",
49 "awardValueUsd": 3674242.86,
50 "awardedOn": "2026-08-13",
51 "endsOn": "2026-12-31",
52 "lastModified": "2026-11-12",
53 "awardType": "DEFINITIVE CONTRACT",
54 "placeOfPerformance": "LA, USA",
55 "description": "long-grain rice for USDA food donations; the term ends 2026-12-31",
56 "url": "https://www.usaspending.gov/award/CONT_AWD_123J1426C1732_12K2_-NONE-_-NONE-"
57 },
58 {
59 "awardedTo": "READYWISE, INC.",
60 "awardedToUei": "XGPKY8DB12U6",
61 "awardId": "SPE3S126F0190",
62 "buyer": "Department of Defense",
63 "buyerUnit": "Defense Logistics Agency",
64 "title": "8511793573!CHICKEN AND RICE,CO",
65 "pscCode": "8940",
66 "product": "SPECIAL DIETARY FOODS AND FOOD SPECIALTY PREPARATIONS",
67 "naicsCode": "311423",
68 "awardValueUsd": 1080400,
69 "awardedOn": "2025-12-04",
70 "endsOn": "2026-04-01",
71 "lastModified": "2025-12-04",
72 "awardType": "DELIVERY ORDER",
73 "placeOfPerformance": "UT, USA",
74 "description": "chicken and rice meals for the Defense Logistics Agency",
75 "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F0190_9700_SPE3S125DZ202_9700"
76 },
77 {
78 "awardedTo": "COASTAL PACIFIC FOOD DISTRIBUTORS, INC.",
79 "awardedToUei": "VKECVUW3CLT4",
80 "awardId": "SPE30026F1ZWD",
81 "buyer": "Department of Defense",
82 "buyerUnit": "Defense Logistics Agency",
83 "title": "4572480222!CUMIN, GRD,",
84 "pscCode": "8950",
85 "product": "CONDIMENTS AND RELATED PRODUCTS",
86 "naicsCode": "311812",
87 "awardValueUsd": 45988.89,
88 "awardedOn": "2026-07-24",
89 "endsOn": "2026-08-12",
90 "lastModified": "2026-11-03",
91 "awardType": "DELIVERY ORDER",
92 "placeOfPerformance": "CA, USA",
93 "description": "ground cumin for the Defense Logistics Agency",
94 "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F1ZWD_9700_SPE30026D3003_9700"
95 },
96 {
97 "awardedTo": "KINRO MANUFACTURING LLC",
98 "awardedToUei": "JH21H3GAZGH1",
99 "awardId": "SPE3S126F1242",
100 "buyer": "Department of Defense",
101 "buyerUnit": "Defense Logistics Agency",
102 "title": "8512218180!COFFEE,ROASTED",
103 "pscCode": "8955",
104 "product": "COFFEE, TEA, AND COCOA",
105 "naicsCode": "311920",
106 "awardValueUsd": 1667580,
107 "awardedOn": "2026-07-07",
108 "endsOn": "2026-08-14",
109 "lastModified": "2026-07-27",
110 "awardType": "DELIVERY ORDER",
111 "placeOfPerformance": "FL, USA",
112 "description": "roasted coffee for the Defense Logistics Agency",
113 "url": "https://www.usaspending.gov/award/CONT_AWD_SPE3S126F1242_9700_SPE3S122DZ250_9700"
114 },
115 {
116 "awardedTo": "OCEAN FAIR INTERNATIONAL SHIP CHANDLEING LLC",
117 "awardedToUei": "VUNJK3HWKJY7",
118 "awardId": "SPE30026F0LRE",
119 "buyer": "Department of Defense",
120 "buyerUnit": "Defense Logistics Agency",
121 "title": "4571812340!PISTACHIOS, SHL,",
122 "pscCode": "8925",
123 "product": "SUGAR, CONFECTIONERY, AND NUTS",
124 "naicsCode": "311812",
125 "awardValueUsd": 72872.64,
126 "awardedOn": "2026-05-13",
127 "endsOn": "2026-05-17",
128 "lastModified": "2026-07-17",
129 "awardType": "DELIVERY ORDER",
130 "placeOfPerformance": "ARE",
131 "description": "shelled pistachio nuts for the Defense Logistics Agency",
132 "url": "https://www.usaspending.gov/award/CONT_AWD_SPE30026F0LRE_9700_SPE30026D4002_9700"
133 }
134 ],
135 "discoveryInput": {}
136};
137
138
139const run = await client.actor("rich_minds/food-tenders-ai").call(input);
140
141
142console.log('Results from dataset');
143console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
144const { items } = await client.dataset(run.defaultDatasetId).listItems();
145items.forEach((item) => {
146 console.dir(item);
147});
148
149