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
问题
向 https://api.sandbase.ai/v1/api/similarweb/website-traffic-snapshot 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.30,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:domain (string)。 可选:country(ww 之一) 和 month (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Similarweb Website Traffic Snapshot 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Similarweb API 访问权限。
单个域名和单个月份请使用 Website Traffic Snapshot。日期范围和所选指标请使用 Traffic & Engagement;其价格取决于指标数和月份数。Similarweb 数值是估算值,不是对其他站点第一方分析数据的访问。
domain 为必填项,且必须是不含协议、路径、端口或凭据的主机名。month 为可选项;如果需要特定月份,请提供完整的 YYYY-MM,并检查结果中的月份。country 只接受 ww。缺失数据不等于零流量。
检查这个确切的端点,选择一个域名和一个月份,并查看当前价格。按 2026-11-08 的标价,基础价格为每次调用 $0.30,折扣另计。这只是一次价格检查,不是付费测试。新集成请使用 setup Skill,并将 API key 保留在共享提示词之外。