1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "countries": [],
12 "associations": [
13 "esa",
14 "ssa",
15 "aisef"
16 ],
17 "sourceMode": "list",
18 "maxDiscoveryChargeUsd": 0.5,
19 "itemsList": [
20 {
21 "name": "British Pepper and Spice Ltd",
22 "association": "ssa",
23 "memberType": "full",
24 "country": "GB",
25 "city": "Northampton",
26 "address": "Rhoshilli Road, Brackmills, Northampton, NN4 7AN",
27 "website": "http://www.britishpepper.co.uk",
28 "memberUrl": "https://seasoningandspice.org.uk/members/british-pepper-and-spice-ltd",
29 "sourceUrl": "https://seasoningandspice.org.uk/members",
30 "rowId": "ssa:british-pepper-and-spice-ltd-sample",
31 "websiteTitle": "British Pepper & Spice | Bringing Spice to Life",
32 "websiteDescription": "British Pepper & Spice is the leading manufacturer of herbs & spices in the UK. From five-star restaurants to home-cooked food, we bring dishes to life.",
33 "categories": [
34 "pepper",
35 "seasoning",
36 "herb",
37 "spice",
38 "ingredient"
39 ],
40 "websiteFetched": true,
41 "websiteFetchedAt": "2026-11-23T08:00:00+00:00"
42 },
43 {
44 "name": "AKO GmbH",
45 "association": "esa",
46 "memberType": "full",
47 "country": "DE",
48 "sourceUrl": "https://www.esa-spices.org/index.php/members/list-of-members",
49 "rowId": "esa:ako-gmbh-sample"
50 },
51 {
52 "name": "Synthite Industries Ltd.",
53 "association": "esa",
54 "memberType": "associate",
55 "country": "IN",
56 "website": "https://www.synthite.com",
57 "websiteSource": "other_list",
58 "alsoMemberOf": [
59 "aisef"
60 ],
61 "sourceUrl": "https://www.esa-spices.org/index.php/members/list-of-members",
62 "rowId": "esa:synthite-industries-ltd-sample",
63 "websiteTitle": "Synthite | Global Leader in Natural Ingredient Solutions for Food, Health & Fragrance",
64 "websiteDescription": "Explore Synthite's world of innovation in natural ingredients; delivering flavour, colour, wellness, and fragrance solutions through cutting-edge technology, sustainable sourcing, and 50+ years of industry leadership.",
65 "categories": [
66 "oleoresin",
67 "extract",
68 "seasoning",
69 "herb",
70 "spice",
71 "flavour",
72 "ingredient"
73 ],
74 "websiteFetched": true,
75 "websiteFetchedAt": "2026-11-23T08:00:00+00:00",
76 "matchedCheckName": "Synthite"
77 },
78 {
79 "name": "EVEREST FOOD PRODUCTS PRIVATE LIMITED.",
80 "association": "aisef",
81 "memberType": "full",
82 "country": "IN",
83 "website": "https://www.everestspices.com",
84 "companyEmail": "export@everestspices.com",
85 "contactWithheld": true,
86 "sourceUrl": "https://www.aisef.org/members",
87 "rowId": "aisef:everest-food-products-private-limited-sample",
88 "websiteTitle": "India's No.1 Spice Brand - Everest Foods - Everest Spices",
89 "websiteDescription": "There are few things that permeate Indian life so completely as spices. The aroma, colour, taste and texture of the astonishing varieties of spices in India nourish a rich variety of cuisines and cultures.",
90 "categories": [
91 "ginger",
92 "saffron",
93 "garlic",
94 "masala",
95 "seasoning",
96 "blend",
97 "herb",
98 "spice",
99 "rice",
100 "flavour",
101 "ingredient"
102 ],
103 "websiteFetched": true,
104 "websiteFetchedAt": "2026-11-23T08:00:00+00:00"
105 },
106 {
107 "name": "Fachverband der Gewürzindustrie e.V.",
108 "association": "esa",
109 "memberType": "association",
110 "country": "DE",
111 "sourceUrl": "https://www.esa-spices.org/index.php/members/list-of-members",
112 "rowId": "esa:fachverband-der-gewurzindustrie-e-v-sample"
113 }
114 ],
115 "discoveryInput": {}
116};
117
118
119const run = await client.actor("rich_minds/trade-association-members-ai").call(input);
120
121
122console.log('Results from dataset');
123console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
124const { items } = await client.dataset(run.defaultDatasetId).listItems();
125items.forEach((item) => {
126 console.dir(item);
127});
128
129