Government
Diário Oficial da União logo

Diário Oficial da União API

in.gov.br

Public search of the Brazilian Official Gazette (DOU / Imprensa Nacional)

Actions
4
Category
Government
Login
Not required
Output
JSON

Call the Diário Oficial da União API

Submit a task, then poll the job until it settles. This example runs act_in_gov_br_get_dou_act.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_in_gov_br_get_dou_act",
    "params": {
      "url": "https://www.in.gov.br/web/dou/-/portaria-n-3.164-de-10-de-novembro-de-2026-744728021"
    }
  }'

4 actions on in.gov.br

Read

  • Get DOU Act Full Text

    act_in_gov_br_get_dou_actread1 credit / call

    Fetch a Diário Oficial da União act by URL or id and return title, órgão, seção, edição, página, publication date, URL and full text.

    url
    string · required
  • List DOU Edition Acts

    act_in_gov_br_list_dou_editionread1 credit / call

    List acts published in a given DOU edition date and section, paginated.

    edition_date
    string · required
    section
    string · required
    page
    integer
    page_size
    integer
  • Search DOU Acts

    act_in_gov_br_search_dou_actsread1 credit / call

    Search Diário Oficial da União acts by name, CNPJ or term and an optional date range and section. Returns title, órgão, seção, edição, página, publication date, URL and text excerpt.

    search_query
    string · required
    date_from
    string
    date_to
    string
    section
    string
    page
    integer
    page_size
    integer
  • Search DOU Acts by Órgão

    act_in_gov_br_search_dou_by_orgaoread1 credit / call

    Search DOU acts by órgão (issuing body) and date range. Returns matching acts with title, órgão, seção, edição, página, date and URL.

    orgao
    string · required
    date_from
    string
    date_to
    string
    section
    string
    page
    integer
    page_size
    integer

Diário Oficial da União API questions

Is there an API for Diário Oficial da União?
Diário Oficial da União does not offer a public data API for this, but Anakin Wire provides 4 maintained endpoints for in.gov.br. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Diário Oficial da União data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when in.gov.br changes its markup, Anakin updates the action.
Do I need a Diário Oficial da União account?
No. Every Diário Oficial da União action listed here runs anonymously — no account and no credentials required.
What does the Diário Oficial da União API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Government APIs

All Government sites