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/resultAt 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.url.metricsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
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.
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
cmd | string | Required | GetIndexItemInfo | |
item0 | string | Required | 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 | integer | Required | how many item0..itemN params you are sending; 1 to 100 | 1 |
datasource | string | Optional | fresh | historic (default historic) — send it explicitly, the two indexes disagree | fresh |
AddAllTopics | integer | Optional | 1 adds the full TrustCategories column | |
DesiredTopics | integer | Optional | how many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs | |
EnableResourceUnitFailover | integer | Optional | 1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; default 0 | |
- Query parameters
cmdstringRequiredExample:
GetIndexItemInfoitem0stringRequiredthe first target — a URL, subdomain or root domain. Additional targets go in item1, item2 … up to item(items-1)
Example:
https://www.majestic.com/itemsintegerRequiredhow many item0..itemN params you are sending; 1 to 100
Example:
1datasourcestringOptionalfresh | historic (default historic) — send it explicitly, the two indexes disagree
Example:
freshAddAllTopicsintegerOptional1 adds the full TrustCategories column
DesiredTopicsintegerOptionalhow many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs
EnableResourceUnitFailoverintegerOptional1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; 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.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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.0008/result, including the service fee.