OKF Index Okf API

The Okf API from OKF Index — 2 operation(s) for okf.

GitHub OpenAPI

Operations 2

GET /okf/{arquivo} OKF bundle (Open Knowledge Format v0.1): markdown with frontmatter so an agent… #
GET /api/okf/stats Size of the index by provenance, and when it last changed #

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/okfindex-com:okfindex-com-okf-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

okfindex-com-okf-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Index Okf API
  version: cb36b312
  description: 'The search index of Open Knowledge Format bundles. Index: GET /api/.'
servers:
- url: https://okfindex.com
tags:
- name: Okf
paths:
  /okf/{arquivo}:
    get:
      operationId: get_okf_by_arquivo
      summary: 'OKF bundle (Open Knowledge Format v0.1): markdown with frontmatter so an agent…'
      description: 'Returns: `text/markdown`. Start at `/okf/index.md`, which lists the bundle.'
      parameters:
      - name: arquivo
        in: path
        required: true
        schema:
          type: string
        description: '`index.md`, `sobre.md`, `api.md` or `faq.md`.'
        example: index.md
      responses:
        '200':
          description: '`text/markdown`. Start at `/okf/index.md`, which lists the bundle.'
        '404':
          description: File outside the bundle.
      tags:
      - Okf
  /api/okf/stats:
    get:
      operationId: index_stats
      summary: Size of the index by provenance, and when it last changed
      description: 'Returns: { total, by_origin, by_version[{v,n}], by_type[{v,n}], by_concepts[{v,n}], by_license[{v,n}], by_language[{v,n}], last_update }'
      responses:
        '200':
          description: '{ total, by_origin, by_version[{v,n}], by_type[{v,n}], by_concepts[{v,n}], by_license[{v,n}], by_language[{v,n}], last_update }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexStats'
      tags:
      - Okf
components:
  schemas:
    Faceta:
      type: object
      properties:
        v:
          type: string
          description: The stored facet value or the concept-count band.
        n:
          type: integer
          description: Live bundles with that value.
      required:
      - v
      - n
      description: One value of a facet and how many live bundles carry it.
    IndexStats:
      type: object
      properties:
        total:
          type: integer
          description: Live bundles in the index.
        by_origin:
          type: object
          description: '`{github, domain}`: live bundles found by the sweep and submitted by domains.'
        by_version:
          type: array
          items:
            $ref: '#/components/schemas/Faceta'
          description: Live bundles per declared `okf_version`, most common first (up to 12).
        by_type:
          type: array
          items:
            $ref: '#/components/schemas/Faceta'
          description: Declared root types, up to 12; roots need not declare a type.
        by_concepts:
          type: array
          items:
            $ref: '#/components/schemas/Faceta'
          description: Root entry counts in bands 0, 1-5, 6-20, 21-100, 101+.
        by_license:
          type: array
          items:
            $ref: '#/components/schemas/Faceta'
          description: Repository licenses, up to 12; absent license is unknown.
        by_language:
          type: array
          items:
            $ref: '#/components/schemas/Faceta'
          description: Live bundles per repository language, most common first (up to 12); domain bundles have none.
        last_update:
          type: string
          description: Newest `updated_at` among live bundles, `YYYY-MM-DD HH:MM:SS` UTC.
          nullable: true
      required:
      - total
      - by_origin
      - by_version
      - by_type
      - by_concepts
      - by_license
      - by_language
      - last_update
      description: Size of the index by provenance, the facets a search can filter by, and when it last changed.
  securitySchemes:
    globalAccount:
      type: apiKey
      in: cookie
      name: __Host-mm-auth
      description: Global session in the product's HttpOnly cookie; writes require exact Origin and X-CSRF-Token.
    contaChaveApi:
      type: http
      scheme: bearer
      bearerFormat: mmk_…
      description: 'Account API key: `Authorization: Bearer mmk_…` or `X-Api-Key: mmk_…`. Created on the account page (API keys), valid only in the product where it was created; it acts as the account (or the organization that owns it).'
    carteiraAgente:
      type: http
      scheme: bearer
      bearerFormat: mmw_…
      description: 'Wallet credential of an agent without an account (`Authorization: Bearer mmw_…`, 30 days, this product only): POST /api/auth/wallet/agent/start, check that the domain and URI of the message are the host and origin that you called, sign the message with the wallet, POST /api/auth/wallet/agent/token. The owner is `x402:<address>`.'
externalDocs:
  url: https://payapi.market/api/okf-index
  description: PayAPI Market
x-service-info:
  categories:
  - knowledge
  - search
  - ai-agents
  docs:
    homepage: https://okfindex.com/
    apiReference: https://okfindex.com/developers
    llms: https://okfindex.com/llms.txt
    pricing: https://okfindex.com/api/pricing
    billing: https://okfindex.com/api/billing