80trust / 100

Pdf Info

by Mart402 in Documents & files

x402 APIPassing, checked 14 min ago

PDF facts before you pay for parsing: page count, metadata, per-page text volume, scanned-or-not estimate. 0.001/call.

POST https://mart402.com/v1/pdf-info

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
429 ms typical, 429 ms slowest 5%
Last check
14 min ago
Next check
in 14 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://mart402.com/v1/pdf-info" \
  -H "content-type: application/json" \
  -d '{"url":"https://mart402.com/samples/assets/doc.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%2Fmart402.com%2Fv1%2Fpdf-info
const res = await pay("https://mart402.com/v1/pdf-info", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://mart402.com/samples/assets/doc.pdf"}),
});
console.log(await res.json());

Example input

{
  "url": "https://mart402.com/samples/assets/doc.pdf"
}

Example output

{
  "encrypted": false,
  "likely_scanned": true,
  "metadata": {
    "producer": "pypdf"
  },
  "note": "SAMPLE RESPONSE (recorded from a real production run). Served free at /samples/{product} so you can see the exact response shape before paying. No payment was taken.",
  "ok": true,
  "pages": 1,
  "sample": true,
  "scanned_note": "likely_scanned means little embedded text; use /v1/parse (hallucination-guarded OCR) to read it",
  "text_chars_per_page": [
    0
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
14 min agoPassed402788 ms$0.001
5 h agoPassed402429 ms$0.001