Rankability Optimize API

Durable page optimization runs scored against SERP competitors.

GitHub OpenAPI

Operations 3

GET /api/agent/v1/optimizations List compact saved optimization history #
GET /api/agent/v1/optimizations/{id} Poll a run or read its saved summary/full result #
POST /api/agent/v1/optimize Start one durable, retry-safe page optimization run #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rankability-com:rankability-com-optimize-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rankability-com-optimize-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rankability Agent Optimize API
  version: 1.24.0
  description: 'REST API for programmatic SEO and AI search visibility work in Rankability: content jobs, AI and organic rank tracking, keyword research, page and site audits, clients and their Knowledge sources, crawling, and usage.


    Authenticate with an organization API key (`Authorization: Bearer rk_live_...`, created in Settings > API keys) or an OAuth 2.0 access token. Each operation lists the scopes it needs in `x-required-scopes` (all required) or `x-accepted-scopes` (any one is enough); an empty `x-required-scopes` with no `x-accepted-scopes` means any Agent API scope works.


    Errors use one shape: `{ "error": { "code", "message", "details" } }`. Every response carries `X-Request-Id`, `X-API-Version` and `X-RateLimit-*` headers. Call `GET /usage` before starting on-demand work.'
  contact:
    name: Rankability support
    url: https://help.rankability.com
  termsOfService: https://www.rankability.com/terms/
servers:
- url: https://app.rankability.com
  description: Production
security:
- ApiKeyAuth: []
- OAuth2: []
tags:
- name: Optimize
  description: Durable page optimization runs scored against SERP competitors.
paths:
  /api/agent/v1/optimizations:
    get:
      operationId: get_optimizations
      summary: List compact saved optimization history
      description: 'List compact saved optimization history


        Required scope: `optimize:run`.'
      tags:
      - Optimize
      x-required-scopes:
      - optimize:run
      security:
      - ApiKeyAuth: []
      - OAuth2:
        - optimize:run
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Error'
  /api/agent/v1/optimizations/{id}:
    get:
      operationId: get_optimizations_by_id
      summary: Poll a run or read its saved summary/full result
      description: 'Poll a run or read its saved summary/full result


        Required scope: `optimize:run`.'
      tags:
      - Optimize
      x-required-scopes:
      - optimize:run
      security:
      - ApiKeyAuth: []
      - OAuth2:
        - optimize:run
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Error'
  /api/agent/v1/optimize:
    post:
      operationId: post_optimize
      summary: Start one durable, retry-safe page optimization run
      description: 'Start one durable, retry-safe page optimization run


        Required scope: `optimize:run`.'
      tags:
      - Optimize
      x-required-scopes:
      - optimize:run
      security:
      - ApiKeyAuth: []
      - OAuth2:
        - optimize:run
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: Optional. A stable key for this logical request so retries never repeat or double-charge the work.
        schema:
          type: string
          maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              properties:
                url:
                  type: string
                  format: uri
                  description: The public URL to analyze and score. Must use `http` or `https` protocol.
                keyword:
                  type: string
                  description: The target keyword to evaluate the page against
                language:
                  type: string
                  description: Language code for SERP data (e.g., `en-US`, `es`, `de`, `ja`). Max 10 characters.
                  default: en-US
                client_id:
                  type: string
                  format: uuid
                  description: Organization-owned client used for run attribution and history filtering.
              required:
              - url
              - keyword
            example:
              url: https://example.com/your-page
              keyword: target keyword
              language: en-US
              client_id: 4746d28b-0a38-43f9-a1ca-5e8402ef73d4
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                optimization_id: opt-0123456789abcdef
                status: queued
                url: https://example.com/your-page
                keyword: target keyword
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-API-Version:
              $ref: '#/components/headers/X-API-Version'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        default:
          $ref: '#/components/responses/Error'
components:
  headers:
    X-RateLimit-Limit:
      description: Maximum requests in the current window.
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Seconds until the window resets.
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests remaining in the current window.
      schema:
        type: integer
    X-Request-Id:
      description: Unique request id for tracing and support.
      schema:
        type: string
    X-API-Version:
      description: Agent API contract version.
      schema:
        type: string
  responses:
    BadRequest:
      description: Invalid input (`invalid_input`) or an operation not valid in the current state.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: The credential lacks a required scope (`forbidden`), or the organization's plan does not include this (`plan_required`, `plan_limit_exceeded`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing, invalid, expired or revoked credentials (`unauthorized`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found or not owned by your organization (`not_found`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too many requests (`rate_limit_exceeded`), on-demand usage paused (`usage_limit_reached`), Tracker busy (`capacity_reached`) or too many concurrent jobs (`concurrency_limit_reached`). Honor `Retry-After`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error:
      description: Error. See `error.code`; common codes include `insufficient_credits` (402), `conflict` (409) and `service_unavailable` (503).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              example: invalid_input
            message:
              type: string
            details:
              type: object
              additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: rk_live_ API key
      description: 'Organization API key sent as `Authorization: Bearer rk_live_...`. Create keys in Settings > API keys; each key carries its own scopes.'
    OAuth2:
      type: oauth2
      description: 'OAuth 2.0 authorization code flow with PKCE (S256), used by MCP clients and integrations. Dynamic client registration is available at /oauth/register; metadata at /.well-known/oauth-authorization-server. Send the access token as `Authorization: Bearer <token>`.'
      flows:
        authorizationCode:
          authorizationUrl: https://app.rankability.com/oauth/authorize
          tokenUrl: https://app.rankability.com/oauth/token
          refreshUrl: https://app.rankability.com/oauth/token
          scopes:
            copywriter:run: Create content
            copywriter:read: Read content
            reporter:read: Read reporter data
            reporter:run: Trigger scans
            reporter:write: Manage reporter projects
            prospect_scan:run: Run prospect visibility reports
            prospect_scan:read: Read prospect visibility reports
            researcher:run: Run keyword research
            researcher:read: Read research jobs & projects
            seo_research:run: Run SEO research
            seo_research:read: Read SEO research
            clients:read: Read workspaces
            clients:write: Create, update & delete workspaces
            connections:read: Read eligible provider properties and workspace connections
            connections:write: Link authorized provider properties to workspaces
            kb:read: Read knowledge base
            optimize:run: Run page optimization
            page_audit:read: Read page audits
            page_audit:write: Run page audits
            site-auditor:read: Read site audits
            site-auditor:write: Run site audits
            search_intelligence:query: Query search intelligence (Google + AI platforms)
            scrape:run: Scrape a page (SEO + AEO extraction)
            crawl:run: Crawl a site (bounded multi-page)
            extract:run: Extract structured data from a page
            prospector:read: Read Prospector lists & outreach items
            prospector:write: Manage Prospector lists & outreach items
            prospector:run: Run Prospector opportunity discovery
            backlinks:read: Read saved backlink profile evidence
            backlinks:run: Refresh backlink profile evidence
            gbp-audit:read: Read saved GBP audit evidence
            gbp-audit:run: Run connected Google Business Profile audits
            batch-url:read: Read saved Batch URL Analyzer runs
            routines:read: Read Automate settings and history
            routines:write: Manage Automate settings and recurring work
            publishing:read: Read publishing connections & receipts
            publishing:write: Create publishing drafts
            serena:ask: Consult Serena (read-only)