domainstringобязательно
Bare website hostname without scheme, path, port, or credentials.
https://api.sandbase.ai/v1/api/similarweb/website-traffic-trendGet a website's monthly traffic trend for chosen metrics over a date range.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Returns a month-by-month series of traffic metrics for one website, such as visits. It needs a bare domain and can take a month range and up to four metrics.
visits for a news site over the past year to spot seasonal peaks.curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "cnn.com", "metrics": "visits", "start_date": "2026-09", "end_date": "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. |
country | string | No | Worldwide data only; values are case-insensitive. |
end_date | string | No | Inclusive last complete UTC month in YYYY-MM. |
metrics | string | No | One to four supported Traffic & Engagement metrics. |
start_date | string | No | Inclusive first month in YYYY-MM; provide together with end_date. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"domain": "cnn.com",
"metrics": [
"visits"
],
"points": [
{
"month": "2026-09",
"values": {
"visits": 188658557.46746868
}
}
]
},
"meta": {
"country": "ww",
"end_date": "2026-09",
"granularity": "monthly",
"request_id": "imc_91aa25a81e679d4b7772b913a288205efd08f83d9fb1f33e22cd849fd23f7b4e",
"retrieved_at": "2026-11-03T07:43:23.747988977Z",
"source": "similarweb",
"start_date": "2026-09"
}
}
| Field | Meaning |
|---|---|
data.domain | The website the series describes, echoed from the request. |
data.metrics | List of the metrics included in the response, for example visits. |
data.points[].month | The month for this data point, in YYYY-MM format. |
data.points[].values.visits | The value of the visits metric for that month. The response shows it as a decimal number, so round it before display. Other requested metrics appear as sibling keys under values. |
meta.country | The region the data covers. The response shows ww. |
meta.start_date / meta.end_date | The first and last month of the range the response covers. |
meta.granularity | Time step between points. The response shows monthly. |
meta.retrieved_at | UTC timestamp of when the data was fetched. |
start_date and end_date together, both in YYYY-MM format. end_date must be a complete UTC month.domain as a bare hostname such as cnn.com, with no scheme, path or port.metrics takes one to four values in a single string. It defaults to visits.$0.45 per successful call. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww",
"metrics": "visits",
"end_date": "2026-09",
"start_date": "2026-09"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
domainstringобязательноBare website hostname without scheme, path, port, or credentials.
countrystringWorldwide data only; values are case-insensitive.
По умолчанию: "ww"
Возможные значения: ww
end_datestringInclusive last complete UTC month in YYYY-MM.
metricsstringOne to four supported Traffic & Engagement metrics.
По умолчанию: "visits"
start_datestringInclusive first month in YYYY-MM; provide together with end_date.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Similarweb Website Traffic TrendЭтот API Similarweb | $0.45 за запрос | 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-traffic-trend, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.45 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: domain (string). Необязательные: country (один из ww), end_date (string), metrics (string) и start_date (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Similarweb Website Traffic Trend работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Similarweb.