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.
openapi: 3.2.0
info:
title: OKF Index Stats API
version: cb36b312
description: 'The search index of Open Knowledge Format bundles. Index: GET /api/.'
servers:
- url: https://okfindex.com
tags:
- name: Stats
paths:
/api/stats:
get:
operationId: get_api_stats
summary: Counts and facets for the OKF Index home
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:
- Stats
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