PDF Form Fields API
Send a PDF URL and get every form field back as JSON — name, type, value and options, plus the label and printed text that tell you what each field asks for.
- Free plan
- No credit card
Request
curl -X POST https://apdf.io/api/pdf/form/read \
-H "Authorization: Bearer TOKEN" \
-d file="FILE_URL"
const data = new FormData();
data.append('file', 'FILE_URL');
fetch('https://apdf.io/api/pdf/form/read', {
headers: {'Authorization': 'Bearer TOKEN'},
method: 'POST',
body: data
})
.then(response => response.json())
.then(json => console.log(json));
use GuzzleHttp\Client;
$client = new Client();
$response = $client->post(
'https://apdf.io/api/pdf/form/read', [
'headers' => [
'Authorization' => 'Bearer TOKEN'
],
'form_params' => [
'file' => 'FILE_URL'
]
]);
$body = $response->getBody();
echo json_encode($body->getContents());
require 'rest-client'
response = RestClient.post(
'https://apdf.io/api/pdf/form/read',
{
'file' => 'FILE_URL'
},
{
Authorization: "Bearer TOKEN"
}
)
puts response.body
import requests
response = requests.post(
'https://apdf.io/api/pdf/form/read',
headers = {
'Authorization': 'Bearer TOKEN'
},
data = {
'file': 'FILE_URL'
}
)
print(response.text)
import (
"fmt"
"github.com/go-resty/resty/v2"
)
func main() {
client := resty.New()
data := map[string]string{
"file": "FILE_URL"
}
resp, _ := client.R().
SetFormData(data).
SetHeader("Authorization", "Bearer TOKEN").
Post("https://apdf.io/api/pdf/form/read")
fmt.Println(resp.String())
}
import okhttp3.*;
class Pdf {
public static void main(String[] args) throws Exception {
OkHttpClient client = new OkHttpClient();
FormBody formBody = new FormBody.Builder()
.add("file", "FILE_URL")
.build();
Request request = new Request.Builder()
.url("https://apdf.io/api/pdf/form/read")
.addHeader("Authorization", "Bearer TOKEN")
.post(formBody)
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
Every field.
What it asks for.
A name like Text12 says nothing, the page around it does.
Each field comes back with the text printed around it.
- name
- The ID the fill endpoint takes
- type
- From text and checkbox to listbox and signature
- value
- Text, true or false, the chosen option or a list
- options
- What a checkbox, radio or choice accepts
- label
- The description stored in the PDF
- context
- Position and the text printed around it
Know the form first.
Whether you fill a form or collect one, it starts with knowing its fields and what is already in them.
Map a form to your data
List the fields of a form once and match each name to a column in your database before you prefill it.
Collect returned forms
Pull the answers out of filled PDFs that come back by email or upload and push them into your CRM.
Brief an AI agent
Give an agent the labels and printed text of every field, so it knows what Text12 asks for before it fills it.
Check for gaps
See which required fields of a completed form are still empty before it goes out to a client or an office.
Read forms from anywhere.
Turn every incoming form into data your tools can use.
One account and one monthly allowance behind every route.
One authenticated POST from any language. Copy-paste samples in cURL, Node.js, Python and more.
POST /api/pdf/form/read
Pick the action in any Zap and map files from earlier steps. No code and no servers to run.
Get PDF Form Fields
Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.
Read PDF form
Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.
read-pdf-form
1,000 form reads
a month. Free.
Start on the free plan and move up only when your volume does — up to 1,000,000 operations a month on Business.
- One call is one operation, however many pages.
- Only calls that do the work are counted.
- Hard limits, so no surprise overage charges.
Reading PDF forms, answered
PDF form tutorials
Prefill PDF Forms from Google Sheets with n8n
Each new row in Google Sheets fills your existing PDF form through the Apdf n8n node, optionally flattened, then the PDF is saved to Google Drive and emailed to the member. No code, no template builder — and the API logs show exactly why a row was rejected.
Fill Out Any PDF Form by Asking Claude
Chat assistants can tell you what goes into a PDF form, but they can't write it in. Connect Claude to Apdf over MCP and it sees the form as numbered boxes, matches your plain-language details to the right fields and dropdown options, and hands back the filled PDF — flattened if you want it locked.
Get PDF Form Field Names and Values in Python
Python form libraries hand you raw PDF objects to decode. Send the form URL to the Apdf API instead and get every field as JSON — name, value in a Python-friendly shape, options, required flag and the question printed next to it — then turn a folder of filled rental applications into a CSV that flags missing answers.
Your code made the PDF.
Then it went dark.
Opened, read, signed or ignored — you never see any of it. Send the PDFs you generate as personal links, and every open, page read, comment and signature comes back to your software as a webhook. Need it signed? Same link. Same account, same API key, one more call.
API · Webhook · MCP