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 "spices"
13 ],
14 "countries": [
15 "DE"
16 ],
17 "resultsPerQuery": 10,
18 "enrichContactsTop": 20,
19 "maxAddOnChargeUsd": 0.5,
20 "sourceMode": "list",
21 "maxDiscoveryChargeUsd": 0.5,
22 "itemsList": [
23 {
24 "name": "RAPS GmbH & Co. KG",
25 "country": "DE",
26 "website": "https://www.raps.de",
27 "websiteBasis": "search",
28 "articleUrl": "https://www.tradologie.com/spice-importers/spices-importers-in-germany/",
29 "articleTitle": "Top 10 Spice Importers & Processors in Germany",
30 "position": 4,
31 "contextText": "RAPS GmbH & Co. KG | Kulmbach | Spices, seasonings and functional ingredients for the meat and food industry",
32 "mentions": 2,
33 "articleUrls": [
34 "https://www.tradologie.com/spice-importers/spices-importers-in-germany/",
35 "https://www.indexbox.io/blog/germany-clove-imports-2024/"
36 ],
37 "positions": [
38 4,
39 6
40 ],
41 "query": "top spices importers in Germany",
42 "product": "spices"
43 },
44 {
45 "name": "Hela Gewürzwerk Hermann Laue GmbH",
46 "country": "DE",
47 "website": "https://www.hela.eu",
48 "websiteBasis": "article_link",
49 "articleUrl": "https://www.tradologie.com/spice-importers/spices-importers-in-germany/",
50 "articleTitle": "Top 10 Spice Importers & Processors in Germany",
51 "position": 3,
52 "contextText": "Hela Gewürzwerk Hermann Laue GmbH | Ahrensburg | Spice blends, sauces and marinades for butchers and the food industry",
53 "mentions": 2,
54 "articleUrls": [
55 "https://www.tradologie.com/spice-importers/spices-importers-in-germany/",
56 "https://www.indexbox.io/blog/germany-clove-imports-2024/"
57 ],
58 "positions": [
59 3,
60 9
61 ],
62 "query": "top spices importers in Germany",
63 "product": "spices"
64 },
65 {
66 "name": "Ostmann Gewürze GmbH",
67 "country": "DE",
68 "website": "https://www.ostmann.de",
69 "websiteBasis": "search",
70 "articleUrl": "https://www.tradologie.com/spice-importers/spices-importers-in-germany/",
71 "articleTitle": "Top 10 Spice Importers & Processors in Germany",
72 "position": 5,
73 "contextText": "Ostmann Gewürze GmbH | Dissen | Retail and catering spices, herbs and seasoning mixes",
74 "mentions": 1,
75 "query": "top spices importers in Germany",
76 "product": "spices"
77 },
78 {
79 "name": "Martin Bauer GmbH & Co. KG",
80 "country": "DE",
81 "website": "https://www.martin-bauer-group.com",
82 "websiteBasis": "search",
83 "articleUrl": "https://www.indexbox.io/blog/germany-clove-imports-2024/",
84 "articleTitle": "Germany Clove Imports 2024",
85 "articleDate": "2025-02-10",
86 "position": 2,
87 "contextText": "Martin Bauer GmbH & Co. KG | Vestenbergsgreuth | Botanicals, herbs and tea ingredients",
88 "mentions": 1,
89 "query": "spices importers Germany list",
90 "product": "spices"
91 },
92 {
93 "name": "Gewürzmühle Nesse GmbH",
94 "country": "DE",
95 "articleUrl": "https://www.tradologie.com/spice-importers/spices-importers-in-germany/",
96 "articleTitle": "Top 10 Spice Importers & Processors in Germany",
97 "position": 2,
98 "contextText": "Gewürzmühle Nesse GmbH | Leer | Spice mill: whole and ground spices for industry and trade",
99 "mentions": 1,
100 "query": "top spices importers in Germany",
101 "product": "spices"
102 },
103 {
104 "name": "A. N. Other Gewürzhandel GmbH",
105 "country": "DE",
106 "articleUrl": "https://www.indexbox.io/blog/germany-clove-imports-2024/",
107 "articleTitle": "Germany Clove Imports 2024",
108 "articleDate": "2025-02-10",
109 "position": 15,
110 "contextText": "A. N. Other Gewürzhandel GmbH | Hamburg",
111 "mentions": 1,
112 "query": "spices importers Germany list",
113 "product": "spices"
114 },
115 {
116 "name": "GmbH",
117 "country": "DE",
118 "articleUrl": "https://www.indexbox.io/blog/germany-clove-imports-2024/",
119 "articleTitle": "Germany Clove Imports 2024",
120 "articleDate": "2025-02-10",
121 "position": 17,
122 "contextText": "GmbH | 4.1%",
123 "mentions": 1,
124 "query": "spices importers Germany list",
125 "product": "spices"
126 }
127 ]
128};
129
130
131const run = await client.actor("rich_minds/importer-list-extractor-ai").call(input);
132
133
134console.log('Results from dataset');
135console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
136const { items } = await client.dataset(run.defaultDatasetId).listItems();
137items.forEach((item) => {
138 console.dir(item);
139});
140
141