Backlinks by domain or URL — anchor texts, Trust Flow
majestic.web.backlinks.listIndividual backlinks to a URL or domain, with anchor text and both ends' Trust Flow
- Price
- $0.02/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.backlinks.listPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
returns the `BackLinks` DataTable: SourceURL, AnchorText, SourceCitationFlow, SourceTrustFlow, TargetCitationFlow, TargetTrustFlow, FirstIndexedDate, LastSeenDate, LinkType, FlagDeleted, FlagNoFollow.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
cmd | string | Required | GetBackLinkData | |
From | integer | Optional | row offset to start from; default 0 | |
Mode | integer | Optional | 0 (default) includes deleted links; 1 excludes them | |
item | string | Required | the URL, domain or subdomain to get backlinks for — note this command uses `item`, NOT item0 | majestic.com |
Count | integer | Optional | rows to return; default 100, MAXIMUM 50,000. This is the retrieval-cost dial | 5 |
SortBy1 | string | Optional | requires ConsumeResourcesForAdditionalProcessing=1 | |
SortDir1 | string | Optional | ||
RefDomain | string | Optional | restrict to one referring domain — returns up to its top 10 backlinks | |
datasource | string | Optional | fresh | historic (default historic) | fresh |
FilterTopic | string | Optional | restrict to a topic category as returned by GetTopics | |
UsePrefixScan | integer | Optional | 1 enables prefix-mode querying | |
ShowDomainInfo | integer | Optional | 1 adds a second DataTable describing the referring domains; default 0 | |
MaxSameSourceURLs | integer | Optional | cap repeated links from the same source URL; default -1 (uncapped) | |
MaxSourceURLsPerRefDomain | integer | Optional | cap links per referring domain — only -1 (default, uncapped), 1, 3 or 10 are accepted | |
ConsumeResourcesForAdditionalProcessing | integer | Optional | 1 enables SortBy*/Filters — and RAISES the Analysis Unit charge above the flat 5,000 | |
- Query parameters
cmdstringRequiredExample:
GetBackLinkDataFromintegerOptionalrow offset to start from; default 0
ModeintegerOptional0 (default) includes deleted links; 1 excludes them
itemstringRequiredthe URL, domain or subdomain to get backlinks for — note this command uses `item`, NOT item0
Example:
majestic.comCountintegerOptionalrows to return; default 100, MAXIMUM 50,000. This is the retrieval-cost dial
Example:
5SortBy1stringOptionalrequires ConsumeResourcesForAdditionalProcessing=1
SortDir1stringOptionalRefDomainstringOptionalrestrict to one referring domain — returns up to its top 10 backlinks
datasourcestringOptionalfresh | historic (default historic)
Example:
freshFilterTopicstringOptionalrestrict to a topic category as returned by GetTopics
UsePrefixScanintegerOptional1 enables prefix-mode querying
ShowDomainInfointegerOptional1 adds a second DataTable describing the referring domains; default 0
MaxSameSourceURLsintegerOptionalcap repeated links from the same source URL; default -1 (uncapped)
MaxSourceURLsPerRefDomainintegerOptionalcap links per referring domain — only -1 (default, uncapped), 1, 3 or 10 are accepted
ConsumeResourcesForAdditionalProcessingintegerOptional1 enables SortBy*/Filters — and RAISES the Analysis Unit charge above the flat 5,000
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X GET 'https://toolswitch.dev/v1/tools/majestic.web.backlinks.list' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/majestic.web.backlinks.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.backlinks.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.02/call, including the service fee.