$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "country": "ES",
< "enableListingSearch": true,
< "searchKeywords": [
< "carhartt",
< "vintage levis 501",
< "forro polar patagonia"
< ],
< "searchMaxResults": 10,
< "searchSort": "newest",
< "searchCondition": "",
< "searchFetchFullDetails": false,
< "enableListingDetails": false,
< "listingIds": [],
< "listingUrls": [],
< "enableClosetListings": false,
< "sellerUsernames": [],
< "sellerMaxListings": 30,
< "enableSellerProfile": false,
< "enableSoldHistory": false,
< "soldMaxItems": 30,
< "enableScrapeByUrl": false,
< "scrapeUrls": [
< "https://es.wallapop.com/search?keywords=carhartt"
< ],
< "webhookFormat": "json",
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "ES"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~wallapop-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'