$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "enableListingSearch": true,
< "searchKeywords": [
< "nike air jordan 1",
< "yeezy boost 350",
< "new balance 550"
< ],
< "searchMaxResults": 10,
< "searchSort": "newest",
< "searchFetchFullDetails": false,
< "enableListingDetails": false,
< "productIds": [],
< "enableSellerListings": false,
< "sellerUsernames": [
< "nike"
< ],
< "sellerMaxListings": 30,
< "enableSellerProfile": false,
< "enableSoldHistory": false,
< "soldMaxItems": 30,
< "enableScrapeByUrl": false,
< "scrapeUrls": [
< "https://stockx.com/search?q=nike+air+jordan"
< ],
< "webhookFormat": "json",
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~stockx-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'