Menu

Reference

Domain info

How popular a site is, and whether it carries a risk label.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

Text
POST https://api.millionshort.com/v1/domain

For up to 25 domains, returns how popular each site is and whether it carries a risk label. These are the same popularity and risk objects that every search result carries. One call costs 1 credit, however many domains it holds. It needs an API key.

Request

FieldTypeNotes
domainsarray of strings, 1 to 25 itemsRequired.
Example
Shell
curl https://api.millionshort.com/v1/domain \
  -H "Authorization: Bearer $MILLIONSHORT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "domains": ["example.com", "blog.example.org"] }'

Response

data.domains has one entry per domain, in the order sent.

FieldTypeNotes
domainstring
popularityobject
riskobject or null

popularity:

FieldTypeNotes
rankinteger or nullThe site's popularity rank (1 is the most popular), or null when it is outside the top 1,000,000 or unknown.
buckettop-100, top-1k, top-10k, top-100k, top-1m, long-tail, unknown

risk is null when the site carries no risk label. Otherwise:

FieldTypeNotes
levellabelled, demoted, blocked
categoriesarray of strings
JSON
{
  "data": {
    "domains": [
      {
        "domain": "example.com",
        "popularity": { "rank": 812, "bucket": "top-1k" },
        "risk": null
      },
      {
        "domain": "blog.example.org",
        "popularity": { "rank": null, "bucket": "long-tail" },
        "risk": null
      }
    ]
  },
  "usage": { "credits": 1, "cost_usd": 0.001, "breakdown": { "domain": 1 } },
  "request_id": "req_..."
}

The values are an illustration.

With the SDKs and MCP

Example
Python
import os

from millionshort import MillionShort

client = MillionShort(api_key=os.environ["MILLIONSHORT_API_KEY"])

info = client.get_domain_info(["example.com", "blog.example.org"])
for entry in info.domains:
    print(entry["domain"], entry["popularity"]["bucket"], entry["risk"])

Over MCP this is the get_domain_info tool. It needs a key.

Errors

400 INVALID_PARAM (no domains, more than 25, or a value that is not a domain name), 401, 429 and 502 SEARCH_UNAVAILABLE. See Errors.

This page as Markdown ยท llms.txt