PDF Form Filling API
Send a PDF form and the values by field name, get the filled PDF back — checkboxes ticked, totals recalculated, flattened on request. Made for applications and contracts.
- Free plan
- No credit card
Request
curl -X POST https://apdf.io/api/pdf/form/fill \
-H "Authorization: Bearer TOKEN" \
-d file="FILE_URL" \
-d fields[0][name]="full_name" \
-d fields[0][value]="Jane Doe" \
-d fields[1][name]="contact" \
-d fields[1][value]="Email" \
-d fields[2][name]="newsletter" \
-d fields[2][value]="true"
const data = new FormData();
data.append('file', 'FILE_URL');
data.append('fields[0][name]', 'full_name');
data.append('fields[0][value]', 'Jane Doe');
data.append('fields[1][name]', 'contact');
data.append('fields[1][value]', 'Email');
data.append('fields[2][name]', 'newsletter');
data.append('fields[2][value]', 'true');
fetch('https://apdf.io/api/pdf/form/fill', {
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/fill', [
'headers' => [
'Authorization' => 'Bearer TOKEN'
],
'form_params' => [
'file' => 'FILE_URL',
'fields[0][name]' => 'full_name',
'fields[0][value]' => 'Jane Doe',
'fields[1][name]' => 'contact',
'fields[1][value]' => 'Email',
'fields[2][name]' => 'newsletter',
'fields[2][value]' => 'true'
]
]);
$body = $response->getBody();
echo json_encode($body->getContents());
require 'rest-client'
response = RestClient.post(
'https://apdf.io/api/pdf/form/fill',
{
'file' => 'FILE_URL',
'fields[0][name]' => 'full_name',
'fields[0][value]' => 'Jane Doe',
'fields[1][name]' => 'contact',
'fields[1][value]' => 'Email',
'fields[2][name]' => 'newsletter',
'fields[2][value]' => 'true'
},
{
Authorization: "Bearer TOKEN"
}
)
puts response.body
import requests
response = requests.post(
'https://apdf.io/api/pdf/form/fill',
headers = {
'Authorization': 'Bearer TOKEN'
},
data = {
'file': 'FILE_URL',
'fields[0][name]': 'full_name',
'fields[0][value]': 'Jane Doe',
'fields[1][name]': 'contact',
'fields[1][value]': 'Email',
'fields[2][name]': 'newsletter',
'fields[2][value]': 'true'
}
)
print(response.text)
import (
"fmt"
"github.com/go-resty/resty/v2"
)
func main() {
client := resty.New()
data := map[string]string{
"file": "FILE_URL",
"fields[0][name]": "full_name",
"fields[0][value]": "Jane Doe",
"fields[1][name]": "contact",
"fields[1][value]": "Email",
"fields[2][name]": "newsletter",
"fields[2][value]": "true"
}
resp, _ := client.R().
SetFormData(data).
SetHeader("Authorization", "Bearer TOKEN").
Post("https://apdf.io/api/pdf/form/fill")
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")
.add("fields[0][name]", "full_name")
.add("fields[0][value]", "Jane Doe")
.add("fields[1][name]", "contact")
.add("fields[1][value]", "Email")
.add("fields[2][name]", "newsletter")
.add("fields[2][value]", "true")
.build();
Request request = new Request.Builder()
.url("https://apdf.io/api/pdf/form/fill")
.addHeader("Authorization", "Bearer TOKEN")
.post(formBody)
.build();
Response response = client.newCall(request).execute();
System.out.println(response.body().string());
}
}
Send the values.
Get the form back.
Each value lands in its field, shown in the field's own format.
Calculated fields such as totals are updated right after.
"Jane Doe"
"Email"
true
flatten=1 and the answers become part of the page, so nobody can change them later.
- text
- Any text, and an empty value clears it
- checkbox
- true or false, or one option of a group
- radio
- One of its options
- combobox
- One option, any text if it is editable
- listbox
- One option, or a list if multi-select
- signature
- Not fillable, like buttons and read-only fields
No more retyping.
Keep the PDF forms your customers, partners and authorities expect, and fill them from the data you already have.
Prefilled applications
Put the name, address and plan you already know into an application, so your customer only adds the rest.
Official forms as they are
Fill tax, customs or HR forms published as PDFs without rebuilding them as HTML or redrawing a single box.
Order forms with totals
Fill in quantities and prices, and the form's own total fields add up the way they do in a PDF reader.
Final copies
Flatten the form before you archive or send it, so the answers are part of the page instead of editable fields.
Fill forms from anywhere.
Fill forms with the data your other tools already hold.
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/fill
Pick the action in any Zap and map files from earlier steps. No code and no servers to run.
Fill PDF Form
Add the Apdf node to any workflow, on n8n Cloud or self-hosted, and chain it with your automation.
Fill PDF form
Let Claude, ChatGPT, Gemini or your own agent run it through the MCP server, on any paid plan.
fill-pdf-form
1,000 filled forms
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.
Filling 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