Skip to content

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.

Start 7-day free trialStart with the quickstart

Card required, nothing charged for 7 days

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.

Your first request
curl -H "X-API-Key: $RANKHOUND_API_KEY" \
  https://app.rankhound.ai/api/v1/me

Read 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. 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. 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. 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. 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. 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. 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.

Every page in these docs

Questions about the RankHound API

Answered from the implementation.

Does RankHound have an API?
Yes. A REST API at app.rankhound.ai/api/v1, authenticated with an organisation key you mint in the app. The reads cover your brands; the week's SEO work, the articles and why each one was chosen, your keyword rankings and your competitors' gaps; and, for AI visibility tracking, per-engine visibility, competitors, sentiment, share of voice, the stored answers, the sources engines cite and your alerts. The writes approve, edit and publish articles, pause the agent and change the keywords and competitors it tracks. A hosted MCP server sits on top of the same API, and a CLI is written but not yet on npm.
Can the RankHound API change things?
Yes, with a key that has the write scope for it: articles:write to approve, reject, rewrite, edit, unschedule or publish an approved article; agent:write to pause or resume writing; keywords:write and brands:write for the keywords and competitors tracked. Writes need an active plan. Nothing in the API starts a paid run or touches billing or your team.
How do I get an API key?
Mint one in the app under API keys. Owner and Admin roles only. The key is shown once, stored as a SHA-256 hash, and cannot be recovered afterwards. Keys belong to the organisation rather than to a person, so they keep working when someone leaves.
What is the rate limit on the RankHound API?
300 requests a minute, the same on every plan including the cheapest. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, and a 429 adds Retry-After so a client knows exactly when to try again.
Does RankHound have an MCP server?
Yes, hosted, with nothing to install. Connect Claude, ChatGPT, Cursor, Codex or Claude Code by adding https://mcp.rankhound.ai and signing in, and you can read the week's work, ask for changes to an article, approve it and steer the agent from the conversation. You choose on the consent screen whether it can only read.
Which language should I use?
Any. It is plain HTTP with a header, so curl, fetch, requests or an HTTP client in whatever you already use will do. The MCP server exists for AI assistants, and the CLI, once it is on npm, for terminals and CI. Neither can do anything the API cannot.

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.