API para Ahrefs: Backlinks
Obtenha as páginas de referência que apontam para um domínio ou URL, cada uma com a página de origem, o texto âncora, o domain rating do domínio que faz o link e o título da página.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"items": [
{
"anchor": "example",
"contextAfter": "A short example description of this item.",
"contextBefore": "A short example description of this item.",
"domainRating": 4.6,
"title": "Example title",
"urlFrom": "https://example.com/page",
"urlTo": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface AhrefsBacklinksResponse {
data: {
items: {
anchor?: string;
contextAfter?: string;
contextBefore?: string;
domainRating?: number;
title?: string;
urlFrom: string;
urlTo?: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/ahrefs.backlinks \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"mode":"exact","url":"ahrefs.com"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "ahrefs.com"Domínio ou URL da página para buscar backlinks (ex.: "ahrefs.com"). |
| mode | enum | "exact"Escopo da correspondência: "exact" para apenas a URL informada, ou "subdomains" para incluir o domínio e seus subdomínios. |
| Resposta | ||
| data | object | |
| data.items | object[] | Referring pages that link to the domain or URL. Populated whenever the provider has data for the entity. |
| data.items[].anchor | string | Anchor text of the link. |
| data.items[].contextAfter | string | Text immediately after the anchor on the referring page. |
| data.items[].contextBefore | string | Text immediately before the anchor on the referring page. |
| data.items[].domainRating | number | Ahrefs Domain Rating (0-100) of the linking domain. |
| data.items[].title | string | Title of the referring page. |
| data.items[].urlFrom | string | URL of the referring page that contains the link. Populated whenever the provider has data for the entity. |
| data.items[].urlTo | string | Target URL the link points to. |
| found | boolean | |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,00501 |
| Preço /mil req. | USD | US$ 5,01 |
Dúvidas frequentes
Sobre o endpoint Backlinks da API para Ahrefs
O endpoint Backlinks da AnyAPI para Ahrefs retorna dados de Ahrefs em JSON normalizado com uma chamada POST para /v1/run/ahrefs.backlinks. Obtenha as páginas de referência que apontam para um domínio ou URL, cada uma com a página de origem, o texto âncora, o domain rating do domínio que faz o link e o título da página. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 5,01 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Backlinks da API para Ahrefs feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 18,1 segundos, em 24 chamadas medidas.