$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "urls": [
< "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
< ],
< "fields": [
< {
< "name": "name",
< "type": "string",
< "description": "Product name as shown on the page"
< },
< {
< "name": "price",
< "type": "number",
< "description": "Current selling price as a plain number"
< },
< {
< "name": "currency",
< "type": "string",
< "description": "ISO 4217 currency code of the price, e.g. USD"
< },
< {
< "name": "in_stock",
< "type": "boolean",
< "description": "Whether the product can be ordered now"
< },
< {
< "name": "stock",
< "type": "integer",
< "description": "Number of items available"
< },
< {
< "name": "upc",
< "type": "string",
< "description": "UPC or article number exactly as shown"
< },
< {
< "name": "category",
< "type": "string",
< "description": "Product category"
< }
< ],
< "proxyConfiguration": {
< "useApifyProxy": true,
< "apifyProxyGroups": [
< "RESIDENTIAL"
< ]
< }
<}
<EOF
$curl "https://api.apify.com/v2/actors/tracefetch~ai-web-scraper-verified/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'