datestringrequerido
Snapshot date in `YYYY-MM-DD` format.
https://api.sandbase.ai/v1/api/ahrefs/metricsReturn core Site Explorer metrics for a target domain on a given date: organic and paid keyword counts, top-3 keyword count, organic traffic, and traffic value. 4xx/5xx are not charged.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Returns Site Explorer metrics for a target domain on a given date. The response covers organic and paid keyword counts, top-3 organic keywords, organic and paid traffic, and cost values. You send a target domain and a date in YYYY-MM-DD format.
metrics.paid_keywords and metrics.paid_traffic.metrics.org_cost when screening acquisition targets.curl -X POST "https://api.sandbase.ai/v1/api/ahrefs/metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target": "ahrefs.com", "date": "2026-10-01"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
date | string | Yes | Snapshot date in YYYY-MM-DD format. |
target | string | Yes | Target domain, e.g. ahrefs.com. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"metrics": {
"org_cost": 423229931,
"org_keywords": 36098,
"org_keywords_1_3": 14678,
"org_traffic": 2566697,
"paid_cost": 45844,
"paid_keywords": 34,
"paid_pages": 10,
"paid_traffic": 515
}
}
| Field | Meaning |
|---|---|
metrics.org_keywords | Number of keywords the target ranks for in organic search. |
metrics.org_keywords_1_3 | Number of organic keywords where the target ranks in positions 1 to 3. |
metrics.org_traffic | Organic traffic estimate for the target. |
metrics.org_cost | Cost value of the organic traffic. The response does not show the currency unit. |
metrics.paid_keywords | Number of keywords the target bids on in paid search. |
metrics.paid_pages | Number of pages of the target that appear in paid search results. |
metrics.paid_traffic | Paid traffic estimate for the target. |
metrics.paid_cost | Cost value of the paid traffic. The response does not show the currency unit. |
target and date are required. Pass the domain, for example ahrefs.com, and a date such as 2026-10-01.date values to build a time series for one domain.$0.08 per successful call. 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/ahrefs/metrics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"date": "2026-08-01",
"target": "ahrefs.com"
}'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.
datestringrequeridoSnapshot date in `YYYY-MM-DD` format.
targetstringrequeridoTarget domain, e.g. `ahrefs.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 |
|---|---|---|
Ahrefs Ahrefs Site MetricsEsta API Ahrefs | $0.08 por llamada | JSON |
Ahrefs | Desde $0.013545 por llamada | JSON asíncrono |
Ahrefs | $0.08 por llamada | JSON |
Ahrefs | Desde $0.01419 por llamada | JSON asíncrono |
Ahrefs | Desde $0.02709 por llamada | JSON asíncrono |
Ahrefs | Desde $0.01419 por llamada | JSON asíncrono |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/ahrefs/metrics 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.
$0.08 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: date (string) y target (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. Ahrefs Ahrefs Site Metrics 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 Ahrefs por separado.