$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "search",
< "queries": [
< "organic milk"
< ],
< "retailers": [
< "costco",
< "safeway"
< ],
< "urls": [
< "https://www.instacart.com/store/costco/s?k=greek+yogurt",
< "https://www.instacart.com/store/costco/products/19208138-kirkland-signature-homogenized-milk-2-gal-2-gal",
< "https://www.instacart.com/store/costco/products/19208138",
< "https://www.instacart.com/store/safeway/storefront",
< "https://www.instacart.com/store/costco",
< "https://www.instacart.com/store/costco/collections/produce",
< "https://www.instacart.com/store/costco/s?k=greek+yogurt&page=2",
< "https://www.instacart.com/store/s?k=milk"
< ],
< "includeDepartments": false,
< "postalCode": "10001",
< "inStockOnly": false,
< "onSaleOnly": false,
< "fetchDetails": false,
< "proxy": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< },
< "incrementalMode": false,
< "emitUnchanged": false,
< "emitExpired": false,
< "ignoreFieldsForChanges": []
<}
<EOF
$curl "https://api.apify.com/v2/actors/abotapi~instacart-grocery-price-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'