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.
呼び出しを実行する前に無料の見積もりを取得してください。見積もりは固定価格でも厳格な支出上限でもありません。手数料は、実際に精算された使用量とアカウントの現在のグループ乗数を用いて 1 回計算されます。見積額はウォレットから予約され、未使用分は精算後に返還されます。モデルのサブスクリプションとトライアルクレジットはこれらの呼び出しには適用されません。
意図する呼び出しごとに一意の 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'
