- A Datalab account with an API key
- Python 3.11+ installed
- The Datalab SDK:
pip install datalab-python-sdk - Your
DATALAB_API_KEYenvironment variable set
Quick Start
What a field looks like
Fields come in the order the model reads the page. To get pixel coordinates, multiply
x0 and x1 by the page width and y0 and y1 by the page height.
Field types
field_type is one of: signature, initials, email, name, firstName, lastName, company, title, date, text, checkbox, radio.
A field is the empty space a person writes in. The API does not return printed labels, headings or instructions as fields, and it returns no field for a page that has none. A field with no rule or box, such as a blank inside a sentence, still counts.
Options
Spreadsheets are not accepted. Send a PDF or an image.
Fill the fields you found
Detection tells you where the fields are. To write values into them, send the same file to the form filling API with your field data.Next Steps
Form Fields SDK
Use form_fields() from the Python SDK and the CLI.
Form Filling
Fill the fields with structured data.
API Reference
See every parameter of the form fields endpoint.
Pricing
Per-page pricing for form field detection.