$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "products": [
< "basmati rice"
< ],
< "minScore": 30,
< "maxPerSite": 50,
< "sourceMode": "list",
< "itemsList": [
< {
< "name": "Sample Agro Exports (demo)",
< "site": "tradeindia",
< "url": "https://www.tradeindia.com/manufacturers/1121-basmati-rice.html",
< "productTitle": "1121 Steam Basmati Rice",
< "productQuery": "basmati rice",
< "city": "Karnal",
< "state": "Haryana",
< "price": "85 INR (Approx.)",
< "priceUnitText": "Kilograms/Kilograms",
< "moq": "25 Ton",
< "yearsInBusiness": 18,
< "yearsInBusinessBasis": "established",
< "gstVerified": true,
< "trustBadges": [
< "TI Verified",
< "Trust Stamp"
< ],
< "certifications": [
< "FSSAI",
< "APEDA"
< ],
< "maskedPhone": true,
< "description": "Average grain length 8.35 mm. Package Size - 25 Kg. Moisture 12 % max.",
< "sourceUrl": "https://www.tradeindia.com/manufacturers/basmati-rice.html",
< "listingId": "900001",
< "sellerUrl": "https://example.com/sample/seller/sample-agro-exports"
< },
< {
< "name": "Demo Rice Mills Pvt Ltd (demo)",
< "site": "tradeindia",
< "url": "https://www.tradeindia.com/manufacturers/sella-basmati-rice.html",
< "productTitle": "1121 Golden Sella Basmati Rice",
< "productQuery": "basmati rice",
< "city": "Amritsar",
< "state": "Punjab",
< "price": "1,050 USD ($) (Approx.)",
< "priceUnitText": "Metric Ton/Metric Tons",
< "moq": "26 Metric Ton",
< "yearsInBusiness": 22,
< "yearsInBusinessBasis": "established",
< "gstVerified": false,
< "trustBadges": [
< "Trust Stamp"
< ],
< "certifications": [
< "ISO 22000",
< "HALAL"
< ],
< "maskedPhone": true,
< "description": "Golden sella, 1121 variety, 50 Kg PP bags, FOB Mundra.",
< "sourceUrl": "https://www.tradeindia.com/manufacturers/basmati-rice.html",
< "listingId": "900002",
< "sellerUrl": "https://example.com/sample/seller/demo-rice-mills-pvt-ltd"
< },
< {
< "name": "Example Foods (demo)",
< "site": "exportersindia",
< "url": "https://example.com/sample/exportersindia/1509-basmati-rice-long-grain-900003",
< "productTitle": "1509 Basmati Rice - Long Grain",
< "productQuery": "basmati rice",
< "city": "Mumbai",
< "state": "Maharashtra",
< "price": "Rs 70 - Rs 95 Per Kilogram",
< "moq": "100 Kilogram",
< "yearsInBusiness": 1,
< "yearsInBusinessBasis": "member since",
< "gstVerified": true,
< "trustBadges": [
< "GST"
< ],
< "certifications": [],
< "description": "Variety: 1509; Packaging Type: PP Bag; Shelf Life: 12 Months",
< "sourceUrl": "https://www.exportersindia.com/indian-suppliers/basmati-rice.htm",
< "listingId": "900003",
< "sellerUrl": "https://example.com/sample/seller/example-foods"
< },
< {
< "name": "Sample Overseas (demo)",
< "site": "tradeindia",
< "url": "https://www.tradeindia.com/manufacturers/pusa-basmati-rice.html",
< "productTitle": "Pusa Basmati Rice",
< "productQuery": "basmati rice",
< "city": "Delhi",
< "state": "Delhi",
< "price": "Get Latest Price",
< "priceUnitText": "Kilograms/Kilograms",
< "moq": "10 Ton",
< "yearsInBusiness": 7,
< "yearsInBusinessBasis": "established",
< "gstVerified": null,
< "trustBadges": [],
< "certifications": [],
< "maskedPhone": true,
< "description": "Pusa basmati, raw and sella.",
< "sourceUrl": "https://www.tradeindia.com/manufacturers/basmati-rice.html",
< "listingId": "900004",
< "sellerUrl": "https://example.com/sample/seller/sample-overseas"
< },
< {
< "name": "Demo Grain Traders (demo)",
< "site": "exportersindia",
< "url": "https://example.com/sample/exportersindia/basmati-rice-25-kg-bag-900005",
< "productTitle": "Basmati Rice 25 Kg Bag",
< "productQuery": "basmati rice",
< "city": "Ahmedabad",
< "state": "Gujarat",
< "price": "Rs 2,300 Per Bag",
< "moq": "40 Bag",
< "yearsInBusiness": 3,
< "yearsInBusinessBasis": "member since",
< "gstVerified": true,
< "trustBadges": [
< "GST",
< "Verified"
< ],
< "certifications": [],
< "description": "Packaging Size: 25 Kg; Variety: Traditional Basmati",
< "sourceUrl": "https://www.exportersindia.com/indian-suppliers/basmati-rice.htm",
< "listingId": "900005",
< "sellerUrl": "https://example.com/sample/seller/demo-grain-traders"
< },
< {
< "name": "Example Sona Masoori Suppliers (demo)",
< "site": "exportersindia",
< "url": "https://example.com/sample/exportersindia/sona-masoori-rice-900006",
< "productTitle": "Sona Masoori Rice",
< "productQuery": "basmati rice",
< "city": "Hyderabad",
< "state": "Telangana",
< "price": "Rs 38 Per Kilogram",
< "moq": "5 Ton",
< "yearsInBusiness": 2,
< "yearsInBusinessBasis": "member since",
< "gstVerified": true,
< "trustBadges": [
< "GST"
< ],
< "certifications": [],
< "description": "Sona Masoori raw rice, 26 Kg bags.",
< "sourceUrl": "https://www.exportersindia.com/indian-suppliers/basmati-rice.htm",
< "listingId": "900006",
< "sellerUrl": "https://example.com/sample/seller/example-sona-masoori-suppliers"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/rich_minds~india-b2b-suppliers-ai/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'