Yank Library API

Yanks and their lines, as stored.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /api/y/{slug} One yank, with every line and its provenance #

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/yank-info:yank-info-library-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

yank-info-library-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: yank.info public Library API
  version: 1.2.0
  summary: Read the yank.info library, and check a quote or a summary against its source. Read-only, free, no key.
  description: 'Every yanked line with its provenance: the verbatim flag (literal words from the source, or Yank''s paraphrase), the timestamp and moment link, the passage around it and its permanent card address. Plus Yank Check: a statement and its source in, a bounded verdict and a receipt out; or a whole summary and its source in, every sentence''s figures and names checked against what Yank read.


    **Limits.** No key and no account. 120 requests a minute per address on /api/y and /api/search; 20 checks a minute on /api/check and /api/check/summary together, 6 of which may read a source Yank does not hold yet. Every response names its quota in RateLimit-Policy; a 429 carries Retry-After. Every response carries X-Vercel-Id: quote it when something looks wrong.


    **Errors.** An error is JSON, `{ "error": "" }`, with a real status code: 400 for a malformed request, 404 for nothing at that address, 429 when the limit is reached (with Retry-After in seconds), 503 when the library is not reachable. /api/check and /api/check/summary add `error_code` (`bad_request` or `rate_limited`). A verdict is never an error: every Yank Check answer is a 200.


    **Changes.**

    - The API has no version in its paths. Changes are additive: new endpoints, new fields and new error codes ship without notice, so ignore what you do not recognise.

    - A change that would break a client ships at a new path, and the old one keeps working beside it.

    - Before an endpoint or a field is removed, its responses carry a Deprecation header (RFC 9745) and a Sunset header (RFC 8594) with the date, at least six months ahead, and the changelog says so. It keeps working until that date.


    **Agents.** The same library is an MCP server at https://yank.info/api/mcp (described by https://yank.info/.well-known/mcp/server-card.json). Documentation: https://yank.info/developers, or https://yank.info/developers.md as Markdown.


    **Attribution.** Attribute to yank.info and link the card URL when you republish a line, and keep the labels: verbatim: false means the words are Yank''s, not the speaker''s.'
  contact:
    name: yank.info
    url: https://yank.info/developers
    email: comboventures+yank@gmail.com
  termsOfService: https://yank.info/terms
servers:
- url: https://yank.info
tags:
- name: Library
  description: Yanks and their lines, as stored.
paths:
  /api/y/{slug}:
    get:
      operationId: getYank
      tags:
      - Library
      summary: One yank, with every line and its provenance
      description: The yank at https://yank.info/y/{slug}. Add `.csv` to the slug, or `?format=csv`, for the same lines flattened to one row each, with `verbatim` as its own column.
      parameters:
      - name: slug
        in: path
        required: true
        description: The slug in the yank's URL. A `.csv` suffix returns CSV.
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{0,79}(\.(json|csv))?$
      - name: format
        in: query
        required: false
        description: '`csv` for CSV instead of JSON.'
        schema:
          type: string
          enum:
          - csv
      responses:
        '200':
          description: The yank.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Yank'
            text/csv:
              schema:
                type: string
components:
  schemas:
    Yank:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
externalDocs:
  description: Developers
  url: https://yank.info/developers