Find an API

Search public APIs with auth details & Postman guides

← All APIs

OpenALPR / Rekor API

api.rekor.ai · Security

Security API Key Free Tier Physical Security License Plates ALPR

Automatic License Plate Recognition (ALPR) API — identify vehicle make, model, color, and license plate from images or video streams in real time. Used for parking, gate access, and law enforcement. Cloud and on-premise options.

Authentication

API Key API key from rekor.ai. Pass as api_key header.

Sample Requests

POST Recognize plate from image URL

Detect and read a license plate from an image URL.

https://api.rekor.ai/v1/recognize

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
api_key YOUR_KEY
Content-Type application/json
Request Body — data you're sending
{
  "country": "us",
  "image_url": "https://example.com/car.jpg"
}
curl -X POST "https://api.rekor.ai/v1/recognize" \
  -H "api_key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Content-Type: application/json" \
  -d '{"country":"us","image_url":"https://example.com/car.jpg"}'
import requests
headers = {
    "api_key": "YOUR_KEY",
    "Content-Type": "application/json"
}
data = {
    "country": "us",
    "image_url": "https://example.com/car.jpg"
}
response = requests.post(
    "https://api.rekor.ai/v1/recognize",
    headers=headers,
    json=data,
)
print(response.json())
const url = 'https://api.rekor.ai/v1/recognize';

const response = await fetch(url, {
  method: 'POST',
  headers: {
    'api_key': 'YOUR_KEY',
    'Content-Type': 'application/json'
  },
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
  "country": "us",
  "image_url": "https://example.com/car.jpg"
}),
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"bytes"
	"encoding/json"
)

func main() {
	targetURL := "https://api.rekor.ai/v1/recognize"
	jsonData, _ := json.Marshal({"country":"us","image_url":"https://example.com/car.jpg"})
	req, _ := http.NewRequest("POST", targetURL, bytes.NewBuffer(jsonData))
	req.Header.Set("api_key", "YOUR_KEY")
	req.Header.Set("Content-Type", "application/json")
	req.Header.Set("Content-Type", "application/json")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.rekor.ai/v1/recognize")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Post.new(uri)
req["api_key"] = "YOUR_KEY"
req["Content-Type"] = "application/json"
req["Content-Type"] = "application/json"
req.body = "{\"country\":\"us\",\"image_url\":\"https://example.com/car.jpg\"}"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.rekor.ai/v1/recognize";
$opts = ["http" => [
    "method" => "POST",
    "header" => implode("\r\n", [
        "api_key: YOUR_KEY",
        "Content-Type: application/json",
        "Content-Type: application/json"
    ]),
    "content" => json_encode({"country":"us","image_url":"https://example.com/car.jpg"}),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. Sign up for a free API key at rekor.ai
  2. Pass as api_key header
  3. POST /recognize with image_url or base64 image data
  4. country param: us, eu, au, gb, etc.
  5. On-premise option: OpenALPR open-source engine available at github.com/openalpr

Open documentation ↗