$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "enableListingSearch": true,
< "searchTasks": [
< {
< "keyword": "carhartt detroit jacket",
< "location": "Toronto (GTA)"
< },
< {
< "keyword": "vintage 90s levis 501",
< "location": "Vancouver"
< },
< {
< "keyword": "nike jordan",
< "category": "men's shoes"
< }
< ],
< "searchMaxResults": 10,
< "searchCategories": [],
< "searchLocations": [],
< "searchSort": "relevance",
< "searchPriceType": "",
< "searchFetchFullDetails": false,
< "newlyListedOnly": false,
< "searchMaxAgeDays": 7,
< "searchKeywords": [],
< "enableListingDetails": false,
< "listingIds": [],
< "listingUrls": [],
< "enableClosetListings": false,
< "sellerUsernames": [
< "1015260943"
< ],
< "sellerMaxListings": 30,
< "enableSellerProfile": false,
< "enableSoldHistory": false,
< "soldMaxItems": 30,
< "enableScrapeByUrl": false,
< "scrapeUrls": [
< "https://www.kijiji.ca/b-buy-sell/canada/vintage+carhartt/k0c10l0"
< ],
< "webhookFormat": "json",
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "CA"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~kijiji-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'