RankControl Analytics API

The Analytics API from RankControl — 14 operation(s) for analytics.

GitHub OpenAPI

Operations 15

POST /api/v1/analytics/activate Turn on the Analytics or Reports screen for this workspace (they ship disabled… #
GET /api/v1/analytics/ai-crawling AI crawler visits to your site: totalCrawls; bots, each crawler with its… #
GET /api/v1/analytics/engagement Per-page engagement for the last 30 days: views, AI citations, and a view… #
GET /api/v1/analytics/google-vs-ai Every tracked question with its place in Google's top 30 from the weekly rank… #
GET /api/v1/analytics/movers The biggest Google position changes over the last 30 days, ten at most, climbs… #
GET /api/v1/analytics/rankings Verified Google and Bing positions per keyword (top 30), with Search Console… #
GET /api/v1/analytics/search-console Search Console totals for the last 7, 30 or 90 days (default 30): totalClicks… #
GET /api/v1/analytics/search-console-queries Search Console's top searches for the last 7, 30 or 90 days (default 30), 50 at… #
GET /api/v1/analytics/search-console-trend Search Console clicks and impressions for each day of the last 7, 30 or 90 days… #
GET /api/v1/analytics/sources Per-workspace analytics source setup: the selected writer for human traffic and… #
POST /api/v1/analytics/sources Select the active writer for a data type. #
GET /api/v1/analytics/traffic Traffic overview from RankControl's own page analytics: total page views… #
GET /api/v1/analytics/traffic-pages Visits to each of your RankControl articles for the last 7, 30 or 90 days… #
GET /api/v1/analytics/traffic-sources Where visits to your RankControl articles came from in the last 7, 30 or 90… #
GET /api/v1/analytics/traffic-trend Visits to your RankControl articles over time, from RankControl's own page… #

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/rctrl-com:rctrl-com-analytics-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

rctrl-com-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RankControl Analytics API
  version: 1.0.0
  description: 'The REST API behind the RankControl dashboard, CLI, and MCP server. Authenticate every request with an API key as a Bearer header; keys are minted in Settings > API and carry scopes (see each operation''s x-required-scope). Full docs: https://rctrl.com/docs/api. MCP endpoint for AI agents: https://api.rctrl.com/mcp (OAuth 2.1, see https://rctrl.com/docs/mcp).'
  contact:
    email: help@rctrl.com
    url: https://rctrl.com/contact
  termsOfService: https://rctrl.com/terms
servers:
- url: https://api.rctrl.com
security:
- bearerAuth: []
tags:
- name: Analytics
paths:
  /api/v1/analytics/activate:
    post:
      operationId: activate_analytics_screen
      summary: Turn on the Analytics or Reports screen for this workspace (they ship disabled…
      description: Requires the `manage:org` scope.
      x-required-scope: manage:org
      x-rate-limit-per-minute: 10
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                screen:
                  type: string
                  enum:
                  - analytics
                  - reports
                  description: 'The screen to turn on: analytics or reports'
              required:
              - screen
      tags:
      - Analytics
  /api/v1/analytics/ai-crawling:
    get:
      operationId: get_ai_crawling
      summary: 'AI crawler visits to your site: totalCrawls; bots, each crawler with its…'
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      tags:
      - Analytics
  /api/v1/analytics/engagement:
    get:
      operationId: get_page_engagement
      summary: 'Per-page engagement for the last 30 days: views, AI citations, and a view…'
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Analytics
  /api/v1/analytics/google-vs-ai:
    get:
      operationId: get_google_vs_ai
      summary: Every tracked question with its place in Google's top 30 from the weekly rank…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Analytics
  /api/v1/analytics/movers:
    get:
      operationId: get_keyword_movers
      summary: The biggest Google position changes over the last 30 days, ten at most, climbs…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: scope
        in: query
        required: false
        schema:
          type: string
          description: '"ours" (default): queries your published articles appear for. "site": everything on the domain, including pages RankControl did not write.'
      tags:
      - Analytics
  /api/v1/analytics/rankings:
    get:
      operationId: get_rankings
      summary: Verified Google and Bing positions per keyword (top 30), with Search Console…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: scope
        in: query
        required: false
        schema:
          type: string
          description: '"ours" (default): queries your published articles appear for. "site": everything on the domain, including pages RankControl did not write.'
      tags:
      - Analytics
  /api/v1/analytics/search-console:
    get:
      operationId: get_search_console
      summary: 'Search Console totals for the last 7, 30 or 90 days (default 30): totalClicks…'
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      tags:
      - Analytics
  /api/v1/analytics/search-console-queries:
    get:
      operationId: get_search_console_queries
      summary: Search Console's top searches for the last 7, 30 or 90 days (default 30), 50 at…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      tags:
      - Analytics
  /api/v1/analytics/search-console-trend:
    get:
      operationId: get_search_console_trend
      summary: Search Console clicks and impressions for each day of the last 7, 30 or 90 days…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      tags:
      - Analytics
  /api/v1/analytics/sources:
    get:
      operationId: get_analytics_sources
      summary: 'Per-workspace analytics source setup: the selected writer for human traffic and…'
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Analytics
    post:
      operationId: set_analytics_source
      summary: Select the active writer for a data type.
      description: Requires the `manage:org` scope.
      x-required-scope: manage:org
      x-rate-limit-per-minute: 10
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                dataType:
                  type: string
                  enum:
                  - aiCrawlers
                  description: The data the source writes. aiCrawlers (AI crawler visits) is the only option.
                source:
                  type: string
                  description: cloudflare, wordpress_plugin or site_hook
              required:
              - dataType
              - source
      tags:
      - Analytics
  /api/v1/analytics/traffic:
    get:
      operationId: get_traffic_overview
      summary: 'Traffic overview from RankControl''s own page analytics: total page views…'
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      - name: scope
        in: query
        required: false
        schema:
          type: string
          enum:
          - ours
          - site
          description: '"ours" (default): visits to your RankControl articles, from RankControl''s own counter. "site": the whole site from Google Analytics, when it is connected.'
      tags:
      - Analytics
  /api/v1/analytics/traffic-pages:
    get:
      operationId: get_traffic_pages
      summary: Visits to each of your RankControl articles for the last 7, 30 or 90 days…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      tags:
      - Analytics
  /api/v1/analytics/traffic-sources:
    get:
      operationId: get_traffic_sources
      summary: Where visits to your RankControl articles came from in the last 7, 30 or 90…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      tags:
      - Analytics
  /api/v1/analytics/traffic-trend:
    get:
      operationId: get_traffic_trend
      summary: Visits to your RankControl articles over time, from RankControl's own page…
      description: Requires the `read:analytics` scope.
      x-required-scope: read:analytics
      x-rate-limit-per-minute: 30
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Success; the payload is wrapped in a data envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  data: {}
        '400':
          description: Bad input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: API key lacks the required scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found in this workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited; the body includes a retryAfterMs hint
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: string
          enum:
          - '7'
          - '30'
          - '90'
          description: Window in days, default 30
      tags:
      - Analytics
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key from Settings > API, e.g. `Authorization: Bearer rctrl_pk_...`'