80trust / 100

Pdf Form Fields

by Tanod pdfpeek in Documents & files

x402 APIPassing, checked 3 h ago

pdfpeek (Tanod) PDF form fields: names, types, values, options and required flags.

POST https://tanod.dev/v1/pdf/form-fields

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
272 ms typical, 1.0 s slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://tanod.dev/v1/pdf/form-fields' \
  -H 'content-type: application/json' \
  --data-raw '{"url":"https://tanod.dev/samples/form-sample.pdf"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fpdf%2Fform-fields
const res = await pay("https://tanod.dev/v1/pdf/form-fields", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"url\":\"https://tanod.dev/samples/form-sample.pdf\"}",
});
console.log(await res.json());

Example input

{
  "url": "https://tanod.dev/samples/form-sample.pdf"
}

Example output

{
  "field_count": 6,
  "fields": [
    {
      "description": "Your full name",
      "name": "full_name",
      "page": 1,
      "read_only": false,
      "required": true,
      "type": "text",
      "value": ""
    },
    {
      "description": "Your email address",
      "name": "email",
      "page": 1,
      "read_only": false,
      "required": false,
      "type": "text",
      "value": ""
    },
    {
      "description": "Subscription plan",
      "name": "plan",
      "options": [
        "basic",
        "pro"
      ],
      "page": 1,
      "read_only": false,
      "required": false,
      "type": "radio",
      "value": null
    },
    {
      "description": "Country",
      "list_type": "combo",
      "name": "country",
      "option_labels": [
        "Australia",
        "New Zealand",
        "Philippines"
      ],
      "options": [
        "AU",
        "NZ",
        "PH"
      ],
      "page": 1,
      "read_only": false,
      "required": false,
      "type": "choice",
      "value": null
    },
    {
      "description": "Send me the newsletter",
      "name": "subscribe",
      "on_value": "Yes",
      "page": 1,
      "read_only": false,
      "required": false,
      "type": "checkbox",
      "value": false
    },
    {
      "description": "Anything else we should know",
      "multiline": true,
      "name": "notes",
      "page": 1,
      "read_only": false,
      "required": false,
      "type": "text",
      "value": ""
    }
  ],
  "has_form": true,
  "input_bytes": 4057,
  "input_pages": 1,
  "need_appearances": false,
  "operation": "form-fields",
  "truncated": false,
  "untrusted_content": true,
  "xfa": false
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed4021.0 s$0.005
7 h agoPassed402271 ms$0.005
11 h agoPassed4021.0 s$0.005
15 h agoPassed402257 ms$0.005
19 h agoPassed402274 ms$0.005
22 h agoPassed402272 ms$0.005
26 h agoPassed402270 ms$0.005
29 h agoPassed402269 ms$0.005
33 h agoPassed402267 ms$0.005
36 h agoPassed402277 ms$0.005
40 h agoPassed402275 ms$0.005
44 h agoPassed402265 ms$0.005
2 days agoPassed402272 ms$0.005
2 days agoPassed402278 ms$0.005
2 days agoPassed402480 ms$0.005