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).
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: 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