Skip to content

For developers

Three ways in, no key needed: static files with everything, a live API for questions, and an MCP server for AI agents.

Static files

Every build writes the full data under /api/v1/: JSON (the database's fields, money in cents, unix times) and CSV (reais, local dates). Open CORS, cached for 5 minutes, free to fetch as often as you like. For bulk use, start here.

/api/v1/index.jsonevery file, per city, with counts
/api/v1/cities.json · /api/v1/catalog.jsoncities; brands, beers and formats
/api/v1/salvador/deals.json (.csv)published prices, with schedules
/api/v1/salvador/venues.json (.csv)bars with a price; venues-all for every bar
/api/v1/salvador/price-index.json (.csv)the monthly index
/api/v1/salvador/neighbourhoods.geojsonbairro boundaries

Open data page (downloads and citation)

Live API

For questions the files can't answer cheaply: at most 50 prices per answer, cached for 10–15 minutes. When the database runs low, the endpoints answer 503 with Retry-After and the static files' address.

curl "https://cervejabarata.com.br/api/v1/search?city=salvador&brand=brahma&limit=5"
curl "https://cervejabarata.com.br/api/v1/cheapest?city=salvador&lat=-13.0109&lng=-38.4915&radius_m=1500"
curl "https://cervejabarata.com.br/api/v1/venues/12?lang=en"

OpenAPI document (/api/v1/openapi.json)

MCP server

For AI agents (Claude, ChatGPT and others that speak the Model Context Protocol): a remote server over streamable HTTP, stateless, no sign-in. Add this URL as a custom connector, or in a client configuration:

https://cervejabarata.com.br/mcp

{
  "mcpServers": {
    "cerveja-barata": {
      "type": "http",
      "url": "https://cervejabarata.com.br/mcp"
    }
  }
}

Tools

Fair use and licence

The data is open under the ODbL 1.0: credit “Cerveja Barata (cervejabarata.com.br)” and keep databases made from it open. Prefer the static files for anything in bulk, keep your own cache, and tell us what you build: contato@cervejabarata.com.br