The API has been replaced by the endpoints available in Automotive
To check any number plate and obtain info such as registration date, model and features and insurance, discover the new services in Automotive
Deprecated starting from 2024-12-31
All the knowledge you need
Here you can find some advice to consider to approach this API. If you prefer, we provide code samples, OAS3 documentation, the ability to try the API live via the Swagger UI or import the entire collection into Postman. We also offer a Sandbox environment where you can experiment with all kinds of requests completely free of charge.
Get the token in the appropriate section before you start.
- Oas file url https://console.openapi.com/oas/en/targa.openapi.json
- Fork or import with Postman
- Production domain targa.openapi.it
- Sandbox domain test.targa.openapi.it
- Production Scopes 3
-
Sandbox Scopes 3
- GET test.targa.openapi.it/auto
- GET test.targa.openapi.it/moto
- GET test.targa.openapi.it/assicurazione
Targa (1.0.0)
Web service that allows you to receive information about a vehicle starting from its license plate.
Information about a car
This method shows information about a car starting from its Italian license plate
Authorizations:
path Parameters
targa required | string^[a-zA-Z]{2}[0-9]{3}[a-zA-Z]{2}$ Example: zr567zy License plate |
Responses
Response Schema: application/json
Array of objects (Auto) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://targa.openapi.it/auto/%7Btarga%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 402
- 406
- 417
- 428
- "data": {
- "LicensePlate": "EX117YA",
- "Description": "AUDI A4 4ª serie",
- "RegistrationYear": "2015",
- "CarMake": "AUDI",
- "CarModel": "A4 4ª serie",
- "EngineSize": "",
- "FuelType": "Diesel",
- "MakeDescription": "AUDI",
- "ModelDescription": "A4 4ª serie",
- "Immobiliser": "",
- "NumberOfDoors": "",
- "Version": "AUDI A4 2.0 TDI ultra 136CV ( 3/2014 )",
- "ABS": "",
- "AirBag": "",
- "Vin": "",
- "KType": "",
- "PowerCV": 136,
- "PowerKW": 100,
- "PowerFiscal": 20,
- "Timestamp": 1665411640
- "success": true,
- "message": "",
- "error": null
Information about a motorcycle
This method shows information about a motorcycle starting from its Italian license plate
Authorizations:
path Parameters
targa required | string^[a-zA-Z]{2}[0-9]{5}$ Example: ab12345 License plate |
Responses
Response Schema: application/json
Array of objects (Moto) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://targa.openapi.it/moto/%7Btarga%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 402
- 406
- 417
- 428
- "data": {
- "LicensePlate": "XX40666",
- "Description": "Yamaha Tracer 700 ABS - 74.8 CV",
- "RegistrationYear": "2017",
- "CarMake": "Yamaha",
- "CarModel": "Tracer 700",
- "EngineSize": "",
- "FuelType": "",
- "MakeDescription": "Yamaha",
- "ModelDescription": "Tracer 700",
- "Immobiliser": "",
- "Version": "ABS - 74.8 CV",
- "ABS": "",
- "AirBag": "",
- "Vin": "",
- "KType": "",
- "Timestamp": 1665411640
- "success": true,
- "message": "",
- "error": null
Information about car insurance
This method shows information about car insurance starting from its Italian license plate
Authorizations:
path Parameters
targa required | string^[a-zA-Z]{2}[0-9]{3}[a-zA-Z]{2}$ Example: zr567zy License plate |
Responses
Response Schema: application/json
Array of objects (Assicurazione) | |
success | boolean |
message | string |
error | integer |
Request samples
- C + Libcurl
- Csharp + Restsharp
- Go + Native
- Java + Okhttp
- Java + Unirest
- Javascript + Jquery
- Javascript + Xhr
- Node + Native
- Node + Request
- Node + Unirest
- Objc + Nsurlsession
- Ocaml + Cohttp
- Php + Curl
- Php + Http1
- Php + Http2
- Python + Python3
- Python + Requests
- Ruby + Native
- Shell + Curl
- Shell + Httpie
- Shell + Wget
- Swift + Nsurlsession
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET"); curl_easy_setopt(hnd, CURLOPT_URL, "https://targa.openapi.it/assicurazione/%7Btarga%7D"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "Authorization: Bearer REPLACE_BEARER_TOKEN"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
Response samples
- 200
- 402
- 406
- 417
- 428
- "data": {
- "LicensePlate": "ZR567ZY",
- "Company": "VITTORIA ASSICURAZIONI",
- "Expiry": "2023-01-08T00:00:00",
- "ExpiryTimestamp": 1673136000,
- "IsInsured": true,
- "Timestamp": 1665411640
- "success": true,
- "message": "",
- "error": null