recipes / identity
recipe · 4 fields

aadhaar card
extraction api.

The front carries name, date of birth (or year of birth) and gender; the 12-digit number is printed in groups of four. The back carries the address. A document may contain either side or both.

use this recipeall recipesfrom ₹5 a document · 50 free credits
what it reads

the fields.

Rename any of them, drop the ones you don't need, or add the one your form asks for. Each comes back with the text it was read from.

fieldkeytypenotes
NamenameName—
DOBdate_of_birthDateSome cards print only the year of birth; report it as printed
GendergenderChoice—
Aadhaar Card Numberaadhaar_numberAadhaar—
the api

a aadhaar card in,
json back.

Publish the recipe as a workflow and send it files. Each field returns its value, a clean normalised version, its status, the page and the source text.

curl https://api.patrapi.com/v1/workflows/wf_aadhaar/extractions \
  -H "Authorization: Bearer $PATRAPI_KEY" \
  -F file=@aadhaar-card.pdf
{ "status": "completed",
  "document_type": "aadhaar_card",
  "fields": {
    "name": { "value": …, "status": "present", "page": 1 },
    "date_of_birth": { "value": …, "status": "present", "page": 1 },
    "gender": { "value": …, "status": "present", "page": 1 },
    "aadhaar_number": { "value": …, "status": "present", "page": 1 }
  } }
more in identity