v1

latestOpenAPI 3.1.02026-07-2414103.5 MB

Company Analysis - All Traffic

Returns the total digital reach and performance at a company level, across desktop and mobile.

get/{company_id}/total-traffic-and-engagement/query

Path parameters

company_idstring required

Enter a company ID, as defined on the Similarweb platform. Without brackets {}.

Query parameters

api_keystring required

Your Similarweb API key.

start_datestring required

Start month (format: YYYY-MM) 2022-01

end_datestring required

End month (format: YYYY-MM)

countrystring required

Country filter, as a 2-letter ISO country code, or "world" for worldwide. To see the country filters you have access to, please refer to the Check Capabilities endpoint.

metricsstring required

List the metrics you would like to retrieve data for, separated by commas. Possible values: visits, pages-per-visit, page-views, bounce-rate and visit-duration.

granularitystring required

Set the granularity for the returned values. Can be 'weekly' or 'monthly'.

formatstring

[optional] Format in which the reply should be returned. Possible values: 'json' (default) or 'xml'.

Response

200

Example response

{
  "meta": {
    "request": {
      "company_name": "cnn",
      "granularity": "Monthly",
      "metrics": [
        "Visits"
      ],
      "company_id": "4ca1f0bf-2771-4610-ae7e-d8042fee1433",
      "format": "json",
      "start_date": "2021-07-01",
      "end_date": "2021-09-30",
      "country": "us"
    },
    "status": "Success",
    "last_updated": "2021-10-31"
  },
  "companies": [
    {
      "date": "2021-07-01",
      "visits": 245505587.54088828,
      "bounce_rate": 0.6006123576475306,
      "pages_per_visit": 1.6323390150826684,
      "visit_duration": 114.01022500414291,
      "page_views": 400748348.96378535
    }
  ]
}