$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
<  "requests": [
<    {
<      "url": "https://www.scrapethissite.com/pages/simple/"
<    },
<    {
<      "id": "forms",
<      "url": "https://www.scrapethissite.com/pages/simple/",
<      "extract": [
<        {
<          "field_name": "extracted_html",
<          "selector": "#countries > div > div:nth-child(4) > div:nth-child(1)",
<          "extract_type": "HTML"
<        }
<      ]
<    },
<    {
<      "id": "hockey",
<      "url": "https://www.scrapethissite.com/pages/forms/",
<      "extract": [
<        {
<          "field_name": "year1",
<          "selector": "#hockey > div > table > tbody > tr:nth-child(2) > td.year",
<          "extract_type": "Text"
<        },
<        {
<          "field_name": "year2",
<          "selector": "#hockey > div > table > tbody > tr:nth-child(3) > td.year",
<          "extract_type": "Text"
<        },
<        {
<          "field_name": "class_name",
<          "selector": "#hockey > div > table > tbody > tr:nth-child(2) > td.year",
<          "extract_type": {
<            "Attribute": "class"
<          }
<        }
<      ]
<    }
<  ],
<  "proxy_settings": {
<    "useApifyProxy": true
<  }
<}
<EOF
$curl "https://api.apify.com/v2/acts/danielherman~fast-scraper/runs?token=$API_TOKEN" \
<  -X POST \
<  -d @input.json \
<  -H 'Content-Type: application/json'