domainstringобязательно
domain
https://api.sandbase.ai/v1/api/similarweb/demographicsGet the age and gender breakdown of a website's visitors for the selected period.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Returns the age and gender split of a website's visitors for a chosen period. You send a domain, a start_date, an end_date and granularity, and get back shares between 0 and 1.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/demographics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"start_date": "2026-09", "end_date": "2026-09", "country": "ww", "domain": "cnn.com", "granularity": "monthly"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | domain |
end_date | string | Yes | end_date |
granularity | string | Yes | granularity |
start_date | string | Yes | start_date |
country | string | No | Worldwide data only; values are case-insensitive. |
format | string | No | format |
main_domain_only | boolean | No | main_domain_only |
web_source | string | No | web_source |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"age_18_to_24_share": 0.08070495283947984,
"age_25_to_34_share": 0.18467731979384402,
"age_35_to_44_share": 0.2067059697120009,
"age_45_to_54_share": 0.20790595096812176,
"age_55_to_64_share": 0.19314205276691135,
"age_65_plus_share": 0.12686375391964214,
"female_share": 0.4365859576418669,
"male_share": 0.5634140423581331
}
],
"meta": {
"last_updated": "2026-09-30",
"request": {
"country": "ww",
"domain": "cnn.com",
"end_date": "2026-09-30",
"format": "json",
"granularity": "monthly",
"metrics": [
"age_18_to_24_share"
],
"start_date": "2026-09-01"
},
"status": "success"
}
}
| Field | Meaning |
|---|---|
data[].age_18_to_24_share | Share of the site's visitors aged 18 to 24, as a fraction of 1. |
data[].age_25_to_34_share / age_35_to_44_share / age_45_to_54_share / age_55_to_64_share | Share of visitors in each of these age brackets, as a fraction of 1. |
data[].age_65_plus_share | Share of visitors aged 65 and older. |
data[].female_share / male_share | Share of visitors who are female and male. The two values add up to 1. |
meta.last_updated | Date the data was last updated, in YYYY-MM-DD format. |
meta.request.start_date / meta.request.end_date | Period the data covers. A monthly request is expanded to the first and last day of the month. |
meta.request.metrics | Metric names tied to the request. |
meta.status | Shows success when the call worked. |
YYYY-MM format, for example 2026-09.country accepts only ww, which means worldwide data. granularity accepts only monthly.$0.6 per successful call. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/demographics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww",
"end_date": "2026-09",
"start_date": "2026-09",
"granularity": "monthly"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
domainstringобязательноdomain
end_datestringобязательноend_date
granularitystringобязательноgranularity
Возможные значения: monthly
start_datestringобязательноstart_date
countrystringWorldwide data only; values are case-insensitive.
По умолчанию: "ww"
Возможные значения: ww
formatstringformat
Возможные значения: json
main_domain_onlybooleanmain_domain_only
web_sourcestringweb_source
Возможные значения: total
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Similarweb DemographicsЭтот API Similarweb | $0.60 за запрос | JSON |
Similarweb | От $0.225 за запрос | JSON |
Similarweb | От $0.375 за запрос | JSON |
Similarweb | От $0.15 за запрос | JSON |
Similarweb | От $0.525 за запрос | JSON |
Similarweb | От $1.275 за запрос | JSON |
Руководства:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/similarweb/demographics, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.60 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: domain (string), end_date (string), granularity (один из monthly) и start_date (string). Необязательные: country (один из ww), format (один из json), main_domain_only (boolean) и web_source (один из total). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Similarweb Demographics работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Similarweb.