# RTO codes API

> Vehicle registration code to transport office.

Which Regional Transport Office a number plate belongs to: TN-28 is Namakkal (North). Accepts a code or a whole registration number.

Base URL `https://api.dharun.dev`. No API key. Answers are JSON, `{ "data": ..., "meta": { ... } }`, and errors are `{ "error": { "code", "message" } }` with a matching HTTP status. Rate limit: 600 requests a minute per client.

## Office for an RTO code

`GET /v1/rto/{code}`

Parameters:

- `code` (path, required): RTO code (TN-28, TN28) or a registration number (TN28AB1234).

Example: https://api.dharun.dev/v1/rto/TN-28

Response, with lists and long text shortened:

```json
{
  "data": {
    "code": "TN-28",
    "office": "Namakkal (North)",
    "jurisdiction": "Namakkal",
    "stateCode": "TN",
    "state": "Tamil Nadu",
    "notes": null
  },
  "meta": {
    "source": {
      "name": "List of Regional Transport Office districts in India",
      "url": "https://en.wikipedia.org/w/index.php?title=List_of_Regional_Transport_Office_districts_in_India&oldid=1377425763",
      "licence": "CC BY-SA 4.0",
      "version": "revision 1377425763",
      "retrieved": "2026-10-13",
      "attribution": "RTO codes adapted from the Wikipedia article \"List of Regional Transport Office districts in India\", licensed CC BY-SA 4.0. This dataset is shared under the sam…"
    }
  }
}
```

## List or search RTO codes

`GET /v1/rto`

Parameters:

- `state` (query): State code or name, for example TN or Tamil Nadu.
- `q` (query): Text to find in the office name or jurisdiction.
- `limit` (query): Results per page, 1 to 100.
- `offset` (query): Results to skip.

Example: https://api.dharun.dev/v1/rto?state=TN&q=chennai

Response, with lists and long text shortened:

```json
{
  "data": [
    {
      "code": "TN-01",
      "office": "Chennai (Central): Ayanavaram",
      "jurisdiction": "Chennai",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "notes": "SETC & MTC buses are registered here under TN 01 N XXXX."
    },
    {
      "code": "TN-02",
      "office": "Chennai (North West): Anna Nagar",
      "jurisdiction": "Chennai",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "notes": null
    },
    {
      "code": "TN-03",
      "office": "Chennai (North East): Tondiarpet",
      "jurisdiction": "Chennai",
      "stateCode": "TN",
      "state": "Tamil Nadu",
      "notes": null
    }
  ],
  "meta": {
    "total": 11,
    "limit": 50,
    "offset": 0,
    "source": {
      "name": "List of Regional Transport Office districts in India",
      "url": "https://en.wikipedia.org/w/index.php?title=List_of_Regional_Transport_Office_districts_in_India&oldid=1377425763",
      "licence": "CC BY-SA 4.0",
      "version": "revision 1377425763",
      "retrieved": "2026-10-13",
      "attribution": "RTO codes adapted from the Wikipedia article \"List of Regional Transport Office districts in India\", licensed CC BY-SA 4.0. This dataset is shared under the sam…"
    }
  }
}
```

## Data source

- [List of Regional Transport Office districts in India](https://en.wikipedia.org/w/index.php?title=List_of_Regional_Transport_Office_districts_in_India&oldid=1377425763), revision 1377425763, retrieved 2026-10-13. Licence: CC BY-SA 4.0. RTO codes adapted from the Wikipedia article "List of Regional Transport Office districts in India", licensed CC BY-SA 4.0. This dataset is shared under the same licence.
