Rankfield docs

Build with web signals.

Start with link metrics. Find the request format, response fields, examples, and data methodology in one place.

Guides

Start with the API

Get your key, make a request, and use Site Strength and referring domain counts in your own workflow.

Make your first request with curl

In the API workspace, enter a domain and click Copy beside the request. Paste the command into your terminal and run it. Your key is included.

A successful response contains the normalized domain and its 0–100 Site Strength score. Values below are illustrative:

{
  "domain": "example.com",
  "siteStrength": 42
}

Call the API from JavaScript or Node.js

Use the built-in fetch API. Keep the key in an environment variable when running a server-side script.

const apiKey = process.env.API_KEY;
const response = await fetch(
  "https://api.example.com/v1/domains/example.com/site-strength",
  { headers: { Authorization: `Bearer ${apiKey}` } }
);

if (!response.ok) {
  throw new Error(`API request failed: ${response.status}`);
}

const data = await response.json();
console.log(data.siteStrength);

In a browser app hosted on another origin, call your own backend and have it add the bearer header. The API does not enable cross-origin requests.

Call the API from Python

This example uses the standard library, so no package installation is needed.

import json
import os
from urllib.error import HTTPError
from urllib.request import Request, urlopen

url = "https://api.example.com/v1/domains/example.com/referring-domains"
request = Request(
    url,
    headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
)

try:
    with urlopen(request) as response:
        data = json.load(response)
except HTTPError as error:
    print(error.code, error.read().decode())
    raise

print(data["referringDomains"])

Use both metrics in one workflow

Request Site Strength and referring domains for the same domain.

curl -s \
  -H "Authorization: Bearer $API_KEY" \
  "https://api.example.com/v1/domains/example.com/site-strength"

curl -s \
  -H "Authorization: Bearer $API_KEY" \
  "https://api.example.com/v1/domains/example.com/referring-domains"

Use siteStrength as a score on the 0–100 scale. Use referringDomains as the observed count when it is available.

Connect an AI agent

Give your agent the Rankfield onboarding skill. It explains how to issue an accountless key, call both GET endpoints, and use the MCP tools.

curl -sS https://api.example.com/agent-onboarding/SKILL.md

For MCP clients that support remote Streamable HTTP, use https://api.example.com/mcp with Authorization: Bearer <key>. Available tools are get_site_strength and get_referring_domains; each accepts a root domain. Replace api.example.com with the host serving this API.

Opening /mcp in a browser sends GET and shows connection instructions. To call a tool, your MCP client sends an authenticated JSON-RPC POST request.

Handle authentication errors and missing data

401 — invalid or missing key
Check that the key is active and that the header is exactly Authorization: Bearer <key>. The response shape is {"error":{"message":"A valid API key is required"}}.
404 — domain not in the current graph
The current Common Crawl graph has no result for that domain. Check the domain spelling and try a domain present in the crawl. The response shape is {"error":{"message":"Domain was not found in the current Common Crawl graph"}}.
A successful response with a null referring domain value
A graph result may exist even when the referring-domain count pack is unavailable. In that case referringDomains is null. Preserve it as unavailable; do not convert it to zero.

Site Strength responses contain a domain and score. Referring domain responses also include topReferrers, with each source domain's Site Strength and observations. An unavailable count or source score is null.

Keep your key safe

  • Do not commit the key or paste it into public issues, logs, screenshots, or shared code.
  • For scripts, load it from an environment variable or a secret store. Do not embed it in browser JavaScript or a public mobile app.
  • Send it only in the HTTPS Authorization header. Avoid putting keys in URLs, where they can appear in history and logs.

Rankfield API

API reference

Read Site Strength and referring domain metrics from the Common Crawl domain graph.

Authentication

Get your API key in the API workspace. When you copy a request there, your key is included automatically.

For your own requests, send the key in the authorization header:

Authorization: Bearer <key>

Get Site Strength

GET /v1/domains/{domain}/site-strength

Returns Rankfield's own 0–100 site authority score, calibrated from Common Crawl graph ranks. It is separate from Moz Domain Authority and Ahrefs Domain Rating.

Path parameter

domain
Domain name to look up. URL-encode it when constructing the path. The API normalizes case, strips a leading www., and accepts a URL or hostname.

Example

curl "https://<worker-host>/v1/domains/example.com/site-strength" \
  -H "Authorization: Bearer $API_KEY"

Example response

Values below are illustrative; they are not live measurements for example.com.

{
  "domain": "example.com",
  "siteStrength": 42
}

Get referring domains

GET /v1/domains/{domain}/referring-domains

Returns the observed count and up to 20 referring domains, with each domain's Site Strength and observation count.

Path parameter

domain
Domain name to look up. URL-encode it when constructing the path. Domain normalization is the same as for Site Strength.

Example

curl "https://<worker-host>/v1/domains/example.com/referring-domains" \
  -H "Authorization: Bearer $API_KEY"

Example response

Values below are illustrative; they are not live measurements for example.com.

{
  "domain": "example.com",
  "referringDomains": 253,
  "topReferrers": [
    { "domain": "referrer.example", "siteStrength": 72, "observations": 4 }
  ]
}

referringDomains can be null when the count data is unavailable. A referrer's siteStrength can be null when it cannot be scored. observations reflects the available link data, not a complete backlink count.

JavaScript example

Use your API key from the workspace. Metric requests can be made from a backend or from the same-origin playground.

const key = "<key>";
const domain = "example.com";

const response = await fetch(
  "https://<worker-host>/v1/domains/" + encodeURIComponent(domain) + "/site-strength",
  { headers: { Authorization: "Bearer " + key } }
);

const data = await response.json();
if (!response.ok) throw new Error(data.error.message);
console.log(data.siteStrength);

The public API does not emit CORS headers. A browser app on another origin should call it through its backend.

Errors

Errors use the JSON shape { "error": { "message": "..." } }.

400
The domain is missing or invalid.
401
The bearer key is missing, invalid, expired, or revoked. A WWW-Authenticate: Bearer header is included.
403
The key request was rejected.
404
The domain was not found in the current Common Crawl graph.
502
The live graph lookup was unavailable or failed.

Data and methodology

Rankfield derives its current link metrics from the Common Crawl domain graph. The graph represents links observed while Common Crawl fetched pages. It is a large, useful sample of the web, not a complete index of every page or link.

Site Strength

Site Strength is Rankfield's own site authority score from 0 to 100. The live score uses a calibrated combination of a domain’s Common Crawl PageRank and harmonic-centrality rank positions. Rank positions are converted to a logarithmic scale and mapped through a monotonic calibration validated against held-out data. A larger score means stronger graph rank evidence within this methodology.

The score is not a probability, a percentage of the web, or a count of backlinks. It is not Moz Domain Authority, Ahrefs Domain Rating, or an equivalent score from another provider. Scores from different products use different data and methods and should not be treated as interchangeable.

Observed referring domains

The referring-domain metric counts distinct source domains that the selected Common Crawl graph records as linking to the requested domain. It does not count source pages, link occurrences, or every backlink on the web. The API also lists up to 20 available source domains in topReferrers, with each source's current Site Strength and its recorded observations.

Coverage and dates

These metrics come from Common Crawl graph releases. A result reflects the available crawl data, not a live check of every link. Dates and completeness vary with the pages included in each release.

Domains outside the selected graph release cannot be scored from that release. A successful lookup can still have a missing referring-domain count if the count data is unavailable. Common Crawl’s crawl frequency, robots access, page discovery, and graph construction all affect what can be observed.

How to interpret results

  • Use Site Strength to compare graph rank evidence across domains under the same methodology and data release.
  • Use observed referring domains as a crawl-backed count, not as a complete backlink inventory.
  • Remember that crawl coverage and the underlying data can change between releases.
  • Treat small score differences cautiously. The score summarizes a graph model and does not establish traffic, relevance, trust, or business value.

FAQ

Why is a domain missing?

The requested domain was not found in the current Common Crawl graph release. The API returns HTTP 404 for that case; it does not mean the domain is offline or has no links.

Why is the referring-domain value null?

The domain was found, but the referring-domain count pack was unavailable for the lookup. The API uses null to distinguish unavailable data from a measured count of zero.

Why is the referrer list empty?

The relationship index may not contain details for this domain. An empty list does not prove that no sites link to it.

Does a higher Site Strength guarantee more traffic?

No. Site Strength describes calibrated Common Crawl graph rank evidence. It does not estimate visits, search rankings, or conversions.

Can I compare a score with Moz or Ahrefs?

Not directly. Those services use their own indexes, scales, and scoring methods. Site Strength is a separate Common Crawl based measure.

Does Common Crawl see every link?

No. It records links from pages it crawls and processes. Crawl coverage is incomplete, so observed counts and relationships can differ from a full web-wide backlink inventory.

Glossary

Site Strength
A 0–100 score derived from calibrated Common Crawl graph rank evidence.
referring domain
A distinct source domain observed linking to the requested domain.
topReferrers
Up to 20 available source domains, with their Site Strength and recorded observations. It is not a complete backlink export.
null
The domain was found, but a referring-domain count was unavailable.
404
The domain was not found in the current graph release.