databasestringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
databasestringobbligatorioRegional Semrush database, e.g. "us", "uk", "de".
domainstringobbligatorioDomain to analyze, e.g. "nike.com".
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Semrush Domain Rank HistoryQuesta API Semrush | Da $0.02 per chiamata | JSON |
Semrush | Da $0.08 per chiamata | JSON |
Semrush | Da $0.08 per chiamata | JSON |
Semrush | Da $0.08 per chiamata | JSON |
Semrush | $0.004 per chiamata | JSON |
Semrush | Da $0.04 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/semrush/domain-rank-history con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.02 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: database (string) e domain (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Semrush Domain Rank History funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Semrush.