electricity bill
extraction api.
A monthly electricity bill. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities.
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 |
|---|---|---|---|
| Electricity Co. | electricity_company | Text | — |
| Name | name | Name | Consumer name |
| Address line 1 | address_line_1 | Address | — |
| Address line 2optional | address_line_2 | Address | — |
| Area codeoptional | area_code | PIN code | PIN code |
| Customer No. | customer_number | Text | Consumer / service number |
| Meter No. | meter_number | Text | — |
| Sub Div. officeoptional | sub_division_office | Text | — |
| Connected load | connected_load | Text | With its unit (kW / HP / kVA), as printed |
a electricity bill 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": "light_bill",
"pages": …,
"credits": …,
"fields": {
"electricity_company": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"name": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"address_line_1": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
"address_line_2": { "value": …, "normalized": …, "status": "present", "page": …, "source_text": …, "bbox": … },
… 5 more
}
}asked often.
What does the Electricity bill API extract?
9 fields: Electricity Co., Name, Address line 1, Address line 2, Area code, Customer No., Meter No., Sub Div. office and Connected load. 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 Electricity bill fields are optional?
Address line 2, Area code and Sub Div. office. When the document doesn't carry one, the field comes back with the status not_present and a null value.
How much does Electricity bill 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 Electricity bill 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).