$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "snapshots": [
< {
< "date": "2026-01-01",
< "label": "January export",
< "items": [
< {
< "placeId": "a1",
< "categoryName": "Coffee shop",
< "city": "Springfield"
< },
< {
< "placeId": "a2",
< "categoryName": "Coffee shop",
< "city": "Springfield"
< },
< {
< "placeId": "a3",
< "categoryName": "Bakery",
< "city": "Springfield"
< },
< {
< "placeId": "a4",
< "categoryName": "Gym",
< "city": "Rivertown"
< },
< {
< "placeId": "a5",
< "categoryName": "Coffee shop",
< "city": "Rivertown"
< }
< ]
< },
< {
< "date": "2026-04-01",
< "label": "April export",
< "items": [
< {
< "placeId": "a1",
< "categoryName": "Coffee shop",
< "city": "Springfield"
< },
< {
< "placeId": "a3",
< "categoryName": "Bakery",
< "city": "Springfield"
< },
< {
< "placeId": "b1",
< "categoryName": "Bakery",
< "city": "Springfield"
< },
< {
< "placeId": "a4",
< "categoryName": "Gym",
< "city": "Rivertown"
< },
< {
< "placeId": "b2",
< "categoryName": "Gym",
< "city": "Rivertown"
< },
< {
< "placeId": "b3",
< "categoryName": "Yoga studio",
< "city": "Rivertown"
< }
< ]
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/practical_ai_lab_jp~pal-maps-local-category-trends/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'