KeepCouncil

Search source passages

POST /api/v1/research/search-passagesMCP search_passages1 unit per call

Search the text of agendas, packets, and minutes. Returns the passages (a section's text, a few pages at most) whose words best match q, best first. Best for bill numbers, addresses, and names. For every mention, use find_occurrences.

Body

application/json
qstringrequired
Words to search for, such as stormwater detention. A passage matching more of them, and rarer ones, ranks higher.
placestring | string[]
Place keys from list_places, such as ["mo/creve-coeur", "mo/clayton"]. Up to 20. Omit, or send the string "all", for every place.
all
Every place.
fromstring
Earliest meeting date to include, YYYY-MM-DD, such as 2026-01-01. Inclusive.
tostring
Latest meeting date to include, YYYY-MM-DD, such as 2026-06-30. Inclusive.
docTypeenum[]
Document types to include. Omit for all types.
agenda
The meeting's agenda.
packet
The agenda packet: the agenda with its reports and attachments.
minutes
The meeting's minutes.
notice
A notice about the meeting, such as a cancellation.
other
Any other document published with the meeting.
meetingobject
One meeting to search within, as results name it in cite.meeting. Omit to search every meeting.
placestringrequired
The meeting's place key, such as mo/clayton.
datestringrequired
The meeting's date, YYYY-MM-DD.
keystringrequired
The meeting's key, as results name it, such as city-council-regular.
fullboolean
Whether to return whole text. Default false, which cuts text at 600 characters.
limitinteger
Results per page, 1 to 20. Default 20.
cursorstring
The cursor value from the previous response, for the next page. Omit for the first page.

Responses

200
The top passages, each with its citation and rank
400
The input failed validation. See error.issues.
401
Missing or invalid token.
403
The account is suspended.
404
No such operation, place, or record.
413
The body is over 16 KB.
429
Over a limit. See Retry-After, in seconds.
500
The call failed. Retry later.
503
The API is paused. See Retry-After, in seconds.

Full response schema: openapi.json.