{"api":{"id":"api_b7a07bf1723851a41c510eb9","slug":"brazil-querido-diario-gazettes","name":"Brazil Municipal Gazettes API","description":"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.","kind":"ready_made","visibility":"public","domain":"queridodiario.ok.org.br","source_url":"https://queridodiario.ok.org.br/api","category":"government","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":11,"created_at":"2026-12-06T04:45:48.343Z","updated_at":"2026-12-06T04:45:48.343Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"Id of the gazette file, taken from its address.","required":true,"coverage":1,"example":"c582e41885704d0cb788139bf8a1f2c5b2987e0d"},{"name":"territory_id","type":"string","description":"IBGE 7-digit code of the city.","required":false,"coverage":1,"example":"3502804"},{"name":"municipality","type":"string","description":"City name.","required":false,"coverage":1,"example":"Araçatuba"},{"name":"state","type":"string","description":"Two-letter state code.","required":false,"coverage":1,"example":"SP"},{"name":"date","type":"date","description":"Publication date of the gazette.","required":false,"coverage":1,"example":"2026-12-05"},{"name":"edition","type":"string","description":"Edition number, when the city gives one.","required":false,"coverage":0.8,"example":"1637"},{"name":"is_extra_edition","type":"boolean","description":"Whether this is an extra edition.","required":false,"coverage":1,"example":false},{"name":"url","type":"url","description":"Link to the gazette PDF.","required":false,"coverage":1,"example":"https://data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.pdf"},{"name":"text_url","type":"url","description":"Link to the gazette's extracted text.","required":false,"coverage":1,"example":"https://data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.txt"},{"name":"scraped_at","type":"datetime","description":"When the project collected the gazette (UTC).","required":false,"coverage":1,"example":"2026-12-05T05:57:40.967Z"},{"name":"excerpts","type":"array","description":"Passages of the gazette that matched the words.","required":false,"coverage":1,"example":["............................................................................ Secretaria Municipal de Administração 16…"]}],"inputs":[{"name":"query","type":"string","description":"Words to find in the gazettes. Put a phrase in quotes, for example \"pregao eletronico\".","example":"licitacao"},{"name":"municipality_id","type":"string","description":"IBGE 7-digit city code to search only that city, for example 3550308 for São Paulo.","example":"3550308"},{"name":"since","type":"string","description":"Only gazettes published on or after this day, as YYYY-MM-DD.","example":"2026-11-01"},{"name":"until","type":"string","description":"Only gazettes published on or before this day, as YYYY-MM-DD."}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"date":{"description":"Publication date of the gazette.","format":"date","type":"string"},"edition":{"description":"Edition number, when the city gives one.","type":"string"},"excerpts":{"description":"Passages of the gazette that matched the words.","type":"array"},"id":{"description":"Id of the gazette file, taken from its address.","type":"string"},"is_extra_edition":{"description":"Whether this is an extra edition.","type":"boolean"},"municipality":{"description":"City name.","type":"string"},"scraped_at":{"description":"When the project collected the gazette (UTC).","format":"date-time","type":"string"},"state":{"description":"Two-letter state code.","type":"string"},"territory_id":{"description":"IBGE 7-digit code of the city.","type":"string"},"text_url":{"description":"Link to the gazette's extracted text.","format":"uri","type":"string"},"url":{"description":"Link to the gazette PDF.","format":"uri","type":"string"}},"required":["id"],"title":"Brazil Municipal Gazettes API","type":"object"},"samples":[{"id":"c582e41885704d0cb788139bf8a1f2c5b2987e0d","territory_id":"3502804","municipality":"Araçatuba","state":"SP","date":"2026-12-05","edition":"1637","is_extra_edition":false,"url":"https://data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.pdf","text_url":"https://data.queridodiario.ok.org.br/3502804/2026-12-05/c582e41885704d0cb788139bf8a1f2c5b2987e0d.txt","scraped_at":"2026-12-05T05:57:40.967Z","excerpts":["............................................................................ Secretaria Municipal de Administração 16 ........................................................................................................................... Licitações e Contratos 16…"]},{"id":"bf31cb7037335d77b97fab7a5bb9f957ff66fa3f","territory_id":"3545209","municipality":"Salto","state":"SP","date":"2026-12-05","edition":"2380","is_extra_edition":false,"url":"https://data.queridodiario.ok.org.br/3545209/2026-12-05/bf31cb7037335d77b97fab7a5bb9f957ff66fa3f.pdf","text_url":"https://data.queridodiario.ok.org.br/3545209/2026-12-05/bf31cb7037335d77b97fab7a5bb9f957ff66fa3f.txt","scraped_at":"2026-12-05T07:47:17.148Z","excerpts":["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…"]},{"id":"bbbadc8933d49e63e0bf13396fcf97525dd37fbe","territory_id":"3530706","municipality":"Mogi Guaçu","state":"SP","date":"2026-12-05","edition":"1226","is_extra_edition":false,"url":"https://data.queridodiario.ok.org.br/3530706/2026-12-05/bbbadc8933d49e63e0bf13396fcf97525dd37fbe.pdf","text_url":"https://data.queridodiario.ok.org.br/3530706/2026-12-05/bbbadc8933d49e63e0bf13396fcf97525dd37fbe.txt","scraped_at":"2026-12-05T07:18:00.372Z","excerpts":["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…"]}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"date":1,"edition":1,"excerpts":1,"id":1,"is_extra_edition":1,"municipality":1,"scraped_at":1,"state":1,"territory_id":1,"text_url":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_b7a07bf1723851a41c510eb9/run","openapi":"https://pullrow.dev/v1/apis/api_b7a07bf1723851a41c510eb9/openapi.json","contract":"https://pullrow.dev/v1/apis/api_b7a07bf1723851a41c510eb9/contract.json","page":"https://pullrow.dev/catalog/brazil-querido-diario-gazettes"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["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."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"Id of the gazette file, taken from its address.","group":"Technical","shown":false,"written":false},{"name":"territory_id","label":"Territory ID","description":"IBGE 7-digit code of the city.","group":"Technical","shown":false,"written":false},{"name":"municipality","label":"Municipality","description":"City name.","group":"Basics","shown":true,"written":false},{"name":"state","label":"Two-letter state code","description":"","group":"Location","shown":true,"written":false},{"name":"date","label":"Date","description":"Publication date of the gazette.","group":"Dates","shown":true,"written":false},{"name":"edition","label":"Edition","description":"Edition number, when the city gives one.","group":"Basics","shown":true,"written":false},{"name":"is_extra_edition","label":"Extra edition","description":"Whether this is an extra edition.","group":"Basics","shown":true,"written":false},{"name":"url","label":"Link","description":"Link to the gazette PDF.","group":"Links","shown":true,"written":false},{"name":"text_url","label":"Text link","description":"Link to the gazette's extracted text.","group":"Links","shown":true,"written":false},{"name":"scraped_at","label":"Collected","description":"When the project collected the gazette (UTC).","group":"Technical","shown":false,"written":false},{"name":"excerpts","label":"Excerpts","description":"Passages of the gazette that matched the words.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"query","label":"Query","help":"Words to find in the gazettes. Put a phrase in quotes, for example \"pregao eletronico\".","example":"licitacao","written":false},{"name":"municipality_id","label":"Municipality ID","help":"IBGE 7-digit city code to search only that city, for example 3550308 for São Paulo.","example":"3550308","written":false},{"name":"since","label":"Since","help":"Only gazettes published on or after this day, as YYYY-MM-DD.","example":"2026-11-01","written":false},{"name":"until","label":"Until","help":"Only gazettes published on or before this day, as YYYY-MM-DD.","example":"","written":false}]}},"incidents":[]}