$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "search",
< "locations": [
< "London"
< ],
< "startUrls": [
< {
< "url": "https://www.onthemarket.com/for-sale/property/london/"
< },
< {
< "url": "https://www.onthemarket.com/for-sale/property/london/?page=2"
< },
< {
< "url": "https://www.onthemarket.com/for-sale/property/london/?sort-field=price&sort-order=asc&page=2"
< },
< {
< "url": "https://www.onthemarket.com/for-sale/2-bed-flats-apartments/london/?min-price=300000&max-price=900000&sort-field=price&radius=3"
< },
< {
< "url": "https://www.onthemarket.com/for-sale/detached/london/"
< },
< {
< "url": "https://www.onthemarket.com/for-sale/property/sw19/"
< },
< {
< "url": "https://www.onthemarket.com/to-rent/property/manchester/"
< },
< {
< "url": "https://www.onthemarket.com/to-rent/property/london/?page=2"
< },
< {
< "url": "https://www.onthemarket.com/new-homes/property/london/"
< },
< {
< "url": "https://www.onthemarket.com/for-sale/property/london/?new-homes=true"
< },
< {
< "url": "https://www.onthemarket.com/details/20490019/"
< },
< {
< "url": "https://www.onthemarket.com/details/20622528"
< },
< {
< "url": "https://www.onthemarket.com/property/london/"
< },
< {
< "url": "https://www.onthemarket.com/agents/branch/1-clickproperties-acton/"
< },
< {
< "url": "https://www.onthemarket.com/agents/london/"
< }
< ],
< "incrementalMode": false,
< "emitUnchanged": false,
< "emitExpired": false,
< "ignoreFieldsForChanges": []
<}
<EOF
$curl "https://api.apify.com/v2/actors/abotapi~onthemarket-scraper/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'