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
- 价格
- $0.004/call按供应商原价
- 成功率
- —暂无成功率数据近 30 天 · 0 次
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/majestic.web.anchors.list预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
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.
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
cmd | 字符串 | 必填 | GetAnchorText | |
Mode | 整数 | 可选 | CHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows | |
from | 整数 | 可选 | row offset for pagination (lowercase, unlike GetBackLinkData's `From`) | |
item | 字符串 | 必填 | the URL, subdomain or domain to analyse — this command uses `item`, not item0 | https://www.majestic.com/ |
Count | 整数 | 可选 | rows to return; 10 to 1,000, default 10. This is the retrieval-cost dial | 10 |
TextMode | 整数 | 可选 | 0 (default) or 1 — controls anchor-text normalisation | |
datasource | 字符串 | 可选 | fresh | historic (default historic) | fresh |
UsePrefixScan | 整数 | 可选 | 1 enables prefix-mode querying | |
FilterRefDomain | 字符串 | 可选 | only anchors used by this referring domain | |
FilterAnchorText | 字符串 | 可选 | only anchors containing this keyword | majestic |
FilterAnchorTextMode | 整数 | 可选 | 0, 1 or 2 — how FilterAnchorText is matched; default 0 | |
- 查询参数
cmd字符串必填示例:
GetAnchorTextMode整数可选CHANGES WHICH TABLE COMES BACK: 0 (default) = aggregated AnchorText rows, 1 = RefDomains rows, 2 = individual BackLinks rows
from整数可选row offset for pagination (lowercase, unlike GetBackLinkData's `From`)
item字符串必填the URL, subdomain or domain to analyse — this command uses `item`, not item0
示例:
https://www.majestic.com/Count整数可选rows to return; 10 to 1,000, default 10. This is the retrieval-cost dial
示例:
10TextMode整数可选0 (default) or 1 — controls anchor-text normalisation
datasource字符串可选fresh | historic (default historic)
示例:
freshUsePrefixScan整数可选1 enables prefix-mode querying
FilterRefDomain字符串可选only anchors used by this referring domain
FilterAnchorText字符串可选only anchors containing this keyword
示例:
majesticFilterAnchorTextMode整数可选0, 1 or 2 — how FilterAnchorText is matched; default 0
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.004/call 计费,已含服务费。