Data

DOU — Diário Oficial da União search + ato fetch

Direct full-text search and ato fetch against Brazil's Diário Oficial da União (in.gov.br). Returns typed search hits (title, ato type, date, section, slug, permalink) plus full parsed legal text for individual atos. Use it for regulatory-change tracking, recent-norm lookup by topic + window, and DOU-anchored compliance monitoring.

Verified: 2026-05-02 (laranja-data-plane-audit-2026-05-02)

Risk Flags

  • MEDIUM operational DOU's edge can take 5-8s per call when not cached; agents firing many query variations across the same probe (e.g., topic × date-window grid) can exhaust their own time budget. Per-call timeout was tightened from 20s → 8s on 2026-05-03 to bound this. **Advisory for callers**: prefer a single broad query plus client-side filtering over many narrow variations. The 1-hour result cache helps repeat queries; novel queries are bounded by the upstream's natural latency.
  • LOW operational DOU's HTML structure changes occasionally; wrapper parses inline JSON blobs and may lag 1-2 days on front-end updates.
  • LOW regulatory All DOU content is public domain per the Lei de Acesso à Informação. Safe for ingestion at any volume.

Cost

Type: Free · Free tier: Unlimited via auxiliar.ai gateway. DOU upstream is open data, no auth.

Hidden costs

  • DOU's edge occasionally returns a WAF challenge; wrapper auto-retries via ScraperAPI proxy (rare, +1-2s latency).
  • Search-result quality depends on DOU-side tokenization; tighten via secao + date filters.

Install

Default

curl -s -H "Authorization: Bearer $AUXILIAR_TOKEN" "https://api.auxiliar.ai/api/invoke/dou_buscar?q=incentivos+fiscais+energia+solar&data_inicial=2026-04-01&data_final=2026-05-02"
# Search the DOU full-text:
#   GET /api/invoke/dou_buscar
#     params: q (free-text), data_inicial, data_final (ISO YYYY-MM-DD),
#             secao (default "do1" — atos normativos)
#     returns: hits with title, art_type, date_brl, section, slug, permalink
#   GET /api/invoke/dou_ato_fetch?url=<permalink>
#     returns: parsed ato — title, type, date, ementa, body text
# Sections: do1 (atos normativos), do2 (pessoal), do3 (extraordinários)

Estimated time to first success: ~5 min

Dependencies

Minimum runtime: Any HTTP client

Composes with: Auxiliar.ai CNPJ fetch (BrasilAPI → CNPJ.ws cascade)

Distribution

Repository
https://github.com/Tlalvarez/Auxiliar-ai