$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "monitorId": "my-price-monitor",
< "targets": [
< {
< "id": "a-light-in-the-attic",
< "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
< "fields": [
< {
< "name": "title",
< "selector": "h1",
< "type": "text"
< },
< {
< "name": "price",
< "selector": ".price_color",
< "type": "price",
< "currency": "GBP",
< "decimalSeparator": "."
< },
< {
< "name": "availability",
< "selector": ".availability",
< "type": "text"
< }
< ]
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/telvio~ai-change-monitor/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'