databasestringerforderlich
Regional Semrush database, e.g. "us", "uk", "de".
https://api.sandbase.ai/v1/api/semrush/domain-vs-domainKeyword gap between domains: shared and unique keywords with each domain's ranking position.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns a keyword gap report for the domains you compare on a Semrush regional database. It needs a database code and a domains string in Semrush syntax. The response is semicolon-separated text with a header line and one line per keyword.
curl -X POST "https://api.sandbase.ai/v1/api/semrush/domain-vs-domain" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"database": "us", "domains": "*|or|nike.com|*|or|adidas.com"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
database | string | Yes | Regional Semrush database, e.g. "us", "uk", "de". |
domains | string | Yes | Domains to compare in Semrush syntax, e.g. "/or/nike.com//or/adidas.com". |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
"Keyword;nike.com\r\nsoccer;31\r\nrunning;7\r\nrunning shoes;1\r\nbasketball shoes;1\r\nsoc…"
| Field | Meaning |
|---|---|
[0] | The header line. It names each column, starting with Keyword, followed by one column per domain, such as nike.com. |
[] | One line per keyword. Split the text on \r\n to get the lines. |
[][0] | The search keyword for that line, such as running shoes. |
[][1] | The ranking position of the domain named in the second header column. For example, running shoes;1 means that domain ranks at position 1 for running shoes. |
\r\n for lines and on ; for columns. The paths above refer to the lines and columns after that split.domains value uses Semrush syntax. Each domain is written as *|or|domain.com, and the entries are joined with |. For example, *|or|nike.com|*|or|adidas.com.Billed at the actual cost of each call, about $0.16 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-vs-domain" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domains": "*|or|nike.com|*|or|adidas.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".
domainsstringerforderlichDomains to compare in Semrush syntax, e.g. "*|or|nike.com|*|or|adidas.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 vs DomainDiese API Semrush | Ab $0.16 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-vs-domain 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.16 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 domains (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 vs Domain 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.