ANPR / ALPR API

License Plate Recognition API

Read license plates from your images with a cloud REST API. TrafficEye finds every plate in the picture and returns the plate text, issuing country or state, plate size and confidence scores as structured JSON, for 104 countries worldwide.

  • Multi-line and ADR plates
  • Day and night images
  • Free trial credits
Recognition complete 200 OK
Example ANPR result California license plate 123XYZ1
Plate text
123XYZ1
Country
USA-CA
Plate size
300 × 150 mm
Text score
0.99
Unreadable
0.01
Occlusion
0.00
104 countriesregional + worldwide OCR
States & provincesUS, Canada, UAE, Australia
Unreadable platesflagged, not guessed
Plate + vehicleadd MMR in the same call
Recognition output

What the license plate recognition API returns

Each detected plate comes with its text, plate type and position, plus scores that tell you how much to trust the result.

Plate text

The full plate number in Unicode, including national characters such as Č, Š or Ü. Lines of multi-line plates are separated by a semicolon.

Country, state and province

The international registration code of the issuing country, with the state, province or emirate where plates differ, for example USA-CA, CDN-ON or UAE-DU.

ADR, waste and trailer plates

Dangerous goods (ADR) and waste markers are returned as their own plate types, and trailer plates are marked as TRAILER, so you can handle them separately.

Unreadable and covered plates

Every plate has an unreadable score and an occlusion score, so a dirty or covered plate does not end up in your database as a wrong plate number.

Plate size

The predicted physical width and height of the plate in millimeters, which helps to tell plate formats apart, for example front and rear plates or motorcycle plates.

Position and confidence

All four plate corners, a text score and, where the module supports it, per-character confidences for review workflows and your own quality thresholds.

One REST call

Send an image, get the plates as JSON

Upload a JPEG or PNG image as multipart form data with your API key. The detector finds vehicles and plates in the whole scene and links every plate to its vehicle. A truck and its trailer are returned together as one combination.

  • Read up to 20 plates in a single image
  • Limit the search to a region of interest with roi
  • Pick a regional OCR module with ocrModuleId
  • Send your own plate corners and run OCR only
  • Images and plate text are not stored unless you ask for it
Read the API documentation
RequestJSON responseREST API
# Read license plates with the European OCR module
curl -X POST https://api.trafficeye.ai/v1/recognition \
    -H "apikey: YOUR_API_KEY" \
    -F 'request={"tasks":["DETECTION","OCR"],"ocrModuleId":800}' \
    -F "file=@car.jpg"
{ "status": 200, "cost": 1, "credit": 99,   "data": { "combinations": [{ "roadUsers": [{     "plates": [{       "text": { "value": "1AA0000", "score": 0.99 },       "type": { "value": "CZ", "score": 0.99 },       "dimension": { "width": 520, "height": 110 },       "unreadable": 0.01, "occlusion": 0.0     }]   }]}] } }
Country coverage

License plates from 104 countries

Need a country that is not listed? Contact us.

Europe55 countries

ocrModuleId 800
  • Albania
  • Andorra
  • Armenia
  • Austria
  • Azerbaijan
  • Belarus
  • Belgium
  • Bosnia and Herzegovina
  • Bulgaria
  • Croatia
  • Cyprus
  • Czech Republic
  • Denmark
  • Estonia
  • Finland
  • France
  • Georgia
  • Germany
  • Gibraltar
  • Greece
  • Hungary
  • Iceland
  • Ireland
  • Italy
  • Jersey
  • Kazakhstan
  • Kosovo
  • Kyrgyzstan
  • Latvia
  • Liechtenstein
  • Lithuania
  • Luxembourg
  • Malta
  • Moldova
  • Monaco
  • Montenegro
  • Netherlands
  • North Macedonia
  • Norway
  • Poland
  • Portugal
  • Romania
  • Russia
  • San Marino
  • Serbia
  • Slovakia
  • Slovenia
  • Spain
  • Sweden
  • Switzerland
  • Turkey
  • Ukraine
  • United Kingdom
  • Uzbekistan
  • Vatican City

Includes multi-line plates, ADR (dangerous goods) plates and trailer plates.

Americas15 countries

ocrModuleId 553
  • Argentina
  • Bolivia
  • Brazil
  • Canadaall 13 provinces and territories
  • Chile
  • Colombia
  • Ecuador
  • Guyana
  • Mexico
  • Paraguay
  • Peru
  • Suriname
  • United Statesall 50 states, DC, Puerto Rico, Guam and government plates
  • Uruguay
  • Venezuela

US states and Canadian provinces are returned as separate plate types, e.g. USA-CA or CDN-ON.

Middle East & Africa23 countries

ocrModuleId 555
  • Algeria
  • Bahrain
  • Benin
  • Burkina Faso
  • Egypt
  • Ghana
  • Israel
  • Ivory Coast
  • Jordan
  • Kuwait
  • Lebanon
  • Mali
  • Morocco
  • Nigeria
  • Oman
  • Palestine
  • Qatar
  • Saudi Arabia
  • Sudan
  • Syria
  • Togo
  • United Arab Emiratesall 7 emirates
  • Yemen

UAE plates are returned per emirate, e.g. UAE-DU for Dubai.

Asia5 countries

ocrModuleId 556
  • Cambodiaprovince-level
  • India
  • Laos
  • Thailandall 77 provinces
  • Vietnam

Thai and Cambodian plates are returned with the issuing province.

Oceania1 country

ocrModuleId 557
  • Australiaall 8 states and territories

Australian plates are returned per state or territory, e.g. AUS-NSW.

Worldwide module only5 countries

ocrModuleId 801
  • Costa Rica
  • Guatemala
  • Jamaica
  • Japan
  • Singapore

These countries are read by the worldwide module 801 only, which also covers every country listed above.

Best results

Image requirements for license plate recognition

The recognition works with ordinary IP, parking and mobile cameras. These guidelines from the Eyedea ANPR technical sheet help you get the highest accuracy.

Resolution

At least 120 pixels per meter, which is about 60 pixels across a European license plate.

Plate rotation

Up to ±45° is accepted, ±15° or less is recommended for the best accuracy.

Whole plate in view

Keep the plate fully inside the image with some space around it. Cropped plates lose characters.

Sharp image

Use a shutter speed that freezes moving vehicles. Blurred characters cannot be read reliably.

Day and night

Grayscale and infrared night images are supported. Color images are needed for ADR plates.

Front or rear camera

Cameras can face the front or the rear of the vehicle, mounted on either side of the lane.

Use cases

Where teams use plate recognition

Parking and access control

Open barriers for known vehicles and record entry and exit times.

Tolling and road charging

Identify vehicles at toll points and in low-emission zones.

Logistics yards

Log trucks and trailers at gates, including ADR plates.

Fuel stations and car washes

Recognize returning customers and flag drive-offs.

Smart cities

Measure traffic flows and origin of vehicles from authorized cameras.

Home and building automation

Open a garage or a gate when your own car arrives.

FAQ

License plate recognition API questions

What is a license plate recognition API?

A license plate recognition (ANPR / ALPR) API takes an image, finds the license plates in it and returns the plate text, issuing country and related data as structured JSON. TrafficEye runs the recognition in the cloud, so you do not need to install or maintain any recognition software.

Which countries does the ANPR API support?

TrafficEye reads license plates from 104 countries in Europe, the Americas, the Middle East, Africa, Asia and Oceania, including US states, Canadian provinces, UAE emirates and Australian states. Additional countries can be added on request.

Can the API read multi-line, ADR and trailer plates?

Yes. Multi-line plates are returned with the lines separated by a semicolon. ADR (dangerous goods) and waste markers are returned as the ADR and TRASH plate types, and plates on trailers are marked as TRAILER together with the country code.

What happens when a plate is dirty, covered or unreadable?

Every detected plate has an unreadable score and an occlusion score from 0 to 1. Your application can handle a plate that cannot be read separately from a low-confidence reading instead of storing a wrong plate number.

What image quality does license plate recognition need?

For best results, the plate should be at least about 60 pixels wide for a European plate (120 pixels per meter), rotated by no more than 15 degrees, fully inside the image and free of motion blur. Color images are needed to recognize ADR plates.

Can I get the vehicle make and model in the same request?

Yes. Add the MMR task to the request and TrafficEye returns the vehicle category, make, model, generation, color and other attributes for the same road user as the plate.

Start reading plates

Try the license plate recognition API on your own images

Create an account, use your free trial credits and send your first request in minutes.