$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "enableListingSearch": true,
< "searchKeywords": [
< "carhartt",
< "vintage levis 501",
< "patagonia fleece"
< ],
< "searchMaxResults": 10,
< "searchCategoryId": "",
< "searchSort": "date",
< "searchDepartmentCode": "",
< "searchOwnerType": "",
< "searchFetchFullDetails": false,
< "enableListingDetails": false,
< "listingIds": [],
< "listingUrls": [],
< "enableStoreInventory": false,
< "storeUrls": [],
< "storeMaxListings": 30,
< "enableSellerProfile": false,
< "enableScrapeByUrl": false,
< "scrapeUrls": [
< "https://www.leboncoin.fr/recherche?text=carhartt"
< ],
< "enablePriceHistory": false,
< "watchlist": [],
< "watchlistIds": [],
< "webhookFormat": "json",
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ],
< "apifyProxyCountry": "US"
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/b2b_leads~leboncoin-real-time-data-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'