$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "products": [
< "rice",
< "spices"
< ],
< "minScore": 40,
< "maxDiscoveryChargeUsd": 0.5,
< "postedWithinDays": 14,
< "maxPagesPerBoard": 2,
< "sourceMode": "list",
< "itemsList": [
< {
< "product": "1121 Golden Sella Basmati Rice (sample)",
< "board": "go4worldbusiness",
< "boardLeadId": "sample-1001",
< "sample": true,
< "url": "https://www.go4worldbusiness.com/buyers/basmati-rice.html",
< "buyerName": "Gulf Star Foodstuff Trading LLC (sample)",
< "country": "AE",
< "quantity": 2,
< "unit": "Twenty-Foot Container",
< "paymentTerms": "LC at sight",
< "destination": "Jebel Ali, United Arab Emirates",
< "sourcingCountries": "India, Pakistan",
< "postedText": "2 days ago",
< "contactShown": "premium members",
< "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."
< },
< {
< "product": "Turmeric Finger, Polished, Curcumin 3 %+ (sample)",
< "board": "alibaba",
< "boardLeadId": "sample-1002",
< "sample": true,
< "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm#rfq-1002",
< "country": "NL",
< "quantity": 10,
< "unit": "Metric Ton/Metric Tons",
< "postedText": "3 days ago",
< "quotesLeft": 4,
< "contactShown": "after login",
< "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."
< },
< {
< "product": "Non Basmati Rice (sample)",
< "board": "exportersindia",
< "boardLeadId": "sample-1003",
< "sample": true,
< "url": "https://www.exportersindia.com/buyers/rice.htm",
< "country": "IN",
< "quantity": 50,
< "unit": "Metric Ton",
< "paymentTerms": "online",
< "destination": "Chennai, Tamil Nadu, India",
< "postedText": "1 day ago",
< "contactShown": "after login",
< "description": "I am interested in buying Non Basmati Rice · Requirement: Urgent · Frequency: Monthly · Buys: Sona masoori rice, Ponni rice"
< },
< {
< "product": "Black Pepper 550 GL Required (sample)",
< "board": "tradekey",
< "boardLeadId": "sample-1004",
< "sample": true,
< "url": "https://importer.tradekey.com/black-pepper-importer.html",
< "country": "GB",
< "quantity": 5,
< "unit": "MT",
< "postedText": "4 days ago",
< "contactShown": "premium members",
< "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."
< },
< {
< "product": "Rice Mill Machine, 5 Tons per Day (sample)",
< "board": "alibaba",
< "boardLeadId": "sample-1005",
< "sample": true,
< "url": "https://sourcing.alibaba.com/rfq/rfq_search_list.htm#rfq-1005",
< "country": "NG",
< "quantity": 1,
< "unit": "Set/Sets",
< "postedText": "5 days ago",
< "quotesLeft": 6,
< "contactShown": "after login",
< "description": "Need a complete rice milling plant line, 5 TPD, with destoner, husker and polisher."
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/rich_minds~buy-leads-ai/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'