Developer docs
SEO and AI visibility API, CLI and MCP server
RankHound is SEO automation software, and everything it does is readable from code: what it did this week, the articles it wrote and why, where you rank, and what your competitors rank for. You can also approve, edit and publish articles and steer the agent. AI visibility tracking, included on every plan, adds how often each assistant names you. One header, no SDK required.
What the RankHound API gives you
One API, and a hosted MCP server on top of it.
Everything runs on a REST API at https://app.rankhound.ai/api/v1, authenticated with an organisation key you mint at API keys in the app.
The hosted MCP server is a convenience over that same API, and so is the CLI, which is written but not yet on npm. Neither can do anything the API cannot, and all of them obey the same rules below.
curl -H "X-API-Key: $RANKHOUND_API_KEY" \
https://app.rankhound.ai/api/v1/meRead these before you render a number
Knowing whether a change worked depends on honest numbers, so the API is opinionated about how its output may be presented. A client that ignores the rules below will produce a report that is confidently wrong, in your customer's name, and it will look fine until somebody checks it.
Three rules for the SEO numbers
Every SEO tool and endpoint carries these. Each one is a way to report a ranking or an article wrongly while looking right.
- 1
A null number is never zero.
It means not measured yet, or, for a rank inside a completed check, not in the top 100. An article's results stay null until it is published and Google reports the page; a keyword's rank.latest is null until its first check. Never render either as 0 clicks or position 0.
- 2
Ranks are checked weekly, not live.
Quote a position as of the week it was checked (rank.latest.week_start). A rank check runs once a week through the top 100, and its results arrive over a few hours rather than instantly.
- 3
These tools only read.
Approving, rejecting or publishing an article happens in RankHound, so send the customer there for it. There is no endpoint, flag or tool that publishes.
Three rules for the AI visibility numbers
These are not style preferences. Breaking them produces a confidently wrong report in your customer's name.
- 1
A null rate means "not enough answers yet". It is NOT zero.
Rates come back as {present, responses, rate, min_sample}. When rate is null, the sample is below the floor. Say “3 of 4 answers, too few to quote a percentage”. Never render it as 0%, and never let it into an average. Reporting “0% visibility” for a brand that was named in 3 of 4 answers is the single most damaging thing you can do with this data.
- 2
Never average the engines.
There is no single visibility score and you must not compute one. ChatGPT, Perplexity and Google AI Overviews are different surfaces that disagree, so a mean describes nothing real. Report per engine. If the user insists on one number, give them the pooled counts (present and responses summed) and say plainly what you did.
- 3
An empty alerts list does NOT mean nothing changed.
A finding is raised only when both comparison windows carry enough answers AND the move is larger than its own margin of error. On a small plan that excludes most real movement. Say “no change large enough to distinguish from noise at this sample size”. GET /me shows the thresholds in force.
The long version, including why a failed collection on our side never counts as your brand being absent, is on how to read our numbers.
The 27 endpoints, one line each
Reads are GET; writes are POST, PATCH or DELETE and need a write scope. The full reference has parameters and returned fields.
- GET /meWho this key is, and the rules for reading the numbers
- GET /brandsEvery brand this key may read
- GET /agentThis week: what the SEO agent did, and what is waiting on you
- PATCH /agentPause or resume writing and publishing
- GET /blog/postsPublished articles for your own site to render (Blog API)
- GET /blog/posts/{slug}One published article with its html (Blog API)
- GET /articlesThe articles the SEO agent chose, wrote and published, and why
- GET /articles/{id}One article in full, with the evidence it was chosen on
- PATCH /articles/{id}Edit an article before it publishes
- GET /keywordsThe keywords the SEO agent ranks weekly, with who ranks above you
- POST /keywordsTarget a keyword
- DELETE /keywordsStop tracking a keyword
- GET /competitor-gapsWhat each competitor ranks for that you do not, with the page that ranks
- GET /visibilityPresence per engine and per brand over a trailing window
- GET /answersThe stored answers, with their mentions and citations
- GET /sourcesThe domains the engines read before answering
- GET /competitorsWho the engines name instead of you
- POST /competitorsTrack a competitor
- DELETE /competitorsStop tracking a competitor
- GET /recommendationsWhat to do next, ranked, with the evidence
- GET /questionsThe questions this workspace runs against the engines
- GET /sentimentHow the engines frame each brand when they name it
- GET /share-of-voiceEach tracked brand's mentions as a share of every tracked brand's
- GET /alertsFindings about your brand, newest first
- POST /articles/{id}/{action}Approve, reject, rewrite, unschedule or publish an article
- GET /authorityThe site's authority beside its competitors
- GET /opportunitiesSearches the site shows up for but no page wins
Every page in these docs
Quickstart
Mint a key, call /me, make a first real request. Five minutes.
API reference
Every endpoint, its parameters, every returned field and a worked response.
Errors and rate limits
Every error code, what each one means, and the headers on every response.
Multiple brands
Why omitting ?brand= is an error rather than a default, and how pinned keys work.
CLI
JSON when piped, tables when watched, zero dependencies. Not installable until it is on npm.
MCP server
Read, approve and steer from your assistant, after you sign in.
Reading the numbers
The three rules in full, and why a failed collection is never your absence.
Questions about the RankHound API
Answered from the implementation.
Does RankHound have an API?
Can the RankHound API change things?
How do I get an API key?
What is the rate limit on the RankHound API?
Does RankHound have an MCP server?
Which language should I use?
7-day trial
Measure it first, automate it second
RankHound is SEO automation software that finds the searches your site can win and writes for them, and the API reads what it has already done. Start a trial and the first week's research, rankings and articles are readable from code.
Card required, nothing charged for 7 days.
On every plan
- Keyword research and competitor analysis, every week.
- Articles written against the pages that rank, waiting for your approval.
- Google rankings checked weekly, beside your Search Console data.
- Publishing to WordPress or any site by webhook, once you approve.
- AI visibility tracking across six AI assistants.