databasestringerforderlich
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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
databasestringerforderlichRegional Semrush database, e.g. "us", "uk", "de".
domainstringerforderlichDomain to analyze, e.g. "nike.com".
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Semrush Domain Rank HistoryDiese API Semrush | Ab $0.02 pro Aufruf | JSON |
Semrush | Ab $0.08 pro Aufruf | JSON |
Semrush | Ab $0.08 pro Aufruf | JSON |
Semrush | Ab $0.08 pro Aufruf | JSON |
Semrush | $0.004 pro Aufruf | JSON |
Semrush | Ab $0.04 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/semrush/domain-rank-history mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.02 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: database (string) und domain (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Semrush Domain Rank History läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Semrush API beantragen.