curl --location 'https://api.similarweb.com/batch/v4/request-report' \
--header 'api-key: {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
  "delivery_information": {
    "response_format": "csv",
    "delivery_method": "download_link"
  },
  "report_query": {
    "tables": [
      {
        "vtable": "traffic_and_engagement",
        "granularity": "monthly",
        "filters": {
          "domains": [
            "amazon.com",
            "ebay.com",
            "etsy.com",
            "aliexpress.com"
          ],
          "countries": [
            "WW"
          ],
          "include_subdomains": true
        },
        "metrics": [
          "all_traffic_visits",
          "mobile_visits",
          "desktop_visits",
          "desktop_unique_visitors",
          "mobile_unique_visitors",
          "all_page_views"
        ],
        "start_date": "2024-04",
        "end_date": "2024-09"
      }
    ]
  }
}'
curl --location 'https://api.similarweb.com/v3/batch/request-status/{report_id}' \
--header 'api-key: {{API_KEY}}' \
--header 'Content-Type: application/json' \
This guide provides a step-by-step walkthrough for using Similarweb’s Batch API to make a report request. You’ll submit a batch job, check its status, and finally download the results once processing is complete.
curl --location 'https://api.similarweb.com/batch/v4/request-report' \
--header 'api-key: {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
  "delivery_information": {
    "response_format": "csv",
    "delivery_method": "download_link"
  },
  "report_query": {
    "tables": [
      {
        "vtable": "traffic_and_engagement",
        "granularity": "monthly",
        "filters": {
          "domains": [
            "amazon.com",
            "ebay.com",
            "etsy.com",
            "aliexpress.com"
          ],
          "countries": [
            "WW"
          ],
          "include_subdomains": true
        },
        "metrics": [
          "all_traffic_visits",
          "mobile_visits",
          "desktop_visits",
          "desktop_unique_visitors",
          "mobile_unique_visitors",
          "all_page_views"
        ],
        "start_date": "2024-04",
        "end_date": "2024-09"
      }
    ]
  }
}'
curl --location 'https://api.similarweb.com/v3/batch/request-status/{report_id}' \
--header 'api-key: {{API_KEY}}' \
--header 'Content-Type: application/json' \