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/callAt provider cost
- Success rate
- —No success-rate data yetLast 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
Parameters
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.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
cmd | string | Required | GetAnchorText | |
Mode | integer | Optional | CHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows | |
from | integer | Optional | row offset for pagination (lowercase, unlike GetBackLinkData's `From`) | |
item | string | Required | the URL, subdomain or domain to analyse — this command uses `item`, not item0 | https://www.majestic.com/ |
Count | integer | Optional | rows to return; 10 to 1,000, default 10. This is the retrieval-cost dial | 10 |
TextMode | integer | Optional | 0 (default) or 1 — controls anchor-text normalisation | |
datasource | string | Optional | fresh | historic (default historic) | fresh |
UsePrefixScan | integer | Optional | 1 enables prefix-mode querying | |
FilterRefDomain | string | Optional | only anchors used by this referring domain | |
FilterAnchorText | string | Optional | only anchors containing this keyword | majestic |
FilterAnchorTextMode | integer | Optional | 0, 1 or 2 — how FilterAnchorText is matched; default 0 | |
- Query parameters
cmdstringRequiredExample:
GetAnchorTextModeintegerOptionalCHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows
fromintegerOptionalrow offset for pagination (lowercase, unlike GetBackLinkData's `From`)
itemstringRequiredthe URL, subdomain or domain to analyse — this command uses `item`, not item0
Example:
https://www.majestic.com/CountintegerOptionalrows to return; 10 to 1,000, default 10. This is the retrieval-cost dial
Example:
10TextModeintegerOptional0 (default) or 1 — controls anchor-text normalisation
datasourcestringOptionalfresh | historic (default historic)
Example:
freshUsePrefixScanintegerOptional1 enables prefix-mode querying
FilterRefDomainstringOptionalonly anchors used by this referring domain
FilterAnchorTextstringOptionalonly anchors containing this keyword
Example:
majesticFilterAnchorTextModeintegerOptional0, 1 or 2 — how FilterAnchorText is matched; default 0
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the 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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.004/call, including the service fee.