databasestringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
databasestringobligatoireRegional Semrush database, e.g. "us", "uk", "de".
domainstringobligatoireDomain to analyze, e.g. "nike.com".
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Semrush Domain Rank HistoryCette API Semrush | À partir de $0.02 par appel | JSON |
Semrush | À partir de $0.08 par appel | JSON |
Semrush | À partir de $0.08 par appel | JSON |
Semrush | À partir de $0.08 par appel | JSON |
Semrush | $0.004 par appel | JSON |
Semrush | À partir de $0.04 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/semrush/domain-rank-history avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.02 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : database (string) et domain (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Semrush Domain Rank History fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Semrush séparément.