$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "search",
< "searchTerms": [
< "harry potter"
< ],
< "sortBy": "relevance",
< "onlyInStock": false,
< "onlyOnSale": false,
< "urls": [
< "https://www.indigo.ca/products/harry-potter-and-the-philosopher-s-stone-25th-anniversary-edition",
< "https://www.indigo.ca/products/harry-potter-and-the-philosopher-s-stone-25th-anniversary-edition?variant=46458034192594&utm_source=x",
< "https://www.indigo.ca/en-ca/products/harry-potter-and-the-philosopher-s-stone-25th-anniversary-edition",
< "https://www.indigo.ca/fr/products/harry-potter-and-the-philosopher-s-stone-25th-anniversary-edition",
< "https://www.indigo.ca/collections/books",
< "https://www.indigo.ca/search?q=harry+potter",
< "https://m.indigo.ca/",
< "https://www.chapters.indigo.ca/en-ca/books/product/9780547928227-item.html",
< "https://www.indigo.ca/en-ca/search/?keywords=harry+potter"
< ],
< "fetchDetails": true,
< "maxItems": 20,
< "proxy": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "CA"
< },
< "incrementalMode": false,
< "compactUpdates": false,
< "emitUnchanged": false,
< "emitExpired": false,
< "ignoreFieldsForChanges": [
< "rating",
< "reviewCount",
< "inventoryATS",
< "availableInStores",
< "storesInStockCount"
< ],
< "notifyOnlyChanges": false
<}
<EOF
$curl "https://api.apify.com/v2/actors/abotapi~indigo-ca-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'