Semrush Scraper

ENDPOINTS
GET/domains/traffic-by-country

Traffic by Country

Top countries sending visits to a domain, with share and desktop vs mobile split.

QUERY PARAMS

Root domain, any link to the site, or a semrush.com/website link. Subdomains and low-traffic sites have no data.

Examples:

  • Domain: openai.com
  • Site link: https://www.openai.com/research
  • Semrush link: https://www.semrush.com/website/openai.com/overview/
{
  "domain": "openai.com",
  "brand_name": null,
  "link": "https://www.semrush.com/website/openai.com/overview/",
  "favicon": null,
  "description": null,
  "country": "US",
  "categories": [
    {
      "slug": "ai",
      "name": "AI"
    },
    {
      "slug": "computer-software-and-development",
      "name": "Computer Software and Development"
    },
    {
      "slug": "wellness",
      "name": "Wellness"
    }
  ],
  "rank": {
    "global": {
      "value": 57,
      "change": 1
    },
    "country": {
      "value": 114,
      "change": -1,
      "country": "US",
      "name": "United States"
    },
    "category": {
      "value": 1,
      "change": 0,
      "category": {
        "slug": "wellness",
        "name": "Wellness"
      }
    }
  },
  "authority_score": 96,
  "visits": 565585964,
  "site_health": null,
  "data_date": "2026-08-15",
  "updated_at": "2026-09-17",
  "date": "2026-08-01",
  "countries": [
    {
      "country": "US",
      "name": "United States",
      "visits": 75070370,
      "share_percent": 13.27,
      "desktop_share_percent": 60.67,
      "mobile_share_percent": 39.33
    },
    {
      "country": "BD",
      "name": "Bangladesh",
      "visits": 61030705,
      "share_percent": 10.79,
      "desktop_share_percent": 97.25,
      "mobile_share_percent": 2.75
    },
    {
      "country": "IN",
      "name": "India",
      "visits": 32954824,
      "share_percent": 5.83,
      "desktop_share_percent": 48.95,
      "mobile_share_percent": 51.05
    },
    {
      "country": "BR",
      "name": "Brazil",
      "visits": 31901312,
      "share_percent": 5.64,
      "desktop_share_percent": 55.29,
      "mobile_share_percent": 44.71
    },
    {
      "country": "KR",
      "name": "South Korea",
      "visits": 25623655,
      "share_percent": 4.53,
      "desktop_share_percent": 21.55,
      "mobile_share_percent": 78.45
    }
  ]
}