1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "queries": [
10 "spice wholesaler Hamburg",
11 "rice trader Deira",
12 "spice importer Hamburg",
13 ],
14 "maxGoogleRequests": 25,
15 "maxPerQuery": 20,
16 "sourceMode": "list",
17 "itemsList": [
18 {
19 "placeId": "demo-place-hh-0001",
20 "name": "Hanse Spice Import GmbH (sample)",
21 "address": "Demo-Kai 12, 20457 Hamburg, Germany",
22 "city": "Hamburg",
23 "postalCode": "20457",
24 "country": "DE",
25 "internationalPhoneNumber": "+49 40 9990 0101",
26 "nationalPhoneNumber": "040 99900101",
27 "website": "https://hanse-spice-import.example",
28 "rating": 3.9,
29 "reviewCount": 23,
30 "types": [
31 "wholesaler",
32 "store",
33 "point_of_interest",
34 "establishment",
35 ],
36 "primaryType": "wholesaler",
37 "category": "Wholesaler",
38 "businessStatus": "OPERATIONAL",
39 "placeUrl": "https://www.google.com/maps/search/?api=1&query=Hanse+Spice+Import+GmbH+Hamburg",
40 "url": "https://www.google.com/maps/place/Speicherstadt,+Hamburg,+Germany",
41 "foundBy": [
42 "spice wholesaler Hamburg",
43 "spice importer Hamburg",
44 ],
45 "bestEmail": "einkauf@hanse-spice-import.example",
46 "emails": [
47 "einkauf@hanse-spice-import.example",
48 "info@hanse-spice-import.example",
49 ],
50 "emailStatus": "sample",
51 "emailSource": "https://hanse-spice-import.example/impressum",
52 "description": "Sample business (invented). Importer of whole and ground spices from India, Vietnam and Sri Lanka: black pepper, cumin, turmeric, cardamom. Supplies food manufacturers and retailers in Northern Germany from its Hamburg warehouse.",
53 },
54 {
55 "placeId": "demo-place-hh-0002",
56 "name": "Elbe Gewürzhandel KG (sample)",
57 "address": "Musterstraße 4, 22113 Hamburg, Germany",
58 "city": "Hamburg",
59 "postalCode": "22113",
60 "country": "DE",
61 "internationalPhoneNumber": "+49 40 9990 0202",
62 "nationalPhoneNumber": "040 99900202",
63 "rating": 4.2,
64 "reviewCount": 3,
65 "types": [
66 "food_store",
67 "store",
68 "point_of_interest",
69 "establishment",
70 ],
71 "primaryType": "food_store",
72 "category": "Spice store",
73 "businessStatus": "OPERATIONAL",
74 "placeUrl": "https://www.google.com/maps/search/?api=1&query=Elbe+Gew%C3%BCrzhandel+KG+Hamburg",
75 "foundBy": ["spice wholesaler Hamburg"],
76 "website": "https://elbe-gewuerzhandel.example",
77 "bestEmail": "verkauf@elbe-gewuerzhandel.example",
78 "emails": ["verkauf@elbe-gewuerzhandel.example"],
79 "emailStatus": "sample",
80 "emailSource": "https://elbe-gewuerzhandel.example/kontakt",
81 "description": "Sample business (invented). Spice wholesale trade since 1998: whole and seed spices, chilli and curry blends in 1 kg to 25 kg sacks for butchers, bakeries and Asian grocery stores in Hamburg and Schleswig-Holstein. Trade customers only.",
82 },
83 {
84 "placeId": "demo-place-hh-0003",
85 "name": "Speicherstadt Curry House (sample)",
86 "address": "Beispielweg 9, 20457 Hamburg, Germany",
87 "city": "Hamburg",
88 "postalCode": "20457",
89 "country": "DE",
90 "internationalPhoneNumber": "+49 40 9990 0303",
91 "website": "https://speicherstadt-curry.example",
92 "rating": 4.4,
93 "reviewCount": 310,
94 "types": [
95 "indian_restaurant",
96 "restaurant",
97 "food",
98 "point_of_interest",
99 "establishment",
100 ],
101 "primaryType": "indian_restaurant",
102 "category": "Indian restaurant",
103 "businessStatus": "OPERATIONAL",
104 "placeUrl": "https://www.google.com/maps/search/?api=1&query=Speicherstadt+Curry+House+Hamburg",
105 "foundBy": ["spice wholesaler Hamburg"],
106 },
107 {
108 "placeId": "demo-place-dxb-0004",
109 "name": "Al Noor Rice Trading L.L.C (sample)",
110 "address": "Demo Building 7, Al Ras, Deira, Dubai, United Arab Emirates",
111 "city": "Dubai",
112 "country": "AE",
113 "internationalPhoneNumber": "+971 4 999 0404",
114 "nationalPhoneNumber": "04 999 0404",
115 "website": "https://alnoor-rice-trading.example",
116 "reviewCount": 3,
117 "types": [
118 "store",
119 "point_of_interest",
120 "establishment",
121 ],
122 "primaryType": "store",
123 "category": "Rice wholesaler",
124 "businessStatus": "OPERATIONAL",
125 "placeUrl": "https://www.google.com/maps/search/?api=1&query=Al+Noor+Rice+Trading+L.L.C+Dubai",
126 "url": "https://www.google.com/maps/place/Spice+Souk,+Deira,+Dubai",
127 "foundBy": ["rice trader Deira"],
128 "bestEmail": "sales@alnoor-rice-trading.example",
129 "emails": ["sales@alnoor-rice-trading.example"],
130 "emailStatus": "sample",
131 "emailSource": "https://alnoor-rice-trading.example/contact",
132 "description": "Sample business (invented). Rice trading company in Al Ras, Deira: Indian basmati 1121 and sella, Pakistani long grain, in 5 kg to 40 kg bags. Re-exports to Oman, Qatar and East Africa.",
133 },
134 {
135 "placeId": "demo-place-dxb-0005",
136 "name": "Gulf Grain Foodstuff Trading (sample)",
137 "address": "Example Street 21, Naif, Deira, Dubai, United Arab Emirates",
138 "city": "Dubai",
139 "country": "AE",
140 "internationalPhoneNumber": "+971 4 999 0505",
141 "reviewCount": 0,
142 "types": [
143 "wholesaler",
144 "point_of_interest",
145 "establishment",
146 ],
147 "primaryType": "wholesaler",
148 "category": "Wholesaler",
149 "businessStatus": "OPERATIONAL",
150 "placeUrl": "https://www.google.com/maps/search/?api=1&query=Gulf+Grain+Foodstuff+Trading+Dubai",
151 "foundBy": ["rice trader Deira"],
152 "website": "https://gulf-grain-trading.example",
153 "description": "Sample business (invented). Foodstuff trading house in Naif, Deira: rice, sugar, lentils and cooking oil by the container and the pallet for supermarkets and restaurants across the UAE.",
154 },
155 {
156 "placeId": "demo-place-dxb-0006",
157 "name": "Creekside Business Centre (sample)",
158 "address": "Demo Tower, Port Saeed, Deira, Dubai, United Arab Emirates",
159 "city": "Dubai",
160 "country": "AE",
161 "reviewCount": 2,
162 "types": [
163 "point_of_interest",
164 "establishment",
165 ],
166 "businessStatus": "OPERATIONAL",
167 "placeUrl": "https://www.google.com/maps/search/?api=1&query=Creekside+Business+Centre+Dubai",
168 "foundBy": ["rice trader Deira"],
169 },
170 ],
171 "maxDiscoveryChargeUsd": 0.5,
172}
173
174
175run = client.actor("rich_minds/local-business-leads-ai").call(run_input=run_input)
176
177
178print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
179for item in client.dataset(run.default_dataset_id).iterate_items():
180 print(item)
181
182