Getting started with the API
Create a least-privilege Rankability API key, make your first Agent API request, and choose the right endpoint family.
Use the Rankability Agent API to connect external reporting tools, automations, AI assistants, and internal systems to your Rankability workspace. This guide covers the shared setup for every API family.
Before you begin
You need:
An active paid Rankability subscription.
An organization Admin to create the API key.
A server-side application or secure automation environment. Do not expose an API key in browser code.
All customer Agent API endpoints start with:
https://app.rankability.com/api/agent/v1Current responses include X-API-Version: 1.19.0. There is no separate /v2 namespace.
1. Create a least-privilege key
Open organization Settings.
Select API keys.
Select Create API key.
Give the key a name that identifies its integration.
Select only the scopes the integration needs.
Set an expiration when the integration is temporary.
Copy the secret when Rankability displays it.
The full secret is shown once. Store it in a secrets manager or protected server environment. Rankability stores a hash and cannot reveal the secret later.
See Authentication and API scopes before granting write or run permissions.
2. Make a read-only request
Create a key with clients:read, then list the clients visible to your organization:
A successful response is organization-scoped and includes pagination:
Inspect these response headers while developing:
X-API-Version— the current Agent API contract version.X-Request-Id— the identifier to include when reporting a failed request.X-RateLimit-Limit,X-RateLimit-Remaining, andX-RateLimit-Reset— the current key-level request allowance.
3. Choose the correct API family
Read pooled usage windows and recovery times
GET /api/agent/v1/usage in API usage, rate limits, and errors
Research keyword opportunities
Score one existing page against search competitors
Run and inspect a full-site technical audit
Fetch pages or extract structured facts
Read tracking results or start a tracking scan
Create content jobs
Manage saved outreach lists and pipeline items
Read saved backlink profile evidence
Read saved GBP or Batch URL audit artifacts
Inspect recurring Routines or publishing delivery state
Run a scored page audit
Query Google and AI-search results directly
Connect an AI assistant over MCP
Read the published in-app KB dataset
Use API use cases and integration patterns if you need help choosing between related surfaces.
4. Handle synchronous and asynchronous work differently
Scrape and Extract return their result in the same request. They may still take longer than an ordinary database read.
Researcher jobs, Optimize runs, Tracker scans, Site Auditor crawls, Page Auditor audits, content jobs, and bounded crawls are asynchronous. For those operations:
Store the returned job, run, project, or audit ID.
Poll the documented read endpoint with backoff.
Stop at the documented terminal status.
Read the returned error and usage fields before retrying.
5. Prepare for limits and failures
Current plans allow 30, 60, or 120 requests per minute per key, depending on the plan. Your response headers are authoritative; do not infer the limit from a plan name. Crawler operations also enforce daily page quotas, and some job families enforce concurrency limits.
Do not blindly retry write or run requests. Send Idempotency-Key where the endpoint supports it, store created IDs, and check whether the first request succeeded before creating another operation.
Continue with API usage, rate limits, and errors.
Last updated
Was this helpful?