APIMaster.ai
API даних/Similarweb/Traffic sources and advertising
Тимчасово недоступно

Get traffic channels for a website segment

Requires a valid account-specific segment ID. Public execution is unavailable until segment access is supported.

GET/v1/similarweb/segment-analysis/segments/traffic-sources

Параметри запиту

ПараметрТипЗначення
countryНеобов'язковий або умовнийstringGeographic scope. Only ww (worldwide) is supported.

ww

end_dateОбов'язковийstringLast month, YYYY-MM, inclusive.
formatНеобов'язковий або умовнийstringResponse format. Only json is supported.

json

granularityОбов'язковийstringTime interval. Only monthly is supported.

monthly

main_domain_onlyНеобов'язковий або умовнийbooleanWhether to limit analysis to the main domain.
metricsОбов'язковийstringComma-separated metric names. Supported names depend on this API.
segmentОбов'язковийstringAuthorized website segment ID. Public execution is currently unavailable.
start_dateОбов'язковийstringFirst month, YYYY-MM. Availability depends on the dataset.
web_sourceНеобов'язковий або умовнийstringDevice coverage: desktop, mobile_web or total, as allowed below.

total

Відповідь

Returns JSON with the requested traffic or market data. Field names and available metrics vary by API; consult the downloadable OpenAPI schema. Empty or missing data does not mean zero traffic.

Worldwide (ww) and monthly data only. These are third-party estimates, not verified users or sales. Data may be unavailable for small websites or recent months.

Use your APIMaster Bearer key. Model-restricted keys must allow similarweb. Only wallet funds cover these requests.

Ціни та розрахунок

Reference estimates checked on 2026-12-02, using the displayed query parameters and default account pricing. More months, metrics or result rows can increase the cost; get a free estimate before executing.

Запросіть безкоштовну оцінку перед виконанням виклику. Оцінка не є фіксованою ціною або жорстким лімітом витрат. Ваша плата розраховується на основі фактично розрахованого використання та поточного групового множника вашого акаунта, застосованого один раз. Орієнтовна сума резервується з вашого гаманця; невикористані кошти повертаються після розрахунку. Підписки на моделі та пробні кредити не покривають ці виклики.

Використовуйте унікальний Idempotency-Key для кожного запланованого виклику. Під час відновлення виклику зберігайте той самий ключ і параметри. Якщо результат або плата перебувають в очікуванні, зверніться до /v1/data-requests/{request_id}; не запускайте інший платний виклик із новим ключем.

400: недійсні параметри; 401: недійсний або прострочений ключ; 403: дозволи ключа; 402: недостатньо коштів у гаманці або квоти ключа; 409: конфлікт ідемпотентності або запит в очікуванні; 429: обмеження частоти; 502/503: запит або розрахунок недоступний. У разі будь-якої помилки збережіть ID запиту та перевірте розрахунок перед повторенням платної операції.

Приклади коду

curl --request GET 'https://apimaster.ai/v1/similarweb/segment-analysis/segments/traffic-sources?country=ww&end_date=2026-09&granularity=monthly&metrics=visits&segment=YOUR_SEGMENT_ID&start_date=2026-09' \
  --header 'Authorization: Bearer YOUR_APIMASTER_KEY' \
  --header 'Idempotency-Key: YOUR_UNIQUE_REQUEST_KEY'
Завантажити схему OpenAPI

Пов'язані ендпоінти