Rankmio method

Rankmio JSON API

Also known as: JSON API, Rankmio API, Dev API, HTTP API, api.rankmio, v1 API, /api/v1

The Rankmio JSON API is the programmatic route to the same aggregated SEO and GEO data that the JSON export delivers in the browser. Three endpoints under /api/v1/ give developers, CI pipelines and AI coding agents (Claude Code, Cursor, Aider) a channel for pulling Rankmio data into their workflows without the UI. Authentication uses a personal bearer token (rmk_…) that can be created, rotated and revoked in the profile. The token is stored server-side only as a cryptographic hash; the plain text is shown once. Data structure, blocks and semantics are identical to the browser download — the API is deliberately not a new data channel but a second access facade onto the same data base.

The three endpoints

The first two endpoints are free of charge; the export follows the same cost logic as the browser download.

Authentication and abuse protection

Every call carries the bearer token in the Authorization header. Server-side, a middleware checks the token, the IP whitelist (optional per key) and the project whitelist (optional per key). The rate limit applies per key: 60 requests per minute, 1,000 per day. In addition, every key has a daily credit limit (default 200 credits per key per day) — an anchor against abuse, so that a leaked token cannot drain the balance. The response headers X-RateLimit-Remaining-Minute, X-RateLimit-Remaining-Day and X-Charge-Used-Cr give every pipeline an honest self-report without a separate status call.

A typical agent flow

A coding agent that does not yet know Rankmio works in three steps: (1) call GET /projects, filter the list for the desired domain and note the project ID. (2) Call GET /projects/{id} and check which blocks hold data and how large they are. (3) Call GET /projects/{id}/export?blocks=… and pass the snapshot into the chat context, a slash command or a CI pipeline. The first two steps are free of charge; only the export deducts credits.

Error codes following HTTP convention

Every call (including errors) is logged internally in api_key_usage — for audit traceability.

Example from practice

Example: a development team wants to prevent GEO regressions from going live unnoticed before each deployment. The CI pipeline pulls a snapshot via curl -H "Authorization: Bearer rmk_…" "https://rankmio.de/api/v1/projects/89/export?blocks=geo,citation", compares the GEO scores with the snapshot from before the deployment and fails the pipeline if the citability median or the AI visibility drops below a defined threshold. In this way the GEO state remains part of the definition of done — not just the unit test.

Used in Rankmio for

Manage API keys in your profile

Go to the feature →

Last updated: 2026-07-19  ·  Browse all glossary entries

Free SEO & GEO Check

SEO score, AI visibility and citability of your website in 30 seconds — no registration required.

Check for free now

Ready to optimize your website?

Register for free, get 10 credits and start right away.

Register now