$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "beforeDate": "2026-09-01",
< "afterDate": "2026-10-01",
< "beforeItems": [
< {
< "asin": "B000000001",
< "title": "Sample kettle",
< "price": {
< "value": 39.99,
< "currency": "USD"
< },
< "listPrice": {
< "value": 49.99,
< "currency": "USD"
< },
< "availability": "In Stock",
< "seller": "Example Seller A"
< },
< {
< "asin": "B000000002",
< "title": "Sample lamp",
< "price": "EUR 24.50",
< "availability": "In Stock",
< "seller": "Example Seller B"
< },
< {
< "asin": "B000000003",
< "title": "Sample bottle",
< "price": 12,
< "currency": "USD",
< "inStock": true,
< "seller": "Example Seller A"
< }
< ],
< "afterItems": [
< {
< "asin": "B000000001",
< "title": "Sample kettle",
< "price": {
< "value": 34.99,
< "currency": "USD"
< },
< "listPrice": {
< "value": 49.99,
< "currency": "USD"
< },
< "availability": "In Stock",
< "seller": "Example Seller C"
< },
< {
< "asin": "B000000002",
< "title": "Sample lamp",
< "price": "USD 26.00",
< "availability": "Currently unavailable",
< "seller": "Example Seller B"
< },
< {
< "asin": "B000000004",
< "title": "Sample mug",
< "price": 8.5,
< "currency": "USD",
< "inStock": true,
< "seller": "Example Seller D"
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-amazon-offer-price-history-diff/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'