domainstringобязательно
Bare website hostname without scheme, path, port, or credentials.
https://api.sandbase.ai/v1/api/similarweb/website-top-geographiesGet the countries a website's traffic comes from, with share and visits for each country.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Returns the countries that send traffic to a website, with each country's share of traffic and visit count. It needs a bare domain such as cnn.com and can take a month in YYYY-MM format.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-top-geographies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "cnn.com", "month": "2026-09"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Bare website hostname without scheme, path, port, or credentials. |
month | string | No | Complete month in YYYY-MM. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"countries": [
{
"country_code": "us",
"country_name": "United States",
"rank": null,
"share": 0.8111012961668697,
"visits": 153021200.49451894
}
]
},
"meta": {
"country": "ww",
"end_date": "2026-09",
"granularity": "monthly",
"request_id": "imc_c30995d6af7ed527de005aaf6c0822d71f6c0fc719e2f31a4cb27ddb09d08ee5",
"retrieved_at": "2026-11-03T07:43:23.793583227Z",
"source": "similarweb",
"start_date": "2026-09"
}
}
| Field | Meaning |
|---|---|
data.countries[] | List of countries that send traffic to the domain. Each item is one country. |
data.countries[].country_code | Lowercase two-letter country code, for example us. |
data.countries[].country_name | English name of the country. |
data.countries[].share | Fraction of the site's traffic from this country. A value of 0.81 means about 81 percent. |
data.countries[].visits | Number of visits from this country. The value is a decimal, so round it for display. |
data.countries[].rank | Country rank value. It is null in this response. |
meta.start_date / meta.end_date | First and last month covered by the data, in YYYY-MM format. |
meta.granularity | Time step of the data. The value here is monthly. |
meta.country | Country scope of the request. The value ww is used here for all countries combined. |
month is optional. Use a complete month in YYYY-MM format, such as 2026-09.Billed at the actual cost of each call, about $0.225 for the request above. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-top-geographies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"month": "2026-09",
"domain": "cnn.com"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
domainstringобязательноBare website hostname without scheme, path, port, or credentials.
monthstringComplete month in YYYY-MM.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Similarweb | От $0.225 за запрос | JSON |
Similarweb | От $0.225 за запрос | JSON |
Similarweb | От $0.375 за запрос | JSON |
Similarweb | От $0.15 за запрос | JSON |
Similarweb | От $0.525 за запрос | JSON |
Similarweb | $0.60 за запрос | JSON |
Руководства:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/similarweb/website-top-geographies, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.225 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: domain (string). Необязательные: month (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Similarweb Website Top Geographies работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Similarweb.