ActorStack.dev

The DGT environmental badge in car listing data: 0, ECO, C and B

Spain's environmental badge decides where a car can drive and what it is worth. What each code means, how often it appears in listing data, and why it stays untranslated.

By Oswaldo Carabano6 min read

Short answer

The DGT environmental badge is Spain's official vehicle emissions classification, issued by the Dirección General de Tráfico as four codes: `0` for zero-emission, `ECO` for hybrids and gas, `C` and `B` for progressively older combustion engines. In coches.net listing data it appears as `environmental_label` on 79.6% of 550 measured listings, and it stays as the raw code because those are official identifiers, not words to translate.

Key points

  • The badge is issued by the DGT, Spain's traffic authority, and it governs access to low-emission zones in cities including Madrid and Barcelona.
  • Four codes appear in listing data: `0`, `ECO`, `C` and `B`. A car with no badge is not an error in the data — plenty of older vehicles have none.
  • Measured coverage in listing data is 79.6%, so roughly one car in five carries no badge value.
  • The codes are never translated or expanded: `0` is an official identifier and turning it into "zero emissions" would break any join against a Spanish dataset.
  • Badge and price interact, which is why a badge-less car asking well below the model average is usually correctly priced rather than mispriced.
On this page6 sections

In Spain, the environmental badge on a windscreen decides which cities a car can enter. It therefore also affects what the car is worth, which makes environmental_label one of the more consequential fields in a listing row and one of the easiest to misread.

What the badge is

The distintivo ambiental is issued by the Dirección General de Tráfico, Spain's traffic authority, and classifies a vehicle by emissions. Cities use it to control access to low-emission zones — Madrid and Barcelona being the two that matter most for national market prices.

It is a regulatory classification, not a marketing label. That is why the codes are passed through exactly as published.

The four codes

CodeCovers
0Zero-emission vehicles: battery electric, extended-range and certain plug-in hybrids.
ECOHybrids, plug-in hybrids below the zero threshold, and gas-powered vehicles (CNG, LPG).
CNewer combustion engines meeting the more recent emissions standards.
BOlder combustion engines still permitted, but the most restricted of the badged categories.

There is a fifth state and it is the important one: no badge at all. Older vehicles below the B threshold get nothing, and in the data that arrives as a null rather than a code. It is not a gap in the scrape.

How it appears in listing data

environmental_label, filled on 79.6% of 550 measured listings. So roughly one car in five carries no badge value — a mix of genuinely unbadged older vehicles and listings where the seller did not state it.

The data cannot distinguish those two cases, and this site will not pretend otherwise. Treat a null as “unknown or unbadged” and, if the distinction matters to your analysis, note that it is not available.

Why the code is never translated

Because 0, ECO, C and B are official identifiers. Expanding 0 into “zero emissions” would make the field impossible to join against the DGT's own data or any Spanish registry, and it would introduce a translation decision where the source has none.

The same rule governs province, city and region, which stay in Spanish because they are proper nouns. Fuel type and offer type are translated, because they are descriptions rather than identifiers — and even then the original is preserved in fuel_type_raw and offer_type_raw so you can verify against the source.

The effect on price

A car that cannot enter central Madrid has a smaller buyer pool, and the ask reflects it. This is the mechanism behind a large share of apparent bargains: a listing 25% below its model average with no badge is usually priced correctly for what it is.

Which makes the field a required column in any below-market screen rather than an optional one — the reason it appears in the screen.

In the other direction, the 0 and ECO segments are where policy-driven demand shows up. Tracking their share of listings over time is one of the more interesting analyses available from this data, because it measures supply response to regulation rather than opinion about it.

Filtering by badge

environmentalLabels accepts the codes directly, so a run can be restricted to the zero-emission or ECO segments:

input.json — the electrified segment
{
  "maxResults": 5000,
  "environmentalLabels": ["0", "ECO"],
  "maxCacheAgeDays": 7
}

One constraint to plan around: the site's URL scheme allows only one of make, badge or colour per query, so a badge filter cannot be combined with a make filter. If you need “electric BMWs”, filter by badge in the run and by make in your own query afterwards — it costs you rows you discard, so scope the province list instead to keep the volume down.

Frequently asked questions

What are the DGT environmental badge categories?
Four: `0` for zero-emission vehicles, `ECO` for hybrids and gas-powered cars, and `C` and `B` for progressively older combustion engines. They are issued by Spain's Dirección General de Tráfico.
How often is the badge present in coches.net data?
On 79.6% of 550 measured listings. About one car in five carries no badge value at all.
Why is the badge not translated into English?
Because `0`, `ECO`, `C` and `B` are official DGT codes rather than words. Expanding them would make the field impossible to join against any Spanish registry or dataset.

Sources

Every URL below was requested and returned a page on the date shown.

  1. Law or regulatorchecked 18 Aug 2026
    Distintivo ambientalDirección General de Tráfico (Spain)
  2. Operator claimchecked 18 Aug 2026
    Coches.net Car Listings & Dealer Scraper — Actor README and input schemaActorStack / Apify Store
Aerial view of a vehicle storage lot with cars parked in long, even rows.
coches.netReference

Coches.net data fields

A reference for the 55 fields in a coches.net listing row, each with the percentage of 550 real listings that had it filled, plus the two fields deliberately left out.

7 min
A narrow street in Valencia, Spain, lined with parked cars and apartment blocks.
coches.netComparison

Comparing data sources

Coches.net, Milanuncios, Wallapop and AutoScout24 all list Spanish cars, and they differ in the one thing that matters for data work: how much structure the site publishes.

7 min
Aerial view of a vehicle storage lot with cars parked in long, even rows.
coches.netGuide

Scrape coches.net

A walkthrough of extracting used-car listings from Spain's largest vehicle marketplace: how discovery works by facet rather than pagination, what the 55 fields contain, and what a thousand listings cost.

9 min