KeepCouncil

Connect

Call the API over HTTP

POST /api/v1/research/<operation> with a JSON body and your token in the header. Operation names use dashes in paths.

Request

curl https://keepcouncil.com/api/v1/research/legislation-timeline \
  -H "Authorization: Bearer $KEEPCOUNCIL_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"items":[{"place":"mo/creve-coeur","slug":"bill-6225"}]}'

Paging and batches

  • Lists return items and a cursor. Pass the cursor to get the next page. null marks the last page.
  • legislation_timeline and get_pages take up to 10 items. Found items are in items, the rest in missing.
  • Text is cut at 600 characters. Pass full: true for all of it. truncated marks a cut.

Results

  • Records are what each city published. Coverage varies by place and period. Call coverage before reading a gap as no activity.
  • Every fact cites its document and pages. sourceUrl is the publisher’s file. href is the page on KeepCouncil. Document IDs change when a city replaces a file.
  • layer marks provenance: source is the document’s text, extracted is parsed by code, inferred is AI titles and similarity ranks.
  • votes lists recorded votes, by member. unnamedVotes.inferred counts votes filled in from a unanimous result. unnamedVotes.unverified counts votes whose basis is unverified.
  • Status conflicting: the records disagree. doubts: checks the fact failed.
  • Pages and passages are the published text, unedited.
  • No operation calls an AI model.