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/resultAl precio del proveedor
- Success rate
- —Aún no hay datos de tasa de éxitoLast 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 | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de consulta | ||||
cmd | cadena | Obligatorio | GetIndexItemInfo | |
item0 | cadena | Obligatorio | 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 | entero | Obligatorio | how many item0..itemN params you are sending; 1 to 100 | 1 |
datasource | cadena | Opcional | fresh | historic (default historic) — send it explicitly, the two indexes disagree | fresh |
AddAllTopics | entero | Opcional | 1 adds the full TrustCategories column | |
DesiredTopics | entero | Opcional | how many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs | |
EnableResourceUnitFailover | entero | Opcional | 1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; default 0 | |
- Parámetros de consulta
cmdcadenaObligatorioEjemplo:
GetIndexItemInfoitem0cadenaObligatoriothe first target — a URL, subdomain or root domain. Additional targets go in item1, item2 … up to item(items-1)
Ejemplo:
https://www.majestic.com/itemsenteroObligatoriohow many item0..itemN params you are sending; 1 to 100
Ejemplo:
1datasourcecadenaOpcionalfresh | historic (default historic) — send it explicitly, the two indexes disagree
Ejemplo:
freshAddAllTopicsenteroOpcional1 adds the full TrustCategories column
DesiredTopicsenteroOpcionalhow many Trust Flow topics to return per item; default 3, max 30 for root domains, 20 for subdomains, 10 for URLs
EnableResourceUnitFailoverenteroOpcional1 lets the call fall back to Analysis + Retrieval units when Index Item Units run out; default 0
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
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());La API de la pasarela está en versión preliminar; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a $0.0008/result, incluida la tarifa de servicio.