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/callAu prix du fournisseur
- Success rate
- —Aucune donnée de taux de réussite pour le momentLast 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
Paramètres
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.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
cmd | chaîne | Obligatoire | GetAnchorText | |
Mode | entier | Facultatif | CHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows | |
from | entier | Facultatif | row offset for pagination (lowercase, unlike GetBackLinkData's `From`) | |
item | chaîne | Obligatoire | the URL, subdomain or domain to analyse — this command uses `item`, not item0 | https://www.majestic.com/ |
Count | entier | Facultatif | rows to return; 10 to 1,000, default 10. This is the retrieval-cost dial | 10 |
TextMode | entier | Facultatif | 0 (default) or 1 — controls anchor-text normalisation | |
datasource | chaîne | Facultatif | fresh | historic (default historic) | fresh |
UsePrefixScan | entier | Facultatif | 1 enables prefix-mode querying | |
FilterRefDomain | chaîne | Facultatif | only anchors used by this referring domain | |
FilterAnchorText | chaîne | Facultatif | only anchors containing this keyword | majestic |
FilterAnchorTextMode | entier | Facultatif | 0, 1 or 2 — how FilterAnchorText is matched; default 0 | |
- Paramètres de requête
cmdchaîneObligatoireExemple :
GetAnchorTextModeentierFacultatifCHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows
fromentierFacultatifrow offset for pagination (lowercase, unlike GetBackLinkData's `From`)
itemchaîneObligatoirethe URL, subdomain or domain to analyse — this command uses `item`, not item0
Exemple :
https://www.majestic.com/CountentierFacultatifrows to return; 10 to 1,000, default 10. This is the retrieval-cost dial
Exemple :
10TextModeentierFacultatif0 (default) or 1 — controls anchor-text normalisation
datasourcechaîneFacultatiffresh | historic (default historic)
Exemple :
freshUsePrefixScanentierFacultatif1 enables prefix-mode querying
FilterRefDomainchaîneFacultatifonly anchors used by this referring domain
FilterAnchorTextchaîneFacultatifonly anchors containing this keyword
Exemple :
majesticFilterAnchorTextModeentierFacultatif0, 1 or 2 — how FilterAnchorText is matched; default 0
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
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());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.004/call, frais de service inclus.