---
title: Get Top Domains by Country API
slug: top-domains-by-country
url: https://apyhub.com/dosvak/service/top-domains-by-country
provider: Dosvak LLC
categories: [Marketing, SEO, Standard Data]
tags: [seo, web-analytics, country-data, domain-ranking, market-research]
auth: api_key
version: 0.1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Get Top Domains by Country API

Get the top domains for any country, sorted by coverage or rank. Built for SEO research, market analysis, and tracking local web popularity.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/dosvak/top-domains-by-country/:country_code` | What it does Returns the top domains for a specific country code. The country code is supplied in t… | 100 |

## Endpoint reference

###  Top Domains by Country  

`GET https://api.eu.apyhub.com/dosvak/top-domains-by-country/:country_code` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Limit Default: `50`. Example: `50`. |
| `sort_by` | query | string | no | Sort By Default: `coverage`. Example: `coverage`. |
| `country_code` | path | string | yes | Country Code |

#### Quickstart

Fetch the top domains for a country code, using the required path parameter and optional query filters.

```bash
curl -X GET "https://api.eu.apyhub.com/dosvak/top-domains-by-country/:country_code/" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a structured JSON object containing ranked domains and associated metadata for the requested country. The response may include additional fields depending on the available data.

```json
{
  "country_code": "US",
  "total": 1742314,
  "domains": [
    {
      "val": "fsgw.org",
      "count": 1,
      "min_harmonic": 84072,
      "avg_ptile": 57
    }
],
  "attribution": [
  ]
}
```

## About

## What it does
Top Domains by Country returns a country-specific list of the most visited domains, sorted by coverage or rank. Send a `country_code`, and optionally set `limit` and `sort_by`, to get back the top domains for that market.

Use Top Domains by Country when you need a fast way to compare online presence across regions, seed a country-specific competitive analysis, or build dashboards around local web traffic patterns. The endpoint supports `limit` values from 1 to 500, and `sort_by` can be `coverage` or `rank`, so you can focus on breadth of reach or ordering by position.

Because the response schema is open-ended, expect a structured country-top-domains result rather than a fixed set of fields. That makes it suitable for downstream processing when you want to display, filter, or store the returned domain data in your own app.

Top Domains by Country fits SEO tooling, market research, and geographic benchmarking workflows where country-level domain popularity matters.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/top-domains-by-country
