1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "products": [
10 "rice",
11 "spices",
12 ],
13 "minScore": 40,
14 "maxDiscoveryChargeUsd": 0.5,
15 "postedWithinDays": 14,
16 "maxPagesPerBoard": 2,
17 "sourceMode": "list",
18 "itemsList": [
19 {
20 "product": "1121 Golden Sella Basmati Rice (sample)",
21 "board": "go4worldbusiness",
22 "boardLeadId": "sample-1001",
23 "sample": True,
24 "url": "https://www.go4worldbusiness.com/buyers/basmati-rice.html",
25 "buyerName": "Gulf Star Foodstuff Trading LLC (sample)",
26 "country": "AE",
27 "quantity": 2,
28 "unit": "Twenty-Foot Container",
29 "paymentTerms": "LC at sight",
30 "destination": "Jebel Ali, United Arab Emirates",
31 "sourcingCountries": "India, Pakistan",
32 "postedText": "2 days ago",
33 "contactShown": "premium members",
34 "description": "Please quote for 1121 golden sella basmati rice, 5 kg and 25 kg PP bags, moisture 12 % max, broken 2 % max. Shipping terms: CIF Jebel Ali. Monthly requirement for our distribution company.",
35 },
36 {
37 "product": "Turmeric Finger, Polished, Curcumin 3 %+ (sample)",
38 "board": "alibaba",
39 "boardLeadId": "sample-1002",
40 "sample": True,
41 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm#rfq-1002",
42 "country": "NL",
43 "quantity": 10,
44 "unit": "Metric Ton/Metric Tons",
45 "postedText": "3 days ago",
46 "quotesLeft": 4,
47 "contactShown": "after login",
48 "description": "We import spices for the Benelux food industry. Looking for polished turmeric fingers, curcumin 3 % minimum, EU MRL compliant, 25 kg jute bags. FOB Indian port, first order 10 MT then quarterly.",
49 },
50 {
51 "product": "Non Basmati Rice (sample)",
52 "board": "exportersindia",
53 "boardLeadId": "sample-1003",
54 "sample": True,
55 "url": "https://www.exportersindia.com/buyers/rice.htm",
56 "country": "IN",
57 "quantity": 50,
58 "unit": "Metric Ton",
59 "paymentTerms": "online",
60 "destination": "Chennai, Tamil Nadu, India",
61 "postedText": "1 day ago",
62 "contactShown": "after login",
63 "description": "I am interested in buying Non Basmati Rice · Requirement: Urgent · Frequency: Monthly · Buys: Sona masoori rice, Ponni rice",
64 },
65 {
66 "product": "Black Pepper 550 GL Required (sample)",
67 "board": "tradekey",
68 "boardLeadId": "sample-1004",
69 "sample": True,
70 "url": "https://importer.tradekey.com/black-pepper-importer.html",
71 "country": "GB",
72 "quantity": 5,
73 "unit": "MT",
74 "postedText": "4 days ago",
75 "contactShown": "premium members",
76 "description": "We have buyers in the UK for black pepper 550 GL and work on commission on behalf of our client. Send your best price.",
77 },
78 {
79 "product": "Rice Mill Machine, 5 Tons per Day (sample)",
80 "board": "alibaba",
81 "boardLeadId": "sample-1005",
82 "sample": True,
83 "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm#rfq-1005",
84 "country": "NG",
85 "quantity": 1,
86 "unit": "Set/Sets",
87 "postedText": "5 days ago",
88 "quotesLeft": 6,
89 "contactShown": "after login",
90 "description": "Need a complete rice milling plant line, 5 TPD, with destoner, husker and polisher.",
91 },
92 ],
93}
94
95
96run = client.actor("rich_minds/buy-leads-ai").call(run_input=run_input)
97
98
99print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
100for item in client.dataset(run.default_dataset_id).iterate_items():
101 print(item)
102
103