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 | 每次呼叫 $0.225 起 | JSON |
Similarweb | 每次呼叫 $0.375 起 | JSON |
Similarweb | 每次呼叫 $0.15 起 | JSON |
Similarweb | 每次呼叫 $0.525 起 | JSON |
Similarweb | 每次呼叫 $0.60 | JSON |
指南:Similarweb API: request examples and billingSimilarweb API pricing: data credits vs per-call prices
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.30,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:domain (string)。 選填:country(ww 之一) 和 month (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
不需要。Similarweb Website Traffic Snapshot 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Similarweb API 存取權。
一個網域、單一月份請使用 Website Traffic Snapshot。日期範圍與選定指標則使用 Traffic & Engagement;其價格取決於指標數與月份數。Similarweb 的數值是估算值,不是取得其他網站第一方分析資料的權限。
domain 為必填,且必須是沒有 scheme、path、port 或 credentials 的主機名稱。month 為選填;若需要特定月份,請提供完整的 YYYY-MM,並在結果中檢查月份。country 只接受 ww。缺少資料不代表流量為零。
請檢查這個確切的端點,選定一個網域和月份,並查看目前價格。以 2026-11-08 而言,列出的基礎價格為每次呼叫 $0.30,尚未包含任何適用折扣。這是價格查核,不是付費測試。新整合請使用 setup Skill,並避免在共享提示中放入 API keys。