domainstring必須
Bare website hostname without scheme, path, port, or credentials.
https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshotGet a one-month snapshot of a website's traffic: visits, visit duration, pages per visit and bounce rate.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns a one-month traffic snapshot for a website: visits, average visit duration, pages per visit and bounce rate. It needs a bare hostname in domain, such as cnn.com. You can pass a complete month in month.
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "cnn.com"}'
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. |
month | string | No | Complete month in YYYY-MM. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"domain": "cnn.com",
"metrics": {
"average_visit_duration": 197.57361621705832,
"bounce_rate": 0.6352565984600038,
"pages_per_visit": 1.9900475193331115,
"visits": 188658557.46746868
},
"month": "2026-09"
},
"meta": {
"country": "ww",
"end_date": "2026-09",
"granularity": "monthly",
"request_id": "imc_fefb0e65533d7032dd730ff1f2aa41eb6bb6f3bef45533349755e5e34fd75281",
"retrieved_at": "2026-11-03T07:43:23.674777096Z",
"source": "similarweb",
"start_date": "2026-09"
}
}
| Field | Meaning |
|---|---|
data.domain | The hostname the metrics describe. |
data.month | The month the snapshot covers, in YYYY-MM format. |
data.metrics.visits | Estimated number of visits to the site in that month. The value is a decimal, so round it for display. |
data.metrics.average_visit_duration | Average length of a visit. The value is not labeled with a unit, so check it against a known site before you display it. |
data.metrics.pages_per_visit | Average number of pages viewed in one visit. |
data.metrics.bounce_rate | Share of visits that left after one page, as a fraction between 0 and 1. A value of 0.635 means about 63.5%. |
meta.country | The country scope of the data. Only ww (worldwide) is supported. |
meta.start_date / meta.end_date | The first and last month covered. They match data.month for a snapshot. |
meta.granularity | How the data is bucketed. This API returns monthly. |
month, the response still returns a month in data.month. Set month to a complete month in YYYY-MM format to choose one yourself.country accepts only ww, and the value is case-insensitive.$0.3 per successful call. Failed calls are not charged.
Use Website Traffic Snapshot for one domain's monthly overview. domain is required: send a hostname such as cnn.com without a scheme, path, port or credentials. country accepts ww only. Set the optional month to a complete YYYY-MM when you need a reproducible comparison; check the returned month instead of assuming it is the current month. Availability for a particular domain or month is not guaranteed.
Pricing checked on 2026-11-08: the listed base price is $0.30 per call before any applicable discount. Recheck current pricing before execution. This price check was not a paid business query. For a month-by-month series with selected metrics, inspect Traffic & Engagement and its date-range pricing.
Already have a SandBase API key? Keep it in your local SANDBASE_API_KEY environment variable, then open this page's API tab for the POST route and request body. Send the key as a Bearer token; never put it in a shared prompt or committed file. The Quickstart explains setup.
Already connected your agent to SandBase? Ask it to inspect this exact endpoint and show the domain, month range and estimated cost before running one request. Starting a new project? Give your agent the setup Skill, this page URL and your research question. The Markdown quickstart is also ready to hand to an agent.
Read the completed response from outputs[0].data. The reference response illustrates one result; inspect your own returned payload before writing a parser. Missing estimates are unknown, not zero. Follow the Similarweb Python and traffic-comparison guide for a bounded request.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "cnn.com",
"country": "ww"
}'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
monthstringComplete month in YYYY-MM.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Similarweb | $0.30 / 回 | JSON |
Similarweb | 1回あたり $0.225 から | JSON |
Similarweb | 1回あたり $0.375 から | JSON |
Similarweb | 1回あたり $0.15 から | JSON |
Similarweb | 1回あたり $0.525 から | JSON |
Similarweb | $0.60 / 回 | JSON |
ガイド:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.30、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: domain (string)。 任意: country(ww のいずれか) と month (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Similarweb Website Traffic Snapshot は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Similarweb の API アクセスを別途申請する必要はありません。
1 つのドメインと 1 か月なら Website Traffic Snapshot を使ってください。日付範囲と選択したメトリクスなら Traffic & Engagement を使ってください。価格はメトリクス数と月数に応じて変わります。Similarweb の値は推定値であり、他サイトのファーストパーティ分析へのアクセスではありません。
domain は必須で、scheme、path、port、認証情報を含まないホスト名である必要があります。 month は任意ですが、特定の月が必要な場合は完全な YYYY-MM を指定し、結果の月を確認してください。 country は ww のみ受け付けます。 data が欠けていても、traffic がゼロという意味ではありません。
この正確なエンドポイントを確認し、1 つのドメインと 1 か月を選び、現在の価格を見直してください。2026-11-08 時点の表示ベース価格は、適用可能な割引前で 1 回あたり $0.30 でした。これは価格確認であり、有料テストではありません。新規統合には setup Skill を使用し、共有プロンプトに API キーを含めないでください。