Anchor texts in backlinks by domain or URL
majestic.web.anchors.listAnchor texts pointing at a target, with referring-domain and link counts per phrase
- Price
- $0.004/callAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/majestic.web.anchors.listPreview- Uses platform quota
- Synchronous response
- Reads public data
Parámetros
with the default Mode=0 the `AnchorText` DataTable carries AnchorText, RefDomains, TotalLinks, EstimatedLinkCitationFlow and EstimatedLinkTrustFlow. Note the parameter casing is inconsistent across Majestic commands — `from` here is lowercase.
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
cmd | cadena | Obligatorio | GetAnchorText | |
Mode | entero | Opcional | CHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows | |
from | entero | Opcional | row offset for pagination (lowercase, unlike GetBackLinkData's `From`) | |
item | cadena | Obligatorio | the URL, subdomain or domain to analyse — this command uses `item`, not item0 | https://www.majestic.com/ |
Count | entero | Opcional | rows to return; 10 to 1,000, default 10. This is the retrieval-cost dial | 10 |
TextMode | entero | Opcional | 0 (default) or 1 — controls anchor-text normalisation | |
datasource | cadena | Opcional | fresh | historic (default historic) | fresh |
UsePrefixScan | entero | Opcional | 1 enables prefix-mode querying | |
FilterRefDomain | cadena | Opcional | only anchors used by this referring domain | |
FilterAnchorText | cadena | Opcional | only anchors containing this keyword | majestic |
FilterAnchorTextMode | entero | Opcional | 0, 1 or 2 — how FilterAnchorText is matched; default 0 | |
- Parámetros de consulta
cmdcadenaObligatorioEjemplo:
GetAnchorTextModeenteroOpcionalCHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows
fromenteroOpcionalrow offset for pagination (lowercase, unlike GetBackLinkData's `From`)
itemcadenaObligatoriothe URL, subdomain or domain to analyse — this command uses `item`, not item0
Ejemplo:
https://www.majestic.com/CountenteroOpcionalrows to return; 10 to 1,000, default 10. This is the retrieval-cost dial
Ejemplo:
10TextModeenteroOpcional0 (default) or 1 — controls anchor-text normalisation
datasourcecadenaOpcionalfresh | historic (default historic)
Ejemplo:
freshUsePrefixScanenteroOpcional1 enables prefix-mode querying
FilterRefDomaincadenaOpcionalonly anchors used by this referring domain
FilterAnchorTextcadenaOpcionalonly anchors containing this keyword
Ejemplo:
majesticFilterAnchorTextModeenteroOpcional0, 1 or 2 — how FilterAnchorText is matched; default 0
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X GET 'https://toolswitch.dev/v1/tools/majestic.web.anchors.list' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/majestic.web.anchors.list",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/majestic.web.anchors.list", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.004/call, incluida la tarifa de servicio.