Brazil Municipal Gazettes API
Keyword search across the official gazettes of Brazilian cities, newest first: city and state, publication date, edition, links to the gazette PDF and text, and the passages that matched your words.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from queridodiario.ok.org.br/api
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/brazil-querido-diario-gazettes/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"query":"licitacao"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
11 fields: 8 here, 3 technical ones under Technical details.
Basics
- Municipality
City name.
Example Araçatuba
- Edition
Edition number, when the city gives one.
Example 1637
- Extra edition
Whether this is an extra edition.
Example No
- Excerpts
Passages of the gazette that matched the words.
Example ............................................................................ Secretaria Municipal de Administração 16…
Location
- Two-letter state code
Example SP
Dates
- Date
Publication date of the gazette.
Example Dec 5, 2026
Links
- Link
Link to the gazette PDF.
Example data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.pdf
- Text link
Link to the gazette's extracted text.
Example data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.txt
Technical detailsField names and types for developers, and the 3 fields hidden above
Hidden by default
These 3 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idId of the gazette file, taken from its address. - Territory ID
territory_idIBGE 7-digit code of the city. - Collected
scraped_atWhen the project collected the gazette (UTC).
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
territory_id | text | Territory ID (hidden) | 3 of 3 |
municipality | text | Municipality | 3 of 3 |
state | text | Two-letter state code | 3 of 3 |
date | date | Date | 3 of 3 |
edition | text | Edition | 3 of 3 |
is_extra_edition | yes or no | Extra edition | 3 of 3 |
url | link | Link | 3 of 3 |
text_url | link | Text link | 3 of 3 |
scraped_at | date and time | Collected (hidden) | 3 of 3 |
excerpts | list | Excerpts | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Municipality | Edition | Extra edition | Excerpts | Two-letter state code | Date | Link | Text link |
|---|---|---|---|---|---|---|---|---|
| 1 | Araçatuba | 1637 | No | ............................................................................ Secretaria Municipal de Administração 16 ........................................................................................................................... Licitações e Contratos 16… | SP | Dec 5, 2026 | data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.pdf | data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.txt |
| 2 | Salto | 2380 | No | de Educação ........................................................................................................... EDITAL – PREGÃO ELETRÔNICO Nº 67/2026 PROCESSO ADMINISTRATIVO Nº 4125/2026 SISTEMA DE REGISTRO DE PREÇOS Encontra-se aberta licitação visando a convocação de… | SP | Dec 5, 2026 | data.queridodiario.ok.org.br/3545209/2026-12-05/bf31cb7037335d77b97fab7a5bb9f957ff66fa3f.pdf | data.queridodiario.ok.org.br/3545209/2026-12-05/bf31cb7037335d77b97fab7a5bb9f957ff66fa3f.txt |
| 3 | Mogi Guaçu | 1226 | No | a b i t a ç ã o d e Mo g i Guaçu - Proguaçu CNPJ 54.672.845/0001-52 Rua João Persinotti, 38 - Chácara Gonçalo Telefone: (19) 3861-1015 SUMÁRIO Poder Executivo 2 ............................................................................. Licitações e Contratos 2… | SP | Dec 5, 2026 | data.queridodiario.ok.org.br/3530706/2026-12-05/bbbadc8933d49e63e0bf13396fcf97525dd37fbe.pdf | data.queridodiario.ok.org.br/3530706/2026-12-05/bbbadc8933d49e63e0bf13396fcf97525dd37fbe.txt |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- A search returns at most 10,000 gazettes in total; narrow it with a city code or a date range to reach further.
- Coverage depends on the city: only municipalities the Querido Diario project collects are included, and some publish with a delay.
- Excerpts are the passages around your words, in Portuguese, and can start or end mid-sentence. Gazette text is OCR-extracted and may contain errors.
- Open Knowledge Brasil's Querido Diario project; credit it when you republish. Requests are kept to about two per second to stay polite.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.