API para Ahrefs: Tráfego
Obtenha a visão geral de tráfego orgânico da Ahrefs para qualquer domínio ou URL: estimativa de tráfego mensal e seu valor, as principais palavras-chave para as quais já ranqueia, com posição e tráfego, principais páginas, tráfego por país e histórico mensal de tráfego, em JSON normalizado.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"items": [
{
"domain": "example.com",
"mode": "example",
"monthlyTraffic": 12500,
"monthlyTrafficValueUsd": 19.99,
"topCountries": [
{
"country": "US",
"sharePct": 12.5
}
],
"topKeywords": [
{
"keyword": "a1b2c3d4",
"position": 1,
"traffic": 12500
}
],
"topPages": [
{
"sharePct": 12.5,
"traffic": 12500,
"url": "https://example.com/page"
}
],
"trafficHistory": [
{
"monthUtc": 12.5,
"organicTraffic": 12500
}
]
}
]
},
"found": true,
"reason": "not_found"
}interface AhrefsTrafficResponse {
data: {
items: {
domain: string;
mode?: string;
monthlyTraffic?: number;
monthlyTrafficValueUsd?: number;
topCountries?: {
country: string;
sharePct?: number;
}[];
topKeywords?: {
keyword: string;
position?: number;
traffic?: number;
}[];
topPages?: {
sharePct?: number;
traffic?: number;
url: string;
}[];
trafficHistory?: {
monthUtc: number;
organicTraffic?: number;
}[];
}[];
} | 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.traffic \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"mode":"subdomains","url":"ahrefs.com"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "ahrefs.com"Domínio ou URL da página a analisar (ex.: ahrefs.com). |
| mode | enum | "subdomains"Escopo da análise: subdomains cobre o domínio e seus subdomínios, domain cobre apenas o domínio raiz, prefix cobre todas as páginas sob o caminho informado, exact corresponde apenas à URL informada. |
| Resposta | ||
| data | object | |
| data.items | object[] | Traffic overview records: the requested domain plus its monthly organic traffic, top ranking keywords, top pages, top countries, and traffic history. Populated whenever the provider has data for the entity. |
| data.items[].domain | string | The domain or URL the metrics are scoped to. Populated whenever the provider has data for the entity. |
| data.items[].mode | string | Analysis scope used: subdomains, domain, prefix, or exact. |
| data.items[].monthlyTraffic | integer | Estimated monthly organic search visits. |
| data.items[].monthlyTrafficValueUsd | number | Estimated monthly USD value of the organic traffic, what the same clicks would cost in paid search. |
| data.items[].topCountries | object[] | Countries sending the most organic traffic, up to five. |
| data.items[].topCountries[].country | string | Two-letter country code. |
| data.items[].topCountries[].sharePct | number | Share (0-100) of the domain's organic traffic from this country. |
| data.items[].topKeywords | object[] | The top organic keywords the domain already ranks for, up to five, ordered by traffic. Populated whenever the provider has data for the entity. |
| data.items[].topKeywords[].keyword | string | The organic keyword. |
| data.items[].topKeywords[].position | integer | Current Google organic position for this keyword. |
| data.items[].topKeywords[].traffic | integer | Estimated monthly traffic this keyword drives to the domain. |
| data.items[].topPages | object[] | The pages receiving the most organic traffic, up to five. |
| data.items[].topPages[].sharePct | number | Share (0-100) of the domain's organic traffic this page receives. |
| data.items[].topPages[].traffic | integer | Estimated monthly organic visits to the page. |
| data.items[].topPages[].url | string | The page URL. |
| data.items[].trafficHistory | object[] | Monthly organic traffic estimates for recent months, oldest first. |
| data.items[].trafficHistory[].monthUtc | number | UTC epoch timestamp in seconds (Unix time) of the first day of the month. Multiply by 1000 for a JS Date in milliseconds. |
| data.items[].trafficHistory[].organicTraffic | integer | Estimated organic search visits in that month. |
| 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 Tráfego da API para Ahrefs
O endpoint Tráfego da AnyAPI para Ahrefs retorna dados de Ahrefs em JSON normalizado com uma chamada POST para /v1/run/ahrefs.traffic. Obtenha a visão geral de tráfego orgânico da Ahrefs para qualquer domínio ou URL: estimativa de tráfego mensal e seu valor, as principais palavras-chave para as quais já ranqueia, com posição e tráfego, principais páginas, tráfego por país e histórico mensal de tráfego, em JSON normalizado. 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 Tráfego da API para Ahrefs feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 10,0 segundos, em 9 chamadas medidas.