Guide · Fuel prices in Chile
Chile fuel prices API: how to get Bencina en Línea prices per gas station as JSON
How to answer the usual questions about fuel prices in Chile from your code or an AI agent: where the cheapest 93 in a comuna is, which station is nearest, what diesel or kerosene costs in a region and which stations sell LPG or CNG. With the official Bencina en Línea (CNE) data, Better Llama's MCP tool and no sign-up. Every response in this guide is a real call made on 24 November 2026.
What is Bencina en Línea and which prices does it publish?
Bencina en Línea is the National Energy Commission (CNE) website that publishes the fuel prices reported by every gas station in Chile. The fuels are gasoline 93, 95 and 97, diesel, kerosene, autogas (LPG) and compressed natural gas (CNG), with separate prices for attended and self-service. Gasoline, diesel and kerosene are reported in pesos per litre; LPG and CNG in pesos per cubic metre.
The CNE offers this data in its API (api.cne.cl), which requires you to register an account, log in for a temporary token and download every station in the country in one response. Filtering, sorting and distances are up to you.
The find_chile_fuel_prices tool does that work with Better Llama's account: it filters by fuel, region, comuna, brand, service type or distance to a point, sorts by price or distance and returns ready-to-use JSON with the update date of every price.
Step by step: the cheapest gasoline with curl, Python and JavaScript
Step 1. Choose fuel and area
Use the codes 93, 95, 97, DI (diesel), KE (kerosene), GLP (LPG) or GNC (CNG) in fuels. For the area, use regions (a CNE code such as 13 or a name such as RM), comunas (accents optional: Nunoa), brands or a point with latitude, longitude and radiusKm. The typical queries table shows the arguments for each question.
Step 2. Connect the MCP server
Use the MCP https://mcp.betterllama.com/mcp from your client (see how to connect your agent) or call it over HTTP with JSON-RPC, as below. No CNE API account or sign-up is needed during the beta.
Step 3. Call the tool
The cheapest gasoline 93 in Providencia, with curl. Without sortBy, rows are sorted by price, lowest first:
curl -s https://mcp.betterllama.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "find_chile_fuel_prices", "arguments": {"fuels": ["93"], "comunas": ["Providencia"], "maxItems": 1}}}'Real response (2026-11-24 10:18, excerpt of result.content[0].text; the operator, services, paymentMethods and other fields are omitted):
{
"tool": "find_chile_fuel_prices",
"count": 1,
"results": [
{
"stationCode": "co1312302",
"brand": "COPEC",
"region": "Metropolitana de Santiago",
"comuna": "Providencia",
"comunaCode": "13123",
"address": "Pedro de Valdivia 2142",
"latitude": -33.44205530200978,
"longitude": -70.60651302337646,
"inMaintenance": false,
"fuelCode": "93",
"fuelName": "Gasolina 93",
"serviceType": "asistido",
"price": 1504,
"unit": "$/L",
"priceUpdatedAt": "2026-11-19T09:02:50",
"mapsUrl": "https://www.google.com/maps/search/?api=1&query=-33.44205530200978,-70.60651302337646"
}
],
"warnings": [],
"stopReason": "maxItems",
"attribution": "Fuente: Comisión Nacional de Energía (CNE), Bencina en Línea — https://api.cne.cl"
}The cheapest 95 within 3 km of Plaza Baquedano in Santiago, in Python (pip install requests), skipping prices the station has not updated in more than 14 days:
import datetime, json, requests
URL = "https://mcp.betterllama.com/mcp"
args = {"fuels": ["95"], "latitude": "-33.4372", "longitude": "-70.6343",
"radiusKm": 3, "sortBy": "precio", "maxItems": 20}
body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": "find_chile_fuel_prices", "arguments": args}}
r = requests.post(URL, json=body, timeout=60,
headers={"Accept": "application/json, text/event-stream"})
data = json.loads(r.json()["result"]["content"][0]["text"])
# Skip prices the station has not updated in more than 14 days
cutoff = (datetime.date.today() - datetime.timedelta(days=14)).isoformat()
fresh = [p for p in data["results"] if (p["priceUpdatedAt"] or "") >= cutoff]
for p in fresh[:3]:
print(f'${p["price"]}/L {p["brand"]}, {p["address"]}, {p["comuna"]} '
f'{p["distanceKm"]} km {p["serviceType"]} {p["priceUpdatedAt"][:10]}')Real output:
$1539/L VIVA COMBUSTIBLES, Avda Recoleta 1087, Recoleta 2.15 km asistido 2026-11-19
$1540/L Petroprix, Avenida VicuÑa Mackenna 106, Providencia 0.54 km autoservicio 2026-11-19
$1540/L COPEC, Vicuña Mackenna 654, Ñuñoa 1.45 km asistido 2026-11-19With output estaciones you get one row per station with all its prices. The first 3 in Ñuñoa, in JavaScript:
const res = await fetch("https://mcp.betterllama.com/mcp", {
method: "POST",
headers: { "Content-Type": "application/json", "Accept": "application/json, text/event-stream" },
body: JSON.stringify({ jsonrpc: "2.0", id: 1, method: "tools/call",
params: { name: "find_chile_fuel_prices", arguments: { output: "estaciones", comunas: ["Nunoa"], maxItems: 3 } } }),
});
const data = JSON.parse((await res.json()).result.content[0].text);
for (const s of data.results) {
const prices = s.prices.filter((p) => ["93", "95", "DI"].includes(p.fuelCode) && p.serviceType === "asistido")
.map((p) => `${p.fuelCode} $${p.price}`).join(" · ");
console.log(`${s.brand}, ${s.address}: ${prices}`);
}Real output:
COPEC, Vicuña Mackenna 654: 93 $1535 · 95 $1540 · DI $1387
COPEC, Avenida Irarrázaval 1102: 93 $1547 · 95 $1600 · DI $1479
COPEC, Avenida Irarrázaval 5277: 93 $1547 · 95 $1600 · DI $1479Step 4. Use the result and check the date
price,unitandserviceType: price in Chilean pesos, unit ($/Lor$/m3) and whether it is attended (asistido) or self-service (autoservicio).priceUpdatedAt: date and time (Chile time) when the station reported that price. Always check it: see data quality.brand,address,comuna,region,latitude,longitudeandmapsUrl: where the station is.distanceKm: distance to the point, when you sendlatitudeandlongitude.count,warningsandstopReason: total matches, notices and whether everything arrived (completed), you cut it (maxItems) or nothing matched (noData).
Typical queries and their real results
Each row is a real call to find_chile_fuel_prices made on 24 November 2026 between 10:18 and 10:21 (Chile time).
| Question | Arguments | Real result (2026-11-24) |
|---|---|---|
| Where is the cheapest 93 in Providencia? | {"fuels": ["93"], "comunas": ["Providencia"], "maxItems": 1} | CLP 1,504 per litre at COPEC Pedro de Valdivia 2142 (updated 19 Nov 2026) |
| The cheapest 93 in the Santiago Metropolitan Region | {"fuels": ["93"], "regions": ["RM"], "maxItems": 10} | First row CLP 1,402, but with a price from 21 Aug 2026; the first one updated in the last month, CLP 1,452 in Conchalí |
| The cheapest diesel in Chile | {"fuels": ["DI"], "maxItems": 5} | First row CLP 142 per litre: a data error (see data quality) |
| The cheapest 95 within 3 km of Plaza Baquedano | {"fuels": ["95"], "latitude": "-33.4372", "longitude": "-70.6343", "radiusKm": 3, "sortBy": "precio", "maxItems": 5} | CLP 1,539 at VIVA COMBUSTIBLES, Recoleta, 2.15 km away |
| The nearest station to that point | {"fuels": ["95"], "latitude": "-33.4372", "longitude": "-70.6343", "radiusKm": 3, "maxItems": 3} | Petroprix, Providencia, 0.54 km away: 95 at CLP 1,540 self-service |
| Every price per station in Ñuñoa | {"output": "estaciones", "comunas": ["Nunoa"], "maxItems": 3} | 3 stations, each with its price list (93, 95, 97, diesel and kerosene) |
| Self-service only, 93, Santiago Metropolitan Region | {"fuels": ["93"], "serviceType": "autoservicio", "regions": ["RM"], "maxItems": 5} | 5 rows, from CLP 1,402 to CLP 1,481 |
| Kerosene in the Santiago Metropolitan Region | {"fuels": ["KE"], "regions": ["RM"], "maxItems": 5} | From CLP 1,000 per litre in Ñuñoa |
| One brand in one comuna: Shell in Las Condes, 95 | {"fuels": ["95"], "brands": ["Shell"], "comunas": ["Las Condes"], "maxItems": 5} | 5 rows, from CLP 1,611 to CLP 1,628 |
| Stations with autogas (LPG) in Chile | {"fuels": ["GLP"], "maxItems": 200} | 46 stations (15 in the Santiago Metropolitan Region), price in CLP/m³ |
| Stations with compressed natural gas (CNG) in Chile | {"fuels": ["GNC"], "maxItems": 200} | 9 stations, 5 of them in Magallanes |
The cheapest gasoline 93 in each region
One call per region with "fuels": ["93"] and the CNE code in regions, counting only prices updated in the last 30 days (since 25 October 2026):
| Region (CNE) | Cheapest 93 | Comuna, brand, service and price date |
|---|---|---|
| Tarapacá | CLP 1,628 | Iquique · ARAMCO · self-service · 19 Nov 2026 |
| Antofagasta | CLP 1,654 | Antofagasta · COPEC · self-service · 19 Nov 2026 |
| Atacama | CLP 1,635 | Copiapó · ARAMCO · self-service · 19 Nov 2026 |
| Coquimbo | CLP 1,589 | Illapel · COPEC · attended · 19 Nov 2026 |
| Valparaíso | CLP 1,507 | Calera · Sin Bandera · attended · 19 Nov 2026 |
| Del Libertador Gral. Bernardo O’Higgins | CLP 1,557 | Nancagua · FACAZ · attended · 19 Nov 2026 |
| Del Maule | CLP 1,513 | San Clemente · HN · attended · 19 Nov 2026 |
| Del Biobío | CLP 1,536 | Los Ángeles · SHELL · self-service · 23 Nov 2026 |
| De la Araucanía | CLP 1,554 | Victoria · FLORES · attended · 21 Nov 2026 |
| De los Lagos | CLP 1,601 | Puerto Montt · COPEC · self-service · 19 Nov 2026 |
| Aysén del Gral. Carlos Ibáñez del Campo | CLP 1,648 | Aysén · COPEC · attended · 19 Nov 2026 |
| Magallanes y de la Antártica Chilena | CLP 1,619 | Punta Arenas · SHELL · self-service · 19 Nov 2026 |
| Metropolitana de Santiago | CLP 1,452 | Conchalí · ARAMCO · attended · 19 Nov 2026 |
| De los Ríos | CLP 1,608 | Lanco · COPEC · attended · 23 Nov 2026 |
| Arica y Parinacota | CLP 1,643 | Arica · COPEC · attended · 19 Nov 2026 |
| Ñuble | CLP 1,547 | Chillán · ARAMCO · self-service · 19 Nov 2026 |
The cheapest in the country was in the Santiago Metropolitan Region (CLP 1,452, Conchalí) and the highest regional minimum was Antofagasta's (CLP 1,654). These are prices reported by stations, not official averages.
Data quality: old prices and wrong values
Bencina en Línea shows what each station reports, and some stop updating their price. If you sort by price without looking at the date, those old prices come first. In 6 of the 16 regions, the cheapest 93 had an outdated price:
- Coquimbo: CLP 1,582 (from 23 Oct 2026) came before CLP 1,589.
- Del Libertador Gral. Bernardo O’Higgins: CLP 1,256 (from 23 Mar 2023), CLP 1,461 (from 30 Jul 2026) came before CLP 1,557.
- Del Biobío: CLP 1,209 (from 22 Jun 2023) came before CLP 1,536.
- Aysén del Gral. Carlos Ibáñez del Campo: CLP 935 (from 4 Feb 2021) came before CLP 1,648.
- Metropolitana de Santiago: CLP 1,402 (from 21 Aug 2026) came before CLP 1,452.
- Ñuble: CLP 1,508 (from 18 Oct 2026) came before CLP 1,547.
There are typos too: the cheapest diesel in Chile came back as CLP 142 per litre in Pudahuel, reported on 19 Nov 2026, followed by CLP 1,121 in Doñihue dated 23 Mar 2023.
Before showing “the cheapest”: drop prices whose priceUpdatedAt is older than 7 to 30 days depending on your use case, drop values outside a reasonable range for the fuel, and ask for more than one row (maxItems 20 or more) so you can filter. The Python example above does the first.
Errors and limits
Real errors (the response has isError and a bilingual message):
- Unknown fuel:
Combustible desconocido / unknown fuel: «98». Usa 93, 95, 97, DI, KE, GLP o GNC.
- Radius without coordinates:
radiusKm requiere latitude y longitude / radiusKm needs latitude and longitude
- Sort by distance without a point:
sortBy=distancia requiere latitude y longitude / needs a location
If no station matches (for example, a misspelt comuna), it is not an error: you get count 0, stopReason noData and the notice Ninguna estación coincide con los filtros (región, comuna, marca, combustible o radio). / No station matches the filters.
.
maxItems goes from 1 to 200 (20 by default); with 500 the tool used 200. Very large responses are also trimmed: with maxItems 200, 100 rows arrived with the notice Respuesta recortada por tamaño; pide menos resultados (maxItems) o acota filtros.
(“response trimmed by size; ask for fewer results or narrow the filters”). count still shows the total: in the Maule Region, 93 had 162 rows (attended and self-service) and 81 arrived. For complete lists, narrow by comuna or fuel.
Fuel prices from your AI agent (MCP)
Add Better Llama's MCP server to your client (Claude, Cursor, VS Code or any client with remote MCP). One MCP brings find_chile_fuel_prices and the rest of the catalog, with no sign-up during the beta.
{
"mcpServers": {
"better-llama": {
"url": "https://mcp.betterllama.com/mcp"
}
}
}claude mcp add --transport http better-llama https://mcp.betterllama.com/mcpSetup for Claude, Codex, Gemini CLI, Windsurf, VS Code and other clients: connect your agent.
Ready-to-run Python and Node.js examples, with config files for each client: examples repository on GitHub.
Then ask, for example: “Where is the cheapest 95 gasoline near Plaza Baquedano in Santiago?” or “How much is kerosene in Ñuñoa?” The agent answers with the prices reported to the CNE, their date and the cited source, instead of guessing.
Beta: free and with no sign-up while we test the service.
Pricing
Free during the beta, no sign-up, with a limit of 60 requests per minute per IP. You don't need your own CNE API account. If paid plans come later, we will announce them on betterllama.com first.
Frequently asked questions
Is there a Bencina en Línea API?
Yes. Chile's National Energy Commission publishes the data at api.cne.cl, but it requires registering an account, logging in for a temporary token and downloading every station in the country at once. Better Llama's find_chile_fuel_prices tool uses the same source with Better Llama's account and returns prices already filtered and sorted, over MCP or JSON-RPC.
How do I find the cheapest gasoline near me?
Send latitude, longitude and radiusKm with sortBy precio and the fuel in fuels. On 24 November 2026, the cheapest 95 within 3 km of Plaza Baquedano was CLP 1,539 per litre at VIVA COMBUSTIBLES, Recoleta, 2.15 km away. Without sortBy, with a point, rows are sorted by distance.
How up to date are the prices?
They are what each station reports to the CNE, with the date in priceUpdatedAt. Most update daily or every few days, but some stations leave old prices: in 6 of 16 regions the cheapest 93 had an outdated price, one of them from 2021. Filter by date before showing results.
Why is a price sometimes absurdly low?
Because the source contains typos from some stations: the cheapest diesel in Chile came back as CLP 142 per litre. Drop values outside a reasonable range and ask for several rows so you can filter.
Which fuels are included?
Gasoline 93, 95 and 97, diesel (DI), kerosene (KE), autogas (GLP) and compressed natural gas (GNC), with attended and self-service prices kept apart. LPG and CNG come in pesos per cubic metre; the rest in pesos per litre. On 24 November 2026 there were 46 stations with LPG and 9 with CNG.
Do I need an API key or a CNE account?
No. The tool uses Better Llama's account on the CNE API and is free during the beta, with no sign-up, over MCP or JSON-RPC, with a limit of 60 requests per minute per IP.
Does the response include personal data?
The tool returns the operator's company name only when it is a company; if it could be a natural person, it is hidden (redacted field). It never returns personal tax IDs, phone numbers or emails. This guide publishes no operators: only brand, comuna and, in some examples, the station address.
Is Better Llama affiliated with the CNE or Bencina en Línea?
No. Better Llama is an independent project, not affiliated with, sponsored by or endorsed by Chile's National Energy Commission or Bencina en Línea. Prices are reported by each gas station, which is responsible for their accuracy, and every response includes an attribution field with the source.
Keep going
- Chile open data APIs: every official source available by API and MCP, with one real call per family.
- Chile electricity market API guide: the other side of energy, with generation, demand and marginal cost.
- Chile communes API guide: regions, provinces and comunas with their codes, to build area filters.
- Bencina en Línea Chile tool page: parameters, example and FAQ.
Other guides
- Chile open data APIs: official sources by API and MCP — map of the official Chilean sources available by API and MCP, how to find the tool with search_tools, one real call per family and an index of every guide.
- Chile public holidays API: 2026 holidays, business days and RUT — National, regional and local holidays with no key, curl and Python examples, and MCP usage.
- Chile business days API: deadlines and business-day counts — business-day deadlines from a notice date, Saturdays as business days, calendar days, business days per month, regional holidays and edge cases, with curl, Python and JavaScript, and MCP usage.
- Chile communes API: regions, provinces and CUT codes — all 346 communes with CUT codes, region filters, name search, curl, Python and JavaScript examples, and MCP usage.
- Chile RUT validation API: check digit as JSON — the modulo 11 algorithm, accepted formats, computing the check digit, batches and privacy, curl, Python and JavaScript examples, and MCP usage.
- Chile public procurement API: Mercado Público tenders and purchase orders — ChileCompra ticket, curl and Python examples, and MCP usage.
- Chile economic indicators API: UF, dollar, euro, CPI and TPM — One real call per indicator (UF, dollar, euro, UTM, CPI, TMC, TIP, TPM, Imacec, GDP, unemployment and real exchange rate), from the CMF or the Central Bank, with curl, Python, JavaScript and MCP.
- Chile UF API: the Unidad de Fomento value as JSON — today's UF, full month, next month's days already published, range or year, with CMF data and a Central Bank cross-check, curl, Python and JavaScript examples, and MCP usage.
- Chile USD/CLP exchange rate API: the observed dollar as JSON — today's rate, daily series by month, range or year and the warning for values published in advance, with CMF data, curl, Python and JavaScript examples, and MCP usage.
- Central Bank of Chile API: BDE series as JSON — dollar, UF, policy rate, CPI, Imacec, GDP, unemployment and any series by code, series search, curl, Python and JavaScript examples, and MCP usage.
- Chile CMF API: UF value, dollar, UTM and maximum conventional rate — the seven API CMF Bancos series with no API key to request, curl and Python examples, and MCP usage.
- Chilexpress API: coverage by comuna, shipping quotes and tracking — covered comunas and sectors with their code and no key, names that differ from the official ones, quotes and tracking with your free keys, and MCP usage.
- Chile Official Gazette API: laws, decrees and new companies — Laws, decrees, notices and company incorporations with CVE and official PDF, no key, curl and Python examples, and MCP usage.
- Chile earthquakes API: latest quake, magnitude, depth and alerts — Public-domain USGS data with Chile local time, no USGS key, curl, Python and JavaScript examples, and MCP usage.
- Chile electricity market API: marginal cost, generation and demand — Coordinador Eléctrico Nacional grid data with no user_key to request, curl and Python examples, and MCP usage.
- Colombia SECOP II API: public procurement contracts and processes — Open data from datos.gov.co with no key, curl and Python examples, and MCP usage.
- Colombia TRM API: today's TRM and the COP/USD rate — Superintendencia Financiera data via datos.gov.co with no key, curl and Python examples, and MCP usage.
- Peru BCRP API: exchange rate, inflation and rates — BCRPData series with no key, curl and Python examples, and MCP usage.
- Banxico API: Mexico's FIX exchange rate, UDIS and TIIE — Banco de México SIE indicators with no token to request, curl and Python examples, and MCP usage.
This guide is also available en español.