$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "products": [
< {
< "asin": "A1",
< "brand": "Alpha Audio",
< "category": "Headphones",
< "price": 24.99,
< "currency": "USD"
< },
< {
< "asin": "A2",
< "brand": "Alpha Audio",
< "category": "Headphones",
< "price": 34.5,
< "currency": "USD"
< },
< {
< "asin": "A3",
< "brand": "Alpha Audio",
< "category": "Headphones",
< "price": 39,
< "currency": "USD"
< },
< {
< "asin": "B1",
< "brand": "Beta Sound",
< "category": "Headphones",
< "price": "$59.00",
< "currency": "USD"
< },
< {
< "asin": "B2",
< "brand": "Beta Sound",
< "category": "Headphones",
< "price": "$74.90",
< "currency": "USD"
< },
< {
< "asin": "B3",
< "brand": "Beta Sound",
< "category": "Headphones",
< "price": "$89.00",
< "currency": "USD"
< },
< {
< "asin": "B4",
< "brand": "Beta Sound",
< "category": "Headphones",
< "price": "$129.00",
< "currency": "USD"
< },
< {
< "asin": "G1",
< "brand": "Gamma Gear",
< "category": "Headphones",
< "price": "29,90 €",
< "currency": "EUR"
< },
< {
< "asin": "G2",
< "brand": "Gamma Gear",
< "category": "Headphones",
< "price": "44,90 €",
< "currency": "EUR"
< },
< {
< "asin": "G3",
< "brand": "Gamma Gear",
< "category": "Headphones",
< "price": "79,00 €",
< "currency": "EUR"
< },
< {
< "asin": "D1",
< "brand": "Delta Desk",
< "category": "Desk Lamps",
< "price": 18,
< "currency": "USD"
< },
< {
< "asin": "D2",
< "brand": "Delta Desk",
< "category": "Desk Lamps",
< "price": 27.5,
< "currency": "USD"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-amazon-brand-price-segments/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'