APIMaster.ai
Data-API's/Similarweb/Traffic sources and advertising
Tijdelijk niet beschikbaar

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

Aanvraagparameters

ParameterTypeBetekenis
countryOptioneel of voorwaardelijkstringGeographic scope. Only ww (worldwide) is supported.

ww

end_dateVereiststringLast month, YYYY-MM, inclusive.
formatOptioneel of voorwaardelijkstringResponse format. Only json is supported.

json

granularityVereiststringTime interval. Only monthly is supported.

monthly

main_domain_onlyOptioneel of voorwaardelijkbooleanWhether to limit analysis to the main domain.
metricsVereiststringComma-separated metric names. Supported names depend on this API.
segmentVereiststringAuthorized website segment ID. Public execution is currently unavailable.
start_dateVereiststringFirst month, YYYY-MM. Availability depends on the dataset.
web_sourceOptioneel of voorwaardelijkstringDevice coverage: desktop, mobile_web or total, as allowed below.

total

Respons

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.

Prijzen en afrekening

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.

Vraag een gratis schatting aan voordat u een aanroep uitvoert. Een schatting is geen vaste prijs en geen hard bestedingsplafond. Uw tarief is gebaseerd op het werkelijk afgerekende gebruik en de huidige groepsmultiplier van uw account, die eenmalig wordt toegepast. Het geschatte bedrag wordt op uw wallet gereserveerd; ongebruikte middelen worden na afrekening terugbetaald. Modelabonnementen en proeftegoeden dekken deze aanroepen niet.

Gebruik een unieke Idempotency-Key voor elke beoogde aanroep. Behoud dezelfde sleutel en parameters bij het herstellen van een aanroep. Als de uitkomst of het tarief nog in behandeling is, raadpleeg /v1/data-requests/{request_id}; start dan geen nieuwe betaalde aanroep met een nieuwe sleutel.

400: ongeldige parameters; 401: ongeldige of verlopen sleutel; 403: sleutelmachtigingen; 402: onvoldoende wallet- of sleutelquota; 409: idempotentieconflict of aanvraag in behandeling; 429: snelheidslimiet; 502/503: aanvraag of afrekening niet beschikbaar. Bewaar bij elke fout het aanvraag-ID en controleer de afrekening voordat u een betaalde bewerking herhaalt.

Codevoorbeelden

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-schema downloaden

Gerelateerde APIs