recipes / power & utilities
recipe · 7 fields

power estimate copy
extraction api.

A discom's estimate for catering a new load. Gujarat distribution companies are DGVCL, MGVCL, PGVCL, UGVCL; Torrent Power in some cities.

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
Service provider nameservice_providerText—
DivisiondivisionText—
Firm namefirm_nameName—
Address line 1address_line_1Address—
Address line 2optionaladdress_line_2Address—
Area codearea_codePIN codePIN code
Estimate for catering in kVAestimate_kvaNumber—
the api

a power estimate copy 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_power/extractions \
  -H "Authorization: Bearer $PATRAPI_KEY" \
  -F file=@power-estimate.pdf
{ "status": "completed",
  "document_type": "power_estimate",
  "fields": {
    "service_provider": { "value": …, "status": "present", "page": 1 },
    "division": { "value": …, "status": "present", "page": 1 },
    "firm_name": { "value": …, "status": "present", "page": 1 },
    "address_line_1": { "value": …, "status": "present", "page": 1 },
    "address_line_2": { "value": …, "status": "present", "page": 1 },
    … 2 more
  } }
more in power & utilities