Civic AI Audit

API

Read every answer and every cited source we collected, page by page, from a script.

Get a token

Sign in with Google, then open API tokens and create one. We show it once. Keep it secret, and revoke it there if it leaks.

Send it with every request:

curl -H "Authorization: Bearer caa_…" https://civicaiaudit.org/api/v1/stats

Every request needs a token. Tokens are how we keep the site fast for everyone.

Endpoints

Fields

Answers

id, captured_at, observed_on, updated_at, surface, surface_id, platform, platform_id, channel, tier, provider, model_reported, question (the prompt), prompt_sent, question_id, question_key, template_id, framing, subject, race_id, run_id, response_text, judgement (our judge's reading of "A or B?" answers, or null) and citations.

Citations

id, response_id, position, url, domain, source_type, title, cited (linked in the answer), consulted (read by the search tool), surface_id and captured_at (of the answer).

Filters

Lists take comma-separated values. Times are ISO 8601, in UTC.

An unknown parameter or a bad value returns 400 with a message.

Paging

Lists come in pages of 500 rows, oldest id first. Ask for up to 1,000 with limit. Each page gives a next_cursor and a next_url, also sent as a Link header. Follow it until it is null. New answers land at the end, so a crawl never skips or repeats a row.

curl -H "Authorization: Bearer $TOKEN" "https://civicaiaudit.org/api/v1/answers?surface_id=3&limit=1000"
{ "data": [ … ], "next_cursor": "eyJ2Ijox…", "next_url": "https://civicaiaudit.org/api/v1/answers?cursor=eyJ2Ijox…&limit=1000&surface_id=3", "limit": 1000 }

curl -H "Authorization: Bearer $TOKEN" "https://civicaiaudit.org/api/v1/answers?surface_id=3&limit=1000&cursor=eyJ2Ijox…"

A cursor only works with the filters it came from. Change a filter and start again without one.

To catch up later, keep the last id you saw, or use since.

Limits

120 requests a minute per token. Over that you get 429 and a Retry-After header; wait and retry.

The CSV and JSON download links on our explorer pages stop at 5,000 rows. Use the API for more.

License

Our data is under Creative Commons Attribution 4.0 (CC BY 4.0). Credit "Civic AI Audit, National Conference on Citizenship." The text of AI answers and of cited sources may belong to others. See our Terms of Use and Privacy Policy.

Coming next

We plan a bulk download of the full dataset. Until then, the API is the way to get everything. Questions go to contact@ncoc.org.