v1

latestOpenAPI 3.1.02026-07-2414103.5 MB

Global Rank - Total (Desktop & Mobile)

Returns Similarweb's Global Rank for a given domain. Global Rank is calculated based on a mix of our estimations of a site's monthly unique visitors and monthly pageviews across desktop and mobile traffic.

get/{domain_name}/global-rank/global-rank

Path parameters

domain_namestring required

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

Query parameters

api_keystring required

Your Similarweb API key.

start_datestring

Start month (format: YYYY-MM)

end_datestring

End month (format: YYYY-MM)

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.

Response

200

Example response

{
  "meta": {
    "request": {
      "format": "json",
      "domain": "cnn.com",
      "start_date": "2023-01-01",
      "end_date": "2023-03-31",
      "country": "world"
    },
    "status": "Success",
    "last_updated": "2023-05-31"
  },
  "global_rank": [
    {
      "date": "2023-01",
      "global_rank": 86
    }
  ]
}