Website Country Ranking API

If you need to gain a better understanding of the geographic traffic sources to a website, this API will tell you the top performing countries delivering the largest amount of traffic.

Features

  • Discover the website rank in the top 5 countries that drive most of the traffic to it
  • Get ranking results of over 30 million sites, growing daily
  • Output is given in XML or JSON for easy integration with any platform
  • Numeric values of ISO3166-1 country code
Try for FREE Now

Example: Ebay.com Top 5 countries input

{
 "http://api.similarweb.com/Site/ebay.com/CountryRank?Format=JSON&UserKey=[USERKEY]"
}

Example: Ebay.com Top 5 countries output

{
 "TopCountryRanks": [
  {
   "Code": 840,
   "Rank": 17
  },
  {
   "Code": 156,
   "Rank": 131
  },
  {
   "Code": 643,
   "Rank": 67
  },
  {
   "Code": 124,
   "Rank": 60
  },
  {
   "Code": 826,
   "Rank": 129
  }
 ]
}

FAQ

  1. Where can I find the full list of Country Codes?

    We use the numeric values of ISO3166-1 country code. For more information, click here.

  2. How often is the country ranking data updated?

    The ranking for every website is updated on a monthly basis, on the first week of each month. This means that the global ranking you receive is the ranking for a website on the month in which the request is made.

  3. What if I need the rank of more than 5 countries?

    We currently support only top 5 countries. Since we're working on adding new features to our APIs, we suggest you sign up for a free account to stay tuned with updates & news.

Who uses our APIs