Search documents
Semantic search over archived City documents and meeting transcripts. Best passage per document, by meaning (not just keywords).
GET https://www.chicagopolitics.org/api/v1/search
Authorizations
| Header | Value |
|---|---|
Authorization | Bearer <key>. Get a key; see authentication. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | What to look for |
kind | string | One of: matter, meeting, money. | |
doc_type | string | ||
year | integer | ||
limit | integer | Default 10. |
Response
200 Results: a list in data, with meta and links (see pagination).
| Field | Type | Description |
|---|---|---|
title | string | |
record | string | null | |
kind | string | |
documentType | string | null | |
date | string | null | |
score | number | |
passage | string | |
document | string | |
links | object |
Example request
curl "https://www.chicagopolitics.org/api/v1/search?q=..." \
-H "Authorization: Bearer $CHICAGO_POLITICS_KEY"
Errors: 400, 401, 429 (see errors).