Trust Flow and Citation Flow by domain or URL
majestic.web.url.metricsTrust Flow, Citation Flow and link counts for up to 100 URLs or domains per call
- Price
- $0.0008/resultPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/majestic.web.url.metricsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
the item0/item1/…/itemN convention is unique to this command — `items` is the COUNT of those params, not a target. Returns Trust Flow, Citation Flow, ACRank, ExtBackLinks, RefDomains, RefDomainsEDU/GOV, LastCrawlDate, Title and Language per item.
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
cmd | string | Obrigatório | GetIndexItemInfo | |
item0 | string | Obrigatório | the first target — a URL, subdomain or root domain. Additional targets go in item1, item2 … up to item(items-1) | https://www.majestic.com/ |
items | inteiro | Obrigatório | how many item0..itemN params you are sending; 1 to 100 | 1 |
datasource | string | Opcional | fresh | historic (default historic) — send it explicitly, the two indexes disagree | fresh |
AddAllTopics | inteiro | Opcional | 1 adds the full TrustCategories column | |
DesiredTopics | inteiro | Opcional | how many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs | |
EnableResourceUnitFailover | inteiro | Opcional | 1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; default 0 | |
- Parâmetros de consulta
cmdstringObrigatórioExemplo:
GetIndexItemInfoitem0stringObrigatóriothe first target — a URL, subdomain or root domain. Additional targets go in item1, item2 … up to item(items-1)
Exemplo:
https://www.majestic.com/itemsinteiroObrigatóriohow many item0..itemN params you are sending; 1 to 100
Exemplo:
1datasourcestringOpcionalfresh | historic (default historic) — send it explicitly, the two indexes disagree
Exemplo:
freshAddAllTopicsinteiroOpcional1 adds the full TrustCategories column
DesiredTopicsinteiroOpcionalhow many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs
EnableResourceUnitFailoverinteiroOpcional1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; default 0
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/majestic.web.url.metrics' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/majestic.web.url.metrics",
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.url.metrics", {
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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.0008/result, incluindo a taxa de serviço.