visiting card
extraction api.
A business card, as a photo or scan of one side or both. The person's name is usually the largest line after the company's; phone numbers, email, website and address sit together in small type.
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.
| field | key | type | notes |
|---|---|---|---|
| Name | name | Name | The person the card belongs to, not the company |
| Designationoptional | designation | Text | Job title, e.g. Proprietor, Director, Sales Manager |
| Company | company | Text | The firm or company name as printed, usually beside the logo |
| Mobileoptional | mobile | Mobile | The first mobile number printed |
| Other phoneoptional | other_phone | Text | A second mobile or a landline with its STD code, if printed |
| Emailoptional | — | ||
| Websiteoptional | website | Text | — |
| Addressoptional | address | Address | The full address as one string |
| PIN codeoptional | pincode | PIN code | — |
| GSTINoptional | gstin | GSTIN | Only when the card prints one |
a visiting 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_YOUR_WORKFLOW_ID/extractions \
-H "Authorization: Bearer $PATRAPI_KEY" \
-F [email protected]{
"object": "extraction",
"id": "ext_…",
"status": "succeeded",
"document_type": "visiting_card",
"pages": …,
"credits": …,
"fields": {
"name": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"designation": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"company": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"mobile": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
… 6 more
}
}asked often.
What does the Visiting card API extract?
10 fields: Name, Designation, Company, Mobile, Other phone, Email, Website, Address, PIN code and GSTIN. You can rename them, drop the ones you don't need or add your own before publishing.
What comes back for each field?
A JSON object with value, normalized, status, page, source_text and bbox. The status is one of present, not_present, unreadable, redacted and conflicting, so a value that is not on the document comes back as null instead of a guess.
Which Visiting card fields are optional?
Designation, Mobile, Other phone, Email, Website, Address, PIN code and GSTIN. When the document doesn't carry one, the field comes back with the status not_present and a null value.
How much does Visiting card extraction cost?
1¢ a page (₹1 in India), and every page counts. Failed documents and repeats of the same file are free.
Can I test Visiting card extraction for free?
Yes. You can try it without an account: 15 test runs on documents of up to 15 pages. A new account starts with 200 free pages, and the first 25 test and assistant runs on each workflow cost nothing (up to 100 a month per account).