databasestringbắt buộc
Regional Semrush database, e.g. "us", "uk", "de".
https://api.sandbase.ai/v1/api/semrush/domain-rank-historyMonthly history of a domain's Semrush rank, organic keywords, organic traffic and traffic cost.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
database | string | Yes | Regional Semrush database, e.g. "us", "uk", "de". |
domain | string | Yes | Domain to analyze, e.g. "nike.com". |
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…"
| Field | Meaning |
|---|---|
[].1 | First column, headed Rank. It holds the domain's Semrush rank for that row. The first data row shows 76. |
[].2 | Second column, headed Organic Keywords. It holds the number of organic keywords counted for the domain in that row. The first data row shows 3789540. |
[].3 | Third column, headed Organic Traffic. It holds the organic traffic figure for the domain in that row. The first data row shows 26551513. |
[].4 | Fourth column, headed Organic Cost. It holds the organic cost figure for the domain in that row. The first data row shows 13860391. |
\r\n and columns by ;. The first line is the header, and each later line is one row.database to a regional code such as us, uk or de. Pass the bare domain, such as nike.com.Billed at the actual cost of each call, about $0.02 for the request above. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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 '{
"domain": "nike.com",
"database": "us"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
databasestringbắt buộcRegional Semrush database, e.g. "us", "uk", "de".
domainstringbắt buộcDomain to analyze, e.g. "nike.com".
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Semrush Domain Rank HistoryAPI này Semrush | Từ $0.02 mỗi lần gọi | JSON |
Semrush | Từ $0.08 mỗi lần gọi | JSON |
Semrush | Từ $0.08 mỗi lần gọi | JSON |
Semrush | Từ $0.08 mỗi lần gọi | JSON |
Semrush | $0.004 mỗi lần gọi | JSON |
Semrush | Từ $0.04 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/semrush/domain-rank-history với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
Từ $0.02 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: database (string) và domain (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Semrush Domain Rank History chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Semrush.