databasestringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
databasestringrequeridoRegional Semrush database, e.g. "us", "uk", "de".
domainsstringrequeridoDomains to compare in Semrush syntax, e.g. "*|or|nike.com|*|or|adidas.com".
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Semrush Domain vs DomainEsta API Semrush | Desde $0.16 por llamada | JSON |
Semrush | Desde $0.08 por llamada | JSON |
Semrush | Desde $0.08 por llamada | JSON |
Semrush | Desde $0.08 por llamada | JSON |
Semrush | $0.004 por llamada | JSON |
Semrush | Desde $0.04 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/semrush/domain-vs-domain con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
Desde $0.16 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: database (string) y domains (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Semrush Domain vs Domain funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Semrush por separado.