---
title: "Metrics by country"
method: GET
path: "/site-explorer/metrics-by-country"
tags: ["Site Explorer"]
---

# Metrics by country

`GET /site-explorer/metrics-by-country`

## Request

- Base URL: `https://api.ahrefs.com/v3`
- URL: `https://api.ahrefs.com/v3/site-explorer/metrics-by-country`
- Auth: HTTP bearer

## Query parameters

- `select` string
- `limit` integer
- `date` string, date, required
- `mode` 'exact' | 'prefix' | 'domain' | 'subdomains'
- `target` string, url, required
- `portfolio_id` integer
- `protocol` 'both' | 'http' | 'https'
- `volume_mode` 'monthly' | 'average'
- `traffic_mode` 'static' | 'adaptive'
- `output` 'json' | 'csv' | 'xml' | 'php'

## Response `200`

OK

- SiteExplorerMetricsByCountry
  - `metrics` object[]
    - `country` 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'OTHER' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW'
    - `org_cost` integer, nullable: (10 units) The estimated value of your target's monthly organic search traffic, in USD cents.
    - `org_keywords` integer: The total number of keywords that your target ranks for in the top 100 organic search results.
    - `org_keywords_1_3` integer: The total number of keywords that your target ranks for in the top 3 organic search results.
    - `org_traffic` integer: (10 units) The estimated number of monthly visitors that your target gets from organic search.
    - `paid_cost` integer, nullable: (10 units) The estimated cost of your target's monthly paid search traffic, in USD cents.
    - `paid_keywords` integer: The total number of keywords that your target ranks for in paid search results.
    - `paid_pages` integer: The total number of pages from a target ranking in the top 100 paid search results.
    - `paid_traffic` integer: (10 units) The estimated number of monthly visitors that your target gets from paid search.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Error

## Changes

- **2026-09-29** `cd3374e805df`: 1 info
  - added the new optional `query` request parameter `portfolio_id`
- **2026-09-18** `512f729faa87`: 1 info
  - added the new optional `query` request parameter `limit`
- **2026-09-04** `c4c8047acede`: 1 breaking
  - for the `query` request parameter `traffic_mode`, default value was changed from `static` to `adaptive`
- **2026-08-06** `d7dfd5846302`: 1 info
  - added the new optional `query` request parameter `traffic_mode`

[Operation history](https://skmtc.dev/ahrefs/apis/ahrefs-api/changes/site-explorer/metrics-by-country/get.md)

---

[API](https://skmtc.dev/ahrefs/apis/ahrefs-api.md) - [All operations](https://skmtc.dev/ahrefs/apis/ahrefs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ahrefs/apis/ahrefs-api/revisions/667fedfff126?raw)
