On AI Risk

API and data download

Researchers, journalists and tool builders can use the collection directly. The API is free, read-only and needs no key. Every quote comes with what the site shows: the exact words, the speaker's title and organization at the time, their own caveats, the source, an archived copy, how it was checked, and ready-made citations.

Most people want the whole dataset: download CSV or JSON. Both are rebuilt daily; the JSON's meta.generated_at and the CSV's X-Data-Generated-At header give the version date.

Endpoints

Base URL: https://onairisk.org/api/v1

Ids are the slugs in the site's addresses (/quote/{id}, /p/{id}, /o/{id}, /topic/{id}) and never change or get reused. Every response is wrapped as { data, pagination?, meta }, and meta carries the license.

Filters for /quotes

A filter value the API doesn't recognise returns 400 rather than being ignored.

Examples

curl "https://onairisk.org/api/v1/quotes?tag=extinction-risk&primary=1&limit=5"
// Every quote on a topic, page by page
let url = "https://onairisk.org/api/v1/quotes?tag=loss-of-control";
const quotes = [];
while (url) {
  const res = await fetch(url).then((r) => r.json());
  quotes.push(...res.data);
  url = res.pagination.next;
}
console.log(quotes.map((q) => `${q.speaker.name}: ${q.text ?? q.url}`));
# Python: load the daily CSV
import pandas as pd
df = pd.read_csv("https://onairisk.org/api/v1/export.csv")

What a quote contains

The full schema is in the OpenAPI description.

License

Our part of the data (which quotes are included, tags, dates, affiliations, verification results and links) is licensed under CC BY 4.0: you may reuse it for any purpose, including commercially, if you credit On AI Risk (https://onairisk.org) and link to the license.

The quoted words belong to their speakers. They are shared here as short excerpts with full citations; when you reuse a quote, cite the original source (each quote's citation does this for you).

Terms of use

Errors and corrections

Errors come back as { error: { status, code, message } } with status 400 (bad parameter), 404 (no such id), 410 (withdrawn) or 429 (too many requests). A quote that was published and later withdrawn keeps answering 410 with withdrawn_at, so you can tell it apart from a typo.

Found a wrong quote? Use the “Report an error” form on its page. Reports go to the person who maintains the collection; see how quotes are checked.

Versioning and changes

/api/v1 won't break: fields may be added, but none will be removed, renamed or change type. A change that would break that gets a new version (/api/v2) with the old one kept running. Cursors are opaque; don't build them yourself.

Changelog