$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "search",
< "searchTerms": [
< "varsity jacket"
< ],
< "fetchSellerReviews": false,
< "includeSellerListings": false,
< "categories": [
< "outerwear"
< ],
< "urls": [
< "https://www.grailed.com/shop/search?query=jacket",
< "https://www.grailed.com/shop/search?query=jacket&page=2",
< "https://www.grailed.com/shop/search?query=jacket&sort=price_asc",
< "https://www.grailed.com/categories/footwear",
< "https://www.grailed.com/categories/footwear?page=2",
< "https://www.grailed.com/categories/outerwear",
< "https://www.grailed.com/categories/all",
< "https://www.grailed.com/categories/womenswear/tops",
< "https://www.grailed.com/categories/womenswear/tops?page=2",
< "https://www.grailed.com/categories/tops/short-sleeve-shirts",
< "https://www.grailed.com/designers/rick-owens",
< "https://www.grailed.com/designers/rick-owens/footwear",
< "https://www.grailed.com/dacoziest",
< "https://www.grailed.com/dacoziest/feedback",
< "https://www.grailed.com/listings/106977873",
< "https://www.grailed.com/listings/108776060-julius-julius-washed-and-distressed-denim-jacket",
< "https://grailed.com/listings/109485837"
< ],
< "department": "menswear",
< "fetchDetails": false,
< "proxy": {
< "useApifyProxy": true
< },
< "incrementalMode": false,
< "emitUnchanged": false,
< "emitExpired": false,
< "changeScope": "all",
< "compactUpdates": false,
< "expireAfterMissedScans": 1,
< "ignoreFieldsForChanges": []
<}
<EOF
$curl "https://api.apify.com/v2/actors/abotapi~grailed-marketplace-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'