ko.io Account API

Web-app account, keys and billing (console session, not API keys).

GitHub OpenAPI

Operations 16

GET /api/v1/favorites User's saved favorites (JWT) #
GET /api/auth/me Current user profile (JWT) #
POST /api/auth/register Register with email + password #
POST /api/auth/login Log in with email + password -> JWT #
POST /api/auth/google Log in with Google ID token -> JWT #
POST /api/auth/logout Revoke session (bumps token_version) #
PUT /api/auth/profile Update profile / change password (JWT) #
GET /api/console/keys List API keys (JWT) #
POST /api/console/keys Create an API key (JWT) #
DELETE /api/console/keys Revoke an API key (JWT) #
GET /api/console/usage Today's usage count (JWT) #
GET /api/console/logs Recent request logs (JWT) #
GET /api/subscription/status Current subscription/plan (JWT) #
DELETE /api/user/delete Delete account (GDPR, JWT) #
POST /api/stripe/create-checkout Create a Stripe Checkout session (JWT) #
POST /api/stripe/create-portal Create a billing-portal session (JWT) #

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/ko-io:ko-io-account-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

ko-io-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ko.io Financial Data Account API
  description: 'U.S. regulatory and market data for researchers, developers and AI agents:

    13F institutional holdings, Form 4 insider trades, congressional trades,

    spot bitcoin ETF holders, N-PORT fund holdings, stock fundamentals and prices,

    macro series and the EDGAR filings gateway. 100M+ source records across

    regulatory and public-data sources; coverage and update schedules vary by dataset.


    - **Base URL:** `https://api.ko.io`

    - **Auth:** send your API key as `Authorization: Bearer ko_live_...`. Free-plan

    endpoints also accept `?demo=true` without a key (demo mode, rate-limited per IP).

    - **Free plan:** the most recent quarter and latest data only, 200 calls a day,

    500 rows per request. Full history requires Pro or higher; endpoints that need

    a paid plan carry the `x-plan-gate` extension and return `403 PLAN_REQUIRED`

    below that plan.

    - **Pro:** $60 a month or $600 a year, VAT included: full history, macro series,

    13D/G, Form D, PDF reports and filing documents; 5,000 rows per request and

    20,000 calls a day. **Builder** (on request) adds bulk export, up to 50,000 rows

    per request and 200,000 calls a day. Pricing: https://ko.io/pricing/

    - **Responses:** `{ data, meta }` on success, `{ error: { code, message } }` on failure.


    Response examples are real responses captured in demo mode on the date recorded

    in the raw OpenAPI spec, abridged to the first rows. Live requests may return a newer

    reporting period.'
  version: 2.0.0
servers:
- url: https://api.ko.io
tags:
- name: Account
  description: Web-app account, keys and billing (console session, not API keys).
paths:
  /api/v1/favorites:
    get:
      operationId: get_v1_favorites
      summary: User's saved favorites (JWT)
      tags:
      - Account
      x-internal: true
      description: Free plan; also works in demo mode (`?demo=true`, no key).
      x-plan-gate: free
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/auth/me:
    get:
      operationId: get_auth_me
      summary: Current user profile (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: User not found (`NOT_FOUND`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/auth/register:
    post:
      operationId: post_auth_register
      summary: Register with email + password
      tags:
      - Account
      x-internal: true
      security: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed JSON body, missing or invalid `email`, `password` or `fullName`, or a weak password (`INVALID_REQUEST`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Email already registered (`EMAIL_EXISTS`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Too many registrations from this IP (`TOO_MANY_ATTEMPTS`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/auth/login:
    post:
      operationId: post_auth_login
      summary: Log in with email + password -> JWT
      tags:
      - Account
      x-internal: true
      security: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed JSON body, or missing `email` or `password` (`INVALID_REQUEST`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Wrong email or password (`INVALID_CREDENTIALS`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Account temporarily locked after repeated failed logins (`TOO_MANY_ATTEMPTS`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/auth/google:
    post:
      operationId: post_auth_google
      summary: Log in with Google ID token -> JWT
      tags:
      - Account
      x-internal: true
      security: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed JSON body or missing `idToken` (`INVALID_REQUEST`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Invalid or expired Google token (`INVALID_TOKEN`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/auth/logout:
    post:
      operationId: post_auth_logout
      summary: Revoke session (bumps token_version)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
  /api/auth/profile:
    put:
      operationId: put_auth_profile
      summary: Update profile / change password (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed JSON body, invalid `full_name`, `current_password` or `new_password`, a weak new password, or nothing to update (`INVALID_REQUEST`); password change on a Google-only account (`NO_PASSWORD`); wrong `current_password` (`INVALID_CREDENTIALS`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/console/keys:
    get:
      operationId: get_console_keys
      summary: List API keys (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    post:
      operationId: post_console_keys
      summary: Create an API key (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed JSON body or invalid `name` (`INVALID_REQUEST`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Active API key limit reached (`KEY_LIMIT_REACHED`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    delete:
      operationId: delete_console_keys
      summary: Revoke an API key (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed JSON body or missing `id` (`INVALID_REQUEST`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Key not found (`NOT_FOUND`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/console/usage:
    get:
      operationId: get_console_usage
      summary: Today's usage count (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/console/logs:
    get:
      operationId: get_console_logs
      summary: Recent request logs (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      parameters:
      - name: limit
        in: query
        description: Number of most recent log rows (default 100, clamped to 1-500).
        schema:
          type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed `limit` (`INVALID_PARAM`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/subscription/status:
    get:
      operationId: get_subscription_status
      summary: Current subscription/plan (JWT)
      tags:
      - Account
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/user/delete:
    delete:
      operationId: delete_user_delete
      summary: Delete account (GDPR, JWT)
      tags:
      - Account
      x-internal: true
      description: Delete account and all associated data (GDPR, JWT).
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '502':
          description: Stripe cancellation or alert-data erasure failed; retry (`STRIPE_CANCEL_FAILED`, `ERASURE_FAILED`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/stripe/create-checkout:
    post:
      operationId: post_stripe_create-checkout
      summary: Create a Stripe Checkout session (JWT)
      tags:
      - Account
      description: Pro only (plan `developer` or `developer_annual`). `403 NEW_SUBSCRIPTIONS_CLOSED` while sales are closed; `403 PLAN_REQUEST_ACCESS` for Builder (`team`); `403 PLAN_NOT_FOR_SALE` for retired tiers (`enterprise`); `409 ALREADY_SUBSCRIBED`, `CHECKOUT_IN_PROGRESS` or `CHECKOUT_COMPLETED`.
      x-internal: true
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '400':
          description: Malformed JSON body (`INVALID_REQUEST`); unknown or unsellable `plan` (`INVALID_PLAN`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Sales closed (`NEW_SUBSCRIPTIONS_CLOSED`), Builder is on request (`PLAN_REQUEST_ACCESS`) or a retired plan (`PLAN_NOT_FOR_SALE`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: User not found (`NOT_FOUND`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Already subscribed (`ALREADY_SUBSCRIBED`), or a checkout is in progress (`CHECKOUT_IN_PROGRESS`) or completed (`CHECKOUT_COMPLETED`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/stripe/create-portal:
    post:
      operationId: post_stripe_create-portal
      summary: Create a billing-portal session (JWT)
      tags:
      - Account
      x-internal: true
      description: Create a Stripe billing-portal session (JWT).
      security:
      - bearerJwt: []
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiEnvelope'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: No subscription found (`NOT_FOUND`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    ApiError:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
            message:
              type: string
    ApiEnvelope:
      type: object
      description: 'Standard response envelope `{ data, meta }`. For most list endpoints `data` is an array of row objects and pagination lives in `meta`. A few endpoints nest their payload inside `data`, as each one documents: financials/historical (an object with `quarterly` and `annual` row arrays), stock-holders (a paginated object whose rows are at `data.data`) and crypto/exposure-summary (an object). v1 shapes are frozen for backward compatibility.'
      properties:
        data:
          description: The response payload (array of rows or an object), shape varies by endpoint.
        meta:
          type: object
          description: 'Pagination + plan metadata (total_count, page, per_page, truncated, upgrade_hint, query_time_ms). Some endpoints also surface resolver hints here (e.g. resolved_member, candidates, quarters). Page size: every paginated list reads `per_page`, with `limit` accepted as an alias (a non-empty `per_page` wins). `meta.pagination` = `{ page, per_page, total_count, total_pages }` (all numbers; `per_page` is the size actually applied after plan caps) is emitted by every paginated list (research insider-signals with `list=all` counts the longest of its three lists; research ticker with `action=all` pages per bucket, so its `total_pages` comes from the longest bucket while `total_count` stays the population; research inbox returns it as null when its source counts could not be read); the older `total_count` / `totalCount` fields stay as they were on each route (some are numeric strings) and are deprecated in favour of it. Percentages and ratios are binary floats and can carry noise (`12.620000000000001`): format them to 2 decimal places on the client.'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: ko.io API key (ko_live_...). Create one at https://ko.io/console/keys/
    bearerJwt:
      type: http
      scheme: bearer
      description: Console session JWT (for account/billing endpoints).
x-tagGroups:
- name: Data
  tags:
  - Search
  - Institutions
  - Stocks
  - Insiders
  - Congress
  - Government contracts
  - Crypto
  - Funds
  - Short Data
  - SEC Filings
  - Filings
  - Macro
  - Europe
  - Research
  - Dashboards
  - Bulk
- name: Service
  tags:
  - Meta