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/resultAu 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.url.metricsPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
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.
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de requête | ||||
cmd | chaîne | Obligatoire | GetIndexItemInfo | |
item0 | chaîne | Obligatoire | 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 | entier | Obligatoire | how many item0..itemN params you are sending; 1 to 100 | 1 |
datasource | chaîne | Facultatif | fresh | historic (default historic) — send it explicitly, the two indexes disagree | fresh |
AddAllTopics | entier | Facultatif | 1 adds the full TrustCategories column | |
DesiredTopics | entier | Facultatif | how many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs | |
EnableResourceUnitFailover | entier | Facultatif | 1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; default 0 | |
- Paramètres de requête
cmdchaîneObligatoireExemple :
GetIndexItemInfoitem0chaîneObligatoirethe first target — a URL, subdomain or root domain. Additional targets go in item1, item2 … up to item(items-1)
Exemple :
https://www.majestic.com/itemsentierObligatoirehow many item0..itemN params you are sending; 1 to 100
Exemple :
1datasourcechaîneFacultatiffresh | historic (default historic) — send it explicitly, the two indexes disagree
Exemple :
freshAddAllTopicsentierFacultatif1 adds the full TrustCategories column
DesiredTopicsentierFacultatifhow many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs
EnableResourceUnitFailoverentierFacultatif1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; 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.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());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.0008/result, frais de service inclus.