Documents & media
Documents & media · AI-assisted
Form to JSON API
Filled form photo, scan or PDF to JSON: your fields or every field and checkbox. Handwriting OK.
Base URLhttps://form-to-json-handwritten-printed-form-ocr.p.rapidapi.com/v1/form-ocropenapi.json
- Free plan
- 3 credits a day
- Paid plans
- from $4.99 a month
- One credit
- 1 credit per page; very dense pages 2 or 3.
- Endpoints
- 2, on
/v1/form-ocr
Example call
curl -X POST "https://form-to-json-handwritten-printed-form-ocr.p.rapidapi.com/v1/form-ocr/extract" \
-H "X-RapidAPI-Key: YOUR_API_KEY" \
-H "X-RapidAPI-Host: form-to-json-handwritten-printed-form-ocr.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{
"url": "https://upload.wikimedia.org/wikipedia/commons/a/aa/World_War_I_Draft_Registration_Card_for_Louis_Armstrong_1918.gif",
"fields": [
{
"name": "full_name",
"type": "string"
},
{
"name": "date_of_birth",
"type": "date"
},
{
"name": "race",
"type": "string"
},
{
"name": "employer",
"type": "string"
},
{
"name": "signed",
"type": "boolean",
"description": "is it signed"
}
]
}'
import requests
url = "https://form-to-json-handwritten-printed-form-ocr.p.rapidapi.com/v1/form-ocr/extract"
payload = {
"url": "https://upload.wikimedia.org/wikipedia/commons/a/aa/World_War_I_Draft_Registration_Card_for_Louis_Armstrong_1918.gif",
"fields": [
{
"name": "full_name",
"type": "string"
},
{
"name": "date_of_birth",
"type": "date"
},
{
"name": "race",
"type": "string"
},
{
"name": "employer",
"type": "string"
},
{
"name": "signed",
"type": "boolean",
"description": "is it signed"
}
]
}
headers = {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "form-to-json-handwritten-printed-form-ocr.p.rapidapi.com",
}
r = requests.post(url, json=payload, headers=headers)
print(r.json())
const res = await fetch("https://form-to-json-handwritten-printed-form-ocr.p.rapidapi.com/v1/form-ocr/extract", {
method: "POST",
headers: {
"X-RapidAPI-Key": "YOUR_API_KEY",
"X-RapidAPI-Host": "form-to-json-handwritten-printed-form-ocr.p.rapidapi.com",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://upload.wikimedia.org/wikipedia/commons/a/aa/World_War_I_Draft_Registration_Card_for_Louis_Armstrong_1918.gif",
"fields": [
{
"name": "full_name",
"type": "string"
},
{
"name": "date_of_birth",
"type": "date"
},
{
"name": "race",
"type": "string"
},
{
"name": "employer",
"type": "string"
},
{
"name": "signed",
"type": "boolean",
"description": "is it signed"
}
]
}),
});
console.log(await res.json());
{
"source": "https://upload.wikimedia.org/wikipedia/commons/a/aa/World_War_I_Draft_Registration_Card_for_Louis_Armstrong_1918.gif",
"mime_type": "image/jpeg",
"mode": "fields",
"page_count": 1,
"pages_read": [1],
"title": "REGISTRATION CARD",
"languages": ["en"],
"handwriting": true,
"data": {
"full_name": "Lewis Armstrong",
"date_of_birth": "1900-07-04",
"race": "Negro",
"employer": "Peter Lala",
"signed": true
},
"fields": [
{ "name": "full_name", "type": "string", "value": "Lewis Armstrong", "page": 1, "handwritten": true, "confidence": "high" },
{ "name": "date_of_birth", "label": "Date of Birth", "type": "date", "value": "1900-07-04", "page": 1, "handwritten": true, "confidence": "high" },
{ "name": "race", "label": "Negro", "type": "string", "value": "Negro", "page": 1, "handwritten": true, "confidence": "high" },
{ "name": "employer", "label": "EMPLOYER'S NAME", "type": "string", "value": "Peter Lala", "page": 1, "handwritten": true, "confidence": "high" },
{ "name": "signed", "label": "REGISTRANT'S SIGNATURE OR MARK", "type": "boolean", "value": true, "page": 1, "handwritten": true, "confidence": "high" }
],
"filled": 5,
"empty": 0,
"text": "REGISTRATION CARD\n\nSERIAL NUMBER\t928\tORDER NUMBER\t4177\n\n1. Lewis Armstrong\n(First name) (Middle name) (Last name)\n2. PERMANENT HOME ADDRESS: 1233 Perdido St. N.O. La.\n...",
"truncated": false,
"credits": 1
}
Extract Form from URL: POST /v1/form-ocr/extract. A real call and its real response, with long values shortened.
What the Form to JSON API returns
Stop retyping forms. Send a photo, scan or PDF of a filled-in form, typed or handwritten, and get JSON your code can store: registration cards, claim forms, delivery notes, bills of lading, intake sheets, applications, questionnaires, certificates. Name the fields you want, or let the API find every field, checkbox, table and signature on its own. From $0.0104 per page: about 3x cheaper than Google's form parser and 5x cheaper than AWS Textract forms.
- Your schema
- Up to 40 fields, each typed (
string,number,integer,date,boolean,checkbox,list), dates asYYYY-MM-DD - Or auto mode
- Every label/value pair, ticked boxes, option groups, tables (line items, people, schedules) and signature boxes, with keys made from the printed labels
- Handwriting
- Cursive, block capitals and old archives; each value says if it is
handwrittenand how legible it is (confidence). Handwriting is read twice: a value the two readings disagree on comes backuncertain: true(with the other reading asalternativein auto mode) - Checked against the page
- Every text value must appear in a separate transcription of the form, or it comes back
null - PDFs
- Scanned or digital, up to 10 pages per call, values typed into fillable PDFs included
- Any language
- French, German, Russian, Georgian, Lithuanian... values stay as written
Endpoints
Host form-to-json-handwritten-printed-form-ocr.p.rapidapi.com, header X-RapidAPI-Key. Parameters and examples for each one are in the API reference.
Form Extraction
A form image or PDF to JSON: your fields, or every field found.
Use cases
- Insurance. Claim forms and accident reports into your claims system, with handwriting
- Logistics. Delivery notes, bills of lading and proof-of-delivery slips into rows
- Healthcare and clinics. Intake and consent forms into the patient record (checkboxes included)
- Education and HR. Applications, enrolment forms and questionnaires, by the hundred
- Archives and genealogy. Census sheets, registration cards and certificates into searchable data
Tutorial
Documents & media
Pricing
1 credit per page; very dense pages 2 or 3. Failed calls are never billed.
| Plan | Price | Credits included | Above the quota |
|---|---|---|---|
| BASIC | Free | 3 / day | resets every day |
| PRO | $4.99/mo | 480 / month | $0.11 per credit |
| ULTRA | $14.99/mo | 1,450 / month | $0.11 per credit |
| MEGA | $49.99/mo | 4,800 / month | $0.11 per credit |
Subscribe on RapidAPI (opens in a new tab)
No code: the Apify actor
The Form OCR to JSON - Handwritten & Printed Forms actor runs the same engine on a list of inputs and exports a table (JSON, CSV, Excel, Google Sheets). It is billed per result; free-plan users get 5 forms per run.
| Event | Charged for | Price |
|---|---|---|
form-page | Each page read (dense pages count 2 or 3) | $0.01 |
Questions about the Form to JSON API
Do I need a template for each form?
What happens when a value is unreadable or missing?
null, or with [illegible] for the words that cannot be read, and a low confidence when the writing is poor. The API never fills a gap with a guess.How do I know which handwritten values to check?
4177 / 4127), the value comes back with "uncertain": true, a low confidence and, in auto mode, the other reading as alternative. Send those to a human; the rest can go straight in.Can I ask for something that is not on the form?
null.





