Rank.to logo Rank.to
Home API
Daily updated rankings

Where does your site
rank globally?

Instantly look up any website's global ranking and track how it changes — free, no account needed.

No signup required Daily updated data 30-day rank history
100M+
Domains tracked
Daily
Data updates
Free
No account needed
Top ranked sites
Loading rankings…
Current Rank
 
7-Day Change
 
Best Rank (period)
in selected range
Data Points
days of history
Est. Monthly Traffic
based on rank
Rank context
Insights

Rank.to API

Query domain rankings programmatically. The API is free with no authentication required. Rankings are updated daily and cover millions of domains worldwide.

Endpoint

GET https://rank.to/api/?d={domain}&n={days}
ParameterTypeRequiredDescription
d string required Domain to query, e.g. github.com
n integer optional History window in days. Accepted: 7, 14, 30. Default: 7

Response format

{
  "ranks": {
    "2025-06-14": 68,
    "2025-06-15": 67,
    "2025-06-16": 70,
    "2025-06-17": 66,
    "2025-06-18": 65
  },
  "time": "2.341ms"
}
FieldTypeDescription
ranks object Date → rank pairs, ascending by date. Empty object if domain has no ranking data.
time string Server-side query execution time for diagnostics.

Code examples

// Fetch 30-day rank history for github.com
const res  = await fetch('https://rank.to/api/?d=github.com&n=30');
const data = await res.json();

// Most recent rank
const sorted  = Object.entries(data.ranks).sort(([a],[b]) => a.localeCompare(b));
const [date, rank] = sorted.at(-1);
console.log(`github.com is ranked #${rank} as of ${date}`);

Live playground

Interactive API tester Hits the real /api/ endpoint
GET https://rank.to/api/?d=github.com&n=7
// Hit "Run" to send the request…

Notes & limits