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

Semrush Domain Rank History

API 文档
https://api.sandbase.ai/v1/api/semrush/domain-rank-history

Monthly history of a domain's Semrush rank, organic keywords, organic traffic and traffic cost.

价格
起价 $0.02美元 / 次调用
方法
POST
响应
JSON
参数
2 个必填 · 0 个可选

Playground

输入
Regional Semrush database, e.g. "us", "uk", "de".
Domain to analyze, e.g. "nike.com".
输出就绪

您的输出将显示在这里

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

API README

Semrush Domain Rank History API

Returns a monthly history of a domain's Semrush rank, organic keywords, organic traffic and organic cost. It needs a regional Semrush database and a domain. The response is a semicolon-separated text table with a header line and one row per period.

Use cases

  • Chart how many organic keywords nike.com ranks for over time.
  • Spot sudden drops in organic traffic that point to a ranking loss.
  • Compare the growth of organic cost against organic traffic for a competitor.
  • Track a domain's Semrush rank before and after a content or link-building campaign.

Request

curl -X POST "https://api.sandbase.ai/v1/api/semrush/domain-rank-history" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"database": "us", "domain": "nike.com"}'

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

Parameters

NameTypeRequiredDescription
databasestringYesRegional Semrush database, e.g. "us", "uk", "de".
domainstringYesDomain to analyze, e.g. "nike.com".

Example response

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

"Rank;Organic Keywords;Organic Traffic;Organic Cost\r\n76;3789540;26551513;13860391…"

Response fields

FieldMeaning
[].1First column, headed Rank. It holds the domain's Semrush rank for that row. The first data row shows 76.
[].2Second column, headed Organic Keywords. It holds the number of organic keywords counted for the domain in that row. The first data row shows 3789540.
[].3Third column, headed Organic Traffic. It holds the organic traffic figure for the domain in that row. The first data row shows 26551513.
[].4Fourth column, headed Organic Cost. It holds the organic cost figure for the domain in that row. The first data row shows 13860391.

Notes

  • The response is plain text, not JSON. Lines are separated by \r\n and columns by ;. The first line is the header, and each later line is one row.
  • The response shown has no date column. Do not assume a date for a row beyond its position in the list.
  • Set database to a regional code such as us, uk or de. Pass the bare domain, such as nike.com.
  • For a current snapshot of the same domain, call Semrush Domain Overview. For the keywords behind the traffic, call Semrush Domain Organic Keywords.

Pricing

Billed at the actual cost of each call, about $0.02 for the request above. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Semrush每次调用从 $0.02 起JSON
Semrush每次调用从 $0.08 起JSON
Semrush每次调用从 $0.08 起JSON
Semrush每次调用从 $0.08 起JSON
Semrush$0.004 每次调用JSON
Semrush每次调用从 $0.04 起JSON

问题

常见问题

如何使用 Semrush Domain Rank History API?

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

Semrush Domain Rank History API 的价格是多少?

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

Semrush Domain Rank History API 接受哪些参数?

必填:database (string) 和 domain (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Semrush Domain Rank History API 返回什么?

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

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

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