Identity API

Driving License Verify

Verify any Indian driving license number with date of birth against government RTO records in real time.

Request Example
<?php $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => "https://app.way2api.com/api/v1/driving-license/verify", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer YOUR_API_KEY", "Content-Type: application/json" ], CURLOPT_POSTFIELDS => json_encode([ "dob" => "15/06/1992", "dl_number" => "MH0320140001234" ]) ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); $data = json_decode($response, true); print_r($data);
const response = await fetch("https://app.way2api.com/api/v1/driving-license/verify", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ "dob": "15/06/1992", "dl_number": "MH0320140001234" }) }); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); } const data = await response.json(); console.log(data);
curl -X POST https://app.way2api.com/api/v1/driving-license/verify \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{\"dob\":\"15/06/1992\",\"dl_number\":\"MH0320140001234\"}'
$.ajax({ url: "https://app.way2api.com/api/v1/driving-license/verify", type: "POST", contentType: "application/json", headers: { "Authorization": "Bearer YOUR_API_KEY" }, data: JSON.stringify({ "dob": "15/06/1992", "dl_number": "MH0320140001234" }), success: function(data) { console.log(data); }, error: function(xhr) { console.error(xhr.responseJSON); } });
const { data } = await axios.post( "https://app.way2api.com/api/v1/driving-license/verify", {"dob":"15/06/1992","dl_number":"MH0320140001234"}, { headers: { "Authorization": "Bearer YOUR_API_KEY" } } ); console.log(data);
import requests response = requests.post( "https://app.way2api.com/api/v1/driving-license/verify", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "dob": "15/06/1992", "dl_number": "MH0320140001234" } ) print(response.status_code) print(response.json())
Response Example
200 OK Success Response
{
    "success": true,
    "message": "",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "license_number": "MH0320140001234",
            "state": "Maharashtra",
            "name": "SURESH PATEL",
            "permanent_address": "42 MG ROAD, PUNE, MAHARASHTRA",
            "permanent_zip": "411001",
            "temporary_address": "42 MG ROAD, PUNE, MAHARASHTRA",
            "temporary_zip": "411001",
            "citizenship": "",
            "ola_name": "RTO PUNE",
            "ola_code": "MH032",
            "gender": "M",
            "father_or_husband_name": "RAMESH PATEL",
            "dob": "1992-06-15",
            "doe": "2034-08-10",
            "transport_doe": "1800-01-01",
            "doi": "2014-08-11",
            "transport_doi": "1800-01-01",
            "has_image": true,
            "blood_group": "B+",
            "vehicle_classes": [
                "MCWG",
                "LMV-NT"
            ],
            "less_info": false
        }
    }
}
4xx Error Response
{
    "success": false,
    "message": "Verification Failed.",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "license_number": "MH0320140001234",
            "state": null,
            "name": null,
            "permanent_address": null,
            "gender": null,
            "father_or_husband_name": null,
            "dob": "1992-06-15",
            "doe": null,
            "doi": null,
            "has_image": false,
            "vehicle_classes": [],
            "less_info": false
        }
    }
}
Common Response Codes
Code Meaning
200 OK — Request successful
400 Bad Request — Missing or invalid parameters
401 Unauthorized — Invalid or missing API key
429 Too Many Requests — Rate limit exceeded
500 Server Error — Try again later
Ready to integrate?

Start with free trial API calls. No credit card required.

Get API Key — Free Browse All APIs
Way2API Way2API
Contact Way2API

Login