Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Similarweb Website Traffic Trend

API 文档
https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend

Get a website's monthly traffic trend for chosen metrics over a date range.

价格
$0.45美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 4 个可选

Playground

输入
Bare website hostname without scheme, path, port, or credentials.
Worldwide data only; values are case-insensitive.
Inclusive last complete UTC month in YYYY-MM.
One to four supported Traffic & Engagement metrics.
Inclusive first month in YYYY-MM; provide together with end_date.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Similarweb Website Traffic Trend API

Returns a month-by-month series of traffic metrics for one website, such as visits. It needs a bare domain and can take a month range and up to four metrics.

Use cases

  • Chart monthly visits for a news site over the past year to spot seasonal peaks.
  • Compare the monthly traffic of a competitor domain against your own by calling the API once per domain.
  • Track how a site's traffic changes after a redesign or a big news event.
  • Pull several metrics for the same months to build a traffic report for a client.

Request

curl -X POST "https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain": "cnn.com", "metrics": "visits", "start_date": "2026-09", "end_date": "2026-09"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
domainstringYesBare website hostname without scheme, path, port, or credentials.
countrystringNoWorldwide data only; values are case-insensitive.
end_datestringNoInclusive last complete UTC month in YYYY-MM.
metricsstringNoOne to four supported Traffic & Engagement metrics.
start_datestringNoInclusive first month in YYYY-MM; provide together with end_date.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "domain": "cnn.com",
    "metrics": [
      "visits"
    ],
    "points": [
      {
        "month": "2026-09",
        "values": {
          "visits": 188658557.46746868
        }
      }
    ]
  },
  "meta": {
    "country": "ww",
    "end_date": "2026-09",
    "granularity": "monthly",
    "request_id": "imc_91aa25a81e679d4b7772b913a288205efd08f83d9fb1f33e22cd849fd23f7b4e",
    "retrieved_at": "2026-11-03T07:43:23.747988977Z",
    "source": "similarweb",
    "start_date": "2026-09"
  }
}

Response fields

FieldMeaning
data.domainThe website the series describes, echoed from the request.
data.metricsList of the metrics included in the response, for example visits.
data.points[].monthThe month for this data point, in YYYY-MM format.
data.points[].values.visitsThe value of the visits metric for that month. The response shows it as a decimal number, so round it before display. Other requested metrics appear as sibling keys under values.
meta.countryThe region the data covers. The response shows ww.
meta.start_date / meta.end_dateThe first and last month of the range the response covers.
meta.granularityTime step between points. The response shows monthly.
meta.retrieved_atUTC timestamp of when the data was fetched.

Notes

  • Send start_date and end_date together, both in YYYY-MM format. end_date must be a complete UTC month.
  • Pass domain as a bare hostname such as cnn.com, with no scheme, path or port.
  • metrics takes one to four values in a single string. It defaults to visits.
  • For a single-period view, see Similarweb Website Traffic Snapshot. For more engagement metrics, see Similarweb Traffic & Engagement.

Pricing

$0.45 per successful call. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Similarweb$0.45 每次调用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

问题

常见问题

如何使用 Similarweb Website Traffic Trend API?

向 https://api.sandbase.ai/v1/api/similarweb/website-traffic-trend 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Similarweb Website Traffic Trend API 的价格是多少?

每次调用 $0.45,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Similarweb Website Traffic Trend API 接受哪些参数?

必填:domain (string)。 可选:country(ww 之一), end_date (string), metrics (string) 和 start_date (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Similarweb Website Traffic Trend API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Similarweb 开发者账户或 API key 吗?

不需要。Similarweb Website Traffic Trend 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Similarweb API 访问权限。