$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "search",
< "segment": "car",
< "newToday": false,
< "urls": [
< "https://www.blocket.se/mobility/item/28291881",
< "https://www.blocket.se/28291881",
< "https://www.blocket.se/recommerce/forsale/item/28283080",
< "https://www.blocket.se/mobility/search/car?page=2",
< "https://www.blocket.se/mobility/search/api/search/SEARCH_ID_CAR_USED?page=2&sort=PRICE_ASC",
< "https://www.blocket.se/mobility/search/api/search/SEARCH_ID_CAR_USED?sort=PUBLISHED_DESC&year_from=2020&price_to=100000&location=0.300010",
< "https://www.blocket.se/mobility/search/api/search/SEARCH_ID_MC_USED",
< "https://www.blocket.se/mobility/search/api/search/SEARCH_ID_BOAT_USED",
< "https://www.blocket.se/mobility/search/mc",
< "https://www.blocket.se/mobility/browse/car",
< "https://www.blocket.se/mobility/search/car?make=0.785",
< "https://www.blocket.se/recommerce/forsale/search?q=cykel&page=2",
< "https://www.blocket.se/recommerce/forsale/search/api/search/SEARCH_ID_BAP_COMMON?q=cykel&page=2",
< "https://www.blocket.se/recommerce/forsale/search?category=0.71&location=0.300010",
< "https://www.blocket.se/annonser/hela_sverige?q=cykel",
< "https://www.blocket.se/mobility/search/car?utm_source=x&gclid=1",
< "https://www.blocket.se/sitemap.xml",
< "https://m.blocket.se/mobility/search/car",
< "https://www.blocket.se/bostad"
< ],
< "fetchDetails": true,
< "maxItems": 20,
< "proxy": {
< "useApifyProxy": true
< },
< "incrementalMode": false,
< "emitUnchanged": false,
< "emitExpired": false,
< "changeScope": "all",
< "compactUpdates": false,
< "expireAfterMissedScans": 1,
< "maxNotifyListings": 50
<}
<EOF
$curl "https://api.apify.com/v2/actors/abotapi~blocket-se-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'