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 · JSON-RPC
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):

JSON
{
  "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:

Python
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:

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-19

With output estaciones you get one row per station with all its prices. The first 3 in Ñuñoa, in JavaScript:

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:

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 $1479

Step 4. Use the result and check the date

  • price, unit and serviceType: price in Chilean pesos, unit ($/L or $/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, longitude and mapsUrl: where the station is.
  • distanceKm: distance to the point, when you send latitude and longitude.
  • count, warnings and stopReason: 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).

QuestionArgumentsReal 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 93Comuna, brand, service and price date
TarapacáCLP 1,628Iquique · ARAMCO · self-service · 19 Nov 2026
AntofagastaCLP 1,654Antofagasta · COPEC · self-service · 19 Nov 2026
AtacamaCLP 1,635Copiapó · ARAMCO · self-service · 19 Nov 2026
CoquimboCLP 1,589Illapel · COPEC · attended · 19 Nov 2026
ValparaísoCLP 1,507Calera · Sin Bandera · attended · 19 Nov 2026
Del Libertador Gral. Bernardo O’HigginsCLP 1,557Nancagua · FACAZ · attended · 19 Nov 2026
Del MauleCLP 1,513San Clemente · HN · attended · 19 Nov 2026
Del BiobíoCLP 1,536Los Ángeles · SHELL · self-service · 23 Nov 2026
De la AraucaníaCLP 1,554Victoria · FLORES · attended · 21 Nov 2026
De los LagosCLP 1,601Puerto Montt · COPEC · self-service · 19 Nov 2026
Aysén del Gral. Carlos Ibáñez del CampoCLP 1,648Aysén · COPEC · attended · 19 Nov 2026
Magallanes y de la Antártica ChilenaCLP 1,619Punta Arenas · SHELL · self-service · 19 Nov 2026
Metropolitana de SantiagoCLP 1,452Conchalí · ARAMCO · attended · 19 Nov 2026
De los RíosCLP 1,608Lanco · COPEC · attended · 23 Nov 2026
Arica y ParinacotaCLP 1,643Arica · COPEC · attended · 19 Nov 2026
ÑubleCLP 1,547Chillá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.

Cursor · mcp.json
{
  "mcpServers": {
    "better-llama": {
      "url": "https://mcp.betterllama.com/mcp"
    }
  }
}
Claude Code
claude mcp add --transport http better-llama https://mcp.betterllama.com/mcp

Setup 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

Other guides

This guide is also available en español.