Run with Postman

Targa

Web service that allows you to receive information about a vehicle starting from its license plate.

Vehicles

Methods that allow you to receive information about cars and motorcycles

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}$
Default: "<string>"
Example: zr567zy

License plate

Responses

Response Schema: application/json
Array of objects (Auto) [ items ]
success
boolean
message
string
error
integer

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://test.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

Content type
application/json
{
  • "data": {
    },
  • "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}$
Default: "<string>"
Example: ab12345

License plate

Responses

Response Schema: application/json
Array of objects (Moto) [ items ]
success
boolean
message
string
error
integer

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://test.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

Content type
application/json
{
  • "data": {
    },
  • "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}$
Default: "<string>"
Example: zr567zy

License plate

Responses

Response Schema: application/json
Array of objects (Assicurazione) [ items ]
success
boolean
message
string
error
integer

Request samples

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://test.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

Content type
application/json
{
  • "data": {
    },
  • "success": true,
  • "message": "",
  • "error": null
}