ANP Fuel Prices Brazil Scraper / Preços de Combustíveis avatar

ANP Fuel Prices Brazil Scraper / Preços de Combustíveis

Pricing

from $0.85 / 1,000 fuel price delivereds

Go to Apify Store
ANP Fuel Prices Brazil Scraper / Preços de Combustíveis

ANP Fuel Prices Brazil Scraper / Preços de Combustíveis

Weekly fuel prices from Brazil's ANP survey: average, minimum and maximum by municipality, or the price, brand and address of every surveyed gas station. Gasoline, ethanol, diesel, LPG and CNG.

Pricing

from $0.85 / 1,000 fuel price delivereds

Rating

0.0

(0)

Developer

Scrapewise Data

Scrapewise Data

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

8 days ago

Last modified

Categories

Share

ANP Weekly Fuel Prices Brazil

Official weekly fuel prices for Brazil from the ANP price survey, at two levels: one row per municipality and product with preco_medio_revenda, preco_minimo_revenda, preco_maximo_revenda and postos_pesquisados, or one row per surveyed gas station with preco_revenda, bandeira (brand), cnpj, razao_social, endereco and cep.

For energy analysts tracking pump prices in the largest ethanol market, fleet teams pricing diesel by city, gas stations benchmarking local competitors, price comparison apps, newsrooms and AI agents. ANP (Agência Nacional do Petróleo, Gás Natural e Biocombustíveis) is Brazil's federal fuel regulator; every week it publishes a station by station survey as open government data, and this Actor reads that official publication.

What it fixes

  • The weekly file changes name every week. The Actor finds the current spreadsheet on the ANP page by pattern on every run, so a schedule keeps working without a new link.
  • Two spreadsheets with different columns. nivel picks one, and the dataset has a view for each so tables and CSVs show only the right columns.
  • Sole proprietor stations carry the owner's personal tax number in the company name. It is stripped before the row is written (66 such rows in a country wide run of 20,021 stations, none reached the dataset).
  • Silent empty results. If the filters match nothing, or ANP changes the page, the run fails with a message naming what was missing.

At a glance

  • Price: US$ 1.00 per 1,000 rows on Free, US$ 0.85 on Gold and above, no start fee
  • Levels: municipality summary (about 3,900 rows per week) or each surveyed station (about 20,000)
  • Filters: state, municipality, product, brand; accents and case ignored
  • Week: always the latest one ANP published
  • Source link on every row: url_origem

Input examples

Empty input returns 30 municipality rows from the latest week:

{}

Average, minimum and maximum gasoline price in one city:

{ "nivel": "municipio", "uf": "SP", "municipio": "São Paulo", "produto": "gasolina" }

Every surveyed station in that city, with brand and address:

{ "nivel": "posto", "uf": "SP", "municipio": "São Paulo", "produto": "gasolina comum", "maxItems": 10 }

One brand in one city:

{ "nivel": "posto", "municipio": "São Paulo", "bandeira": "IPIRANGA", "maxItems": 50 }

Output examples

A station row (run of 2026-09-14, survey week 2026-08-30 to 2026-09-05):

{
"data_coleta": "2026-08-31",
"uf": "SP",
"municipio": "SAO PAULO",
"cnpj": "08442236000190",
"razao_social": "AUTO POSTO JOSE MARIA LISBOA LTDA",
"nome_fantasia": "JM LISBOA",
"endereco": "AVENIDA NOVE DE JULHO 3062",
"bairro": "JARDIM PAULISTA",
"cep": "01406000",
"bandeira": "VIBRA",
"produto": "GASOLINA COMUM",
"unidade_medida": "R$ / litro",
"preco_revenda": 7.19,
"coletado_em": "2026-09-14T14:42:14.427359+00:00",
"url_origem": "https://www.gov.br/anp/.../revendas_lpc_2026-08-30_2026-09-05.xlsx"
}

A municipality row for the same city and week:

{
"semana_inicio": "2026-08-30", "semana_fim": "2026-09-05",
"uf": "SP", "municipio": "SAO PAULO", "produto": "GASOLINA COMUM",
"postos_pesquisados": 210, "unidade_medida": "R$/l",
"preco_medio_revenda": 6.31, "preco_minimo_revenda": 5.44, "preco_maximo_revenda": 8.97,
"desvio_padrao_revenda": 0.4658, "coef_variacao_revenda": 0.074
}

Main output fields

Field names are in Portuguese, exactly as ANP publishes the columns, so any value can be traced to its source. Every row also carries coletado_em (run time, UTC) and url_origem (the source spreadsheet).

LevelFieldMeaning
municipiosemana_inicio, semana_fimSurvey week
bothuf, municipio, produto, unidade_medidaState code, municipality and product in uppercase, unit of the price
municipiopostos_pesquisadosStations behind the average
municipiopreco_medio_revenda, preco_minimo_revenda, preco_maximo_revendaAverage, cheapest and dearest pump price
municipiodesvio_padrao_revenda, coef_variacao_revendaStandard deviation and coefficient of variation
postodata_coletaDay the surveyor visited
postocnpj, razao_social, nome_fantasiaCompany tax id, registered name, trade name (filled on about 74% of rows)
postoendereco, bairro, cepStreet address, neighborhood, postal code
postobandeiraBrand; BRANCA is unbranded
postopreco_revendaPrice that station charged

Products, for readers outside Brazil: GASOLINA COMUM (regular gasoline, already blended with ethanol by law) and GASOLINA ADITIVADA (with detergent additives); ETANOL HIDRATADO (ethanol sold as a fuel on its own, for flex fuel cars); OLEO DIESEL and OLEO DIESEL S10 (low sulfur); GNV (vehicle natural gas); GLP (bottled cooking gas, priced per 13 kg bottle, so around 100 to 120 reais). Prices are in Brazilian reais at the pump, taxes included.

Pricing

One charge per row delivered ("Fuel price delivered"): US$ 1.00 per 1,000 on Free, 0.95 on Bronze, 0.90 on Silver, 0.85 on Gold and above. One product in one city at station level (10 rows) costs US$ 0.01; the national municipality summary (about 3,900 rows) about US$ 3.90; every surveyed station in the country (20,021 in the week measured) US$ 20.02. Rows dropped by filters, duplicates and failed runs are free. maxItems caps the cost before you start.

Measured runs: 50 municipality rows in 8 s; 10 station rows for one city in 9 s; 1,000 station rows in 52 s; the whole country at station level (20,021 rows) in 12 min 44 s.

Limitations

  • Only the latest published week. The ANP page links only the most recent files; schedule a weekly run and keep each dataset to build history.
  • A survey sample, not a census. In the week of 2026-08-30 the station file had 20,021 stations in a few hundred municipalities; municipalities not surveyed that week do not appear.
  • No state or national aggregate rows. Aggregate yourself, weighting by postos_pesquisados.
  • No coordinates, phones or opening hours. Location is the address, postal code, municipality and state.
  • Resale prices only. Distributor and refinery prices are not in this output.
  • Read unidade_medida before charting two products together, since LPG is per 13 kg and liquid fuels per litre.

FAQ

Where does the data come from, and is it legal? From ANP's Levantamento de Preços de Combustíveis, published as open government data on gov.br. The Actor downloads the public weekly spreadsheet without login or key. url_origem points at the exact file.

Does it return personal data? No. Stations are businesses identified by company tax id, name and commercial address. Personal tax numbers that ANP prints inside some company names are removed. No phones or emails are collected.

When is a new week available? ANP usually publishes on Friday or Saturday. Save a task with your input and schedule it for the weekend; a weekly national municipality run costs about US$ 3.90.

Why are field names in Portuguese? Because the source columns are; translating them would break the link between a value and its column in the source file. The table above explains each one.

What is this data good for outside Brazil? Brazil is the only large market where drivers choose between gasoline and ethanol at the pump every week, so the ethanol to gasoline ratio is a substitution signal. It also shows how fast oil price moves reach consumers, regional spreads, and brand competition.

Can an AI agent use it? Yes, through the Apify MCP server: https://mcp.apify.com/?tools=scrapewise/anp-precos-combustiveis. Each row carries the week, unit and source, so the agent can cite them.

What happens if ANP is offline or changes the page? The run fails with an error naming what was missing (the weekly link, the sheet or the header row) and nothing is charged. Open an issue if it keeps failing.

Changelog

  • 2026-09-14: every input field has a default, so empty API and MCP calls run; examples use São Paulo.
  • 2026-09-11: station level (nivel: "posto") with brand, CNPJ and address, bandeira filter, minimum, maximum and dispersion at municipality level, personal tax numbers stripped from company names.
  • 2026-09-04: source moved to the spreadsheet ANP publishes on its own site, found by pattern on every run.