OKF Index Favorites API
The Favorites API from OKF Index — 3 operation(s) for favorites.
The Favorites API from OKF Index — 3 operation(s) for favorites.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/okfindex-com:okfindex-com-favorites-api"
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.
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: 3.2.0
info:
title: OKF Index Favorites API
version: cb36b312
description: 'The search index of Open Knowledge Format bundles. Index: GET /api/.'
servers:
- url: https://okfindex.com
tags:
- name: Favorites
paths:
/api/favorites:
get:
operationId: favorite_ids
summary: List the IDs of your favorite bundles
description: 'Private to the personal account. Up to 200 favorites. No bundle content is copied. Responses use private, no-store.
Returns: { ids, total, limit }'
responses:
'200':
description: '{ ids, total, limit }'
content:
application/json:
schema:
type: object
properties:
ids:
type: array
items:
type: string
description: Saved IDs, at most 200.
total:
type: integer
description: Saved count.
limit:
type: integer
description: Always 200.
required:
- ids
- total
- limit
'401':
description: Sign in or use a personal API key.
'403':
description: Use a personal account.
'404':
description: Bundle is not live.
'409':
description: The account has 200 favorites.
'503':
description: Favorites are unavailable.
tags:
- Favorites
/api/favorites/bundles:
get:
operationId: favorite_bundles
summary: Search your favorite bundles with the public index filters
description: 'Private to the personal account. Up to 200 favorites. No bundle content is copied. Responses use private, no-store.
Returns: { items[{id,name,tagline,description,okf_version,concepts,concept_list,type,index_url,page_url,source,repo,indexed_at,updated_at,api}], limit, offset, next_offset, next }'
parameters:
- name: q
in: query
required: false
schema:
type: string
description: Free text over name, tagline, description and origin identifier.
example: agent
- name: origin
in: query
required: false
schema:
type: string
enum:
- github
- domain
description: 'Provenance: found by the GitHub sweep, or submitted by a domain.'
- name: repo
in: query
required: false
schema:
type: string
description: Only bundles of one repository, `owner/repo` (case-insensitive).
example: fastendpoints/fastendpoints
- name: version
in: query
required: false
schema:
type: string
description: Only bundles declaring one of these `okf_version` values; comma-separated, up to 5.
example: 0.1,0.2
- name: concept
in: query
required: false
schema:
type: string
description: Text in the indexed root content, including listed concept names and summaries (first 1000 characters); up to 80 characters.
- name: concepts
in: query
required: false
schema:
type: string
description: 'Number of entries listed by the root. Up to 5 comma-separated bands: 0,1-5,6-20,21-100,101+.'
- name: type
in: query
required: false
schema:
type: string
description: Type declared by the root, not the types of every concept. Up to 5 comma-separated values, 40 characters each.
- name: license
in: query
required: false
schema:
type: string
description: Repository license. Up to 5 comma-separated values, 40 characters each.
- name: language
in: query
required: false
schema:
type: string
description: Only bundles whose repository language is one of these; comma-separated, up to 5 (GitHub bundles).
example: TypeScript,Go
- name: sort
in: query
required: false
schema:
type: string
default: recent
enum:
- recent
- updated
- name
- stars
description: 'Result order: arrival, last content change, name or repository stars.'
- name: limit
in: query
required: false
schema:
type: integer
default: 24
description: Bundles per page, at most 100.
- name: offset
in: query
required: false
schema:
type: integer
default: 0
description: How many bundles to skip. Use `next_offset` from the previous response; the list ends at 1000.
responses:
'200':
description: '{ items[{id,name,tagline,description,okf_version,concepts,concept_list,type,index_url,page_url,source,repo,indexed_at,updated_at,api}], limit, offset, next_offset, next }'
content:
application/json:
schema:
$ref: '#/components/schemas/PaginaDeBundles'
'401':
description: Sign in or use a personal API key.
'403':
description: Use a personal account.
'404':
description: Bundle is not live.
'409':
description: The account has 200 favorites.
'503':
description: Favorites are unavailable.
tags:
- Favorites
/api/favorites/{id}:
post:
operationId: save_favorite
summary: Save a bundle to your favorites
description: 'Private to the personal account. Up to 200 favorites. No bundle content is copied. Responses use private, no-store.
Returns: { id, favorited }'
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Bundle ID from the public index.
responses:
'200':
description: '{ id, favorited }'
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: Bundle ID from the public index.
favorited:
type: boolean
description: Whether the bundle is now saved.
required:
- id
- favorited
'401':
description: Sign in or use a personal API key.
'403':
description: Use a personal account.
'404':
description: Bundle is not live.
'409':
description: The account has 200 favorites.
'503':
description: Favorites are unavailable.
tags:
- Favorites
delete:
operationId: remove_favorite
summary: Remove a bundle from your favorites
description: 'Private to the personal account. Up to 200 favorites. No bundle content is copied. Responses use private, no-store.
Returns: { id, favorited }'
parameters:
- name: id
in: path
required: true
schema:
type: string
description: Bundle ID from the public index.
responses:
'200':
description: '{ id, favorited }'
content:
application/json:
schema:
type: object
properties:
id:
type: string
description: Bundle ID from the public index.
favorited:
type: boolean
description: Whether the bundle is now saved.
required:
- id
- favorited
'401':
description: Sign in or use a personal API key.
'403':
description: Use a personal account.
'404':
description: Bundle is not live.
'409':
description: The account has 200 favorites.
'503':
description: Favorites are unavailable.
tags:
- Favorites
components:
schemas:
BundleSource:
type: object
properties:
origin:
type: string
description: Provenance of the bundle.
enum:
- github
- domain
via:
type: string
description: 'How it got in: the GitHub sweep or an IndexNow ping.'
enum:
- sweep
- indexnow
url:
type: string
description: The repository (GitHub) or the site root (domain).
host:
type: string
description: Hostname of `url`; empty when it cannot be parsed.
repo:
type: string
description: '`owner/repo` in lowercase, GitHub bundles only.'
nullable: true
dir:
type: string
description: Directory of the bundle inside the repository (empty at the root).
path:
type: string
description: Path of the root `index.md` inside the repository.
required:
- origin
- via
- url
- host
- repo
- dir
- path
description: Where a bundle comes from and how it entered the index.
PaginaDeBundles:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/Bundle'
description: The bundles on this page.
limit:
type: integer
description: Page size applied.
offset:
type: integer
description: Offset applied.
next_offset:
type: integer
description: Offset of the next page; `null` when there is no more (or past the 1000 cap).
nullable: true
next:
type: string
description: Absolute URL of the next page, same filters; follow it until it comes back `null`.
nullable: true
required:
- items
- limit
- offset
- next_offset
- next
description: 'A page of the index. No `total`: counting on every search would cost a scan without changing any decision — `GET /api/okf/stats` has the totals.'
Bundle:
type: object
properties:
id:
type: string
description: Bundle id; the key across the whole API.
name:
type: string
description: Title of the root `index.md`; `owner/repo · dir` when it has none or the title is a listing heading (`Files`, `Index`).
tagline:
type: string
description: One line from the frontmatter `description`; empty when the author gave none.
description:
type: string
description: Body of the root `index.md`, capped at 1000 characters.
okf_version:
type: string
description: The `okf_version` the bundle declares (0.1 and 0.2 coexist).
concepts:
type: integer
description: How many linked entries the root index lists.
concept_list:
type: array
items:
$ref: '#/components/schemas/Concept'
description: The entries the root lists, in order, up to 24 — read from the indexed body, so a very long root is cut.
type:
type: string
description: The `type` declared in the root frontmatter, when any.
index_url:
type: string
description: The root `index.md`, raw — what you hand to an agent.
page_url:
type: string
description: 'The page a human opens: the file on GitHub, or the bundle URL on its site.'
source:
allOf:
- $ref: '#/components/schemas/BundleSource'
description: Provenance and location of the bundle.
repo:
allOf:
- $ref: '#/components/schemas/RepoSignal'
description: Repository signal; `null` for bundles served by a domain.
nullable: true
indexed_at:
type: string
description: When the bundle entered the index, `YYYY-MM-DD HH:MM:SS` UTC.
updated_at:
type: string
description: When its indexed content last changed, `YYYY-MM-DD HH:MM:SS` UTC.
api:
type: string
description: Absolute URL of this bundle's card.
required:
- id
- name
- tagline
- description
- okf_version
- concepts
- concept_list
- type
- index_url
- page_url
- source
- repo
- indexed_at
- updated_at
- api
description: 'One OKF bundle: a markdown tree whose root `index.md` carries `okf_version`.'
Concept:
type: object
properties:
name:
type: string
description: Link text as written in the root index.
url:
type: string
description: Absolute URL of the entry. A leading `/` starts at the bundle root, not the site root. A directory link gets its `index.md`. The target is not checked.
summary:
type: string
description: Text after the link on the same line; empty when the index has none.
required:
- name
- url
- summary
description: 'One entry the root `index.md` lists: a concept file or a subdirectory of the bundle.'
RepoSignal:
type: object
properties:
stars:
type: integer
description: Stargazers at the last collection.
forks:
type: integer
description: Forks at the last collection.
pushed_at:
type: string
description: Last push seen, `YYYY-MM-DD HH:MM:SS` UTC.
nullable: true
state:
type: string
description: Repository state as classified by the enricher (active, stalled, archived, gone).
nullable: true
language:
type: string
description: Primary language reported by GitHub.
nullable: true
license:
type: string
description: License identifier reported by GitHub.
nullable: true
required:
- stars
- forks
- pushed_at
- state
- language
- license
description: Repository signal collected by the enricher — GitHub bundles only.
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