recipes / identity
recipe · 4 fields

pan card
extraction api.

A laminated card carrying the PAN, the holder's name, father's name and date of birth.

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
PANpanPAN—
NamenameName—
Father's nameoptionalfather_nameNameOlder cards carry it; newer ones may not
Date of birthdate_of_birthDate—
the api

a pan 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_pan/extractions \
  -H "Authorization: Bearer $PATRAPI_KEY" \
  -F file=@pan-card.pdf
{ "status": "completed",
  "document_type": "pan_card",
  "fields": {
    "pan": { "value": …, "status": "present", "page": 1 },
    "name": { "value": …, "status": "present", "page": 1 },
    "father_name": { "value": …, "status": "present", "page": 1 },
    "date_of_birth": { "value": …, "status": "present", "page": 1 }
  } }
more in identity