Glyphcall
Web, documents and search3 free calls over HTTPFrom $0.002 per call · failed calls are never charged

PDF to text: extract text from a PDF URL

$0.002 per call with a key ($0.005 paid per call from a wallet) · failed calls are never charged · no account needed: a card key or USDC

PDF to text: extract the text of each page of a public PDF by URL (up to 10 MB), with page count, title and author; scanned PDFs without a text layer fail uncharged. Use to read reports, papers, invoices and filings into an LLM, RAG or an agent's context.

Run it free (3 free calls) Buy credits by card (from $1) Example result (JSON)

$0.002 per call with prepaid credits: $1 by card pays for 500 calls, with no account and no subscription.

Try it with your own inputs

Absolute public http(s) URL of the PDF. With no input at all this reads the published sample (the Bitcoin white…

Uses one of your 3 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
url (required)stringAbsolute public http(s) URL of the PDF. With no input at all this reads the published sample (the Bitcoin white paper); send url for your own PDF.
firstPageintegerFirst page to read (default 1)
pagesintegerHow many pages to read (1-200, default 20)
maxCharsintegerMaximum characters of text returned across all pages (1000-200000, default 50000)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/pdf/to-text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf"

Node.js

const r = await fetch("https://glyphtools.com/pdf/to-text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf", {
  headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header

Python

import requests

r = requests.get("https://glyphtools.com/pdf/to-text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()

Or one of your 3 free calls, no key — the same request with &trial=1 on the end:

curl "https://glyphtools.com/pdf/to-text?url=https%3A%2F%2Fbitcoin.org%2Fbitcoin.pdf&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "url": "https://bitcoin.org/bitcoin.pdf",
  "title": null,
  "author": null,
  "totalPages": 9,
  "firstPage": 1,
  "pagesRead": 1,
  "chars": 46,
  "truncated": true,
  "pages": [
    {
      "page": 1,
      "chars": 46,
      "text": "Bitcoin: A Peer-to-Peer Electronic Cash System"
    }
  ]
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is pdf_to_text, and the first 10 successful calls are free:

https://glyphtools.com/mcp

Related tools