Get traffic channels for a website segment
Requires a valid account-specific segment ID. Public execution is unavailable until segment access is supported.
/v1/similarweb/segment-analysis/segments/traffic-sourcesПараметри запиту
| Параметр | Тип | Значення |
|---|---|---|
| countryНеобов'язковий або умовний | string | Geographic scope. Only ww (worldwide) is supported.
|
| end_dateОбов'язковий | string | Last month, YYYY-MM, inclusive. |
| formatНеобов'язковий або умовний | string | Response format. Only json is supported.
|
| granularityОбов'язковий | string | Time interval. Only monthly is supported.
|
| main_domain_onlyНеобов'язковий або умовний | boolean | Whether to limit analysis to the main domain. |
| metricsОбов'язковий | string | Comma-separated metric names. Supported names depend on this API. |
| segmentОбов'язковий | string | Authorized website segment ID. Public execution is currently unavailable. |
| start_dateОбов'язковий | string | First month, YYYY-MM. Availability depends on the dataset. |
| web_sourceНеобов'язковий або умовний | string | Device coverage: desktop, mobile_web or total, as allowed below.
|
Відповідь
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'
