v1

latestOpenAPI 3.1.02026-07-2414103.5 MB

Desktop vs. Mobile Split - (Desktop & Mobile)

Returns the desktop vs. mobile web traffic share split for the selected time period (1 month minimum).

get/{domain_name}/total-traffic-and-engagement/visits-split

Path parameters

domain_namestring required

Enter website of interest, without 'www.' or brackets {}

Query parameters

api_keystring required

Your Similarweb API key.

start_datestring required

Start month (format: YYYY-MM)

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.

main_domain_onlystring

[optional] Return values for the main domain only ('true'), or include also the subdomains ('false').

formatstring

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

show_verifiedstring

[optional] Show shared Google Analytics data when available. Default value is 'false'.

Response

200

desktop_visit_sharenumber
mobile_web_visit_sharenumber

Example response

{
  "meta": {
    "request": {
      "granularity": "Daily",
      "format": "json",
      "domain": "cnn.com",
      "start_date": "2023-01-01",
      "end_date": "2023-03-31",
      "country": "us"
    },
    "status": "Success",
    "last_updated": "2023-05-31"
  },
  "desktop_visit_share": 0.3282241726915603,
  "mobile_web_visit_share": 0.6717758273084398
}