PDF Document URL to Clean LLM Markdown Extractor
Fetch any public PDF URL (SSRF-guarded, up to 10 MB) and convert multi-page PDF documents, papers, filings, and manuals into clean structured Markdown.
curl -sG "https://api.agentapigate.ai/v1/docs/pdf/to_markdown" \ --data-urlencode "pdf_url=https://arxiv.org/pdf/1706.03762.pdf" \ --data-urlencode "max_chars=18000" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# PDF Document URL to Clean LLM Markdown Extractor (`docs.pdf.to_markdown`) **Title**: Provided proper attribution is provided, Google hereby grants permission to **URL**: https://arxiv.org/pdf/1706.03762 # Provided proper attribution is provided, Google hereby grants permission to _15 pages_ ## Page 1 Provided proper attribution is provided, Google hereby grants permission to reproduce the tables and figures in this paper solely for use in journalistic or scholarly works. Attention Is All You Need Ashish Vaswani∗ Google Brain avaswani@google.com Noam Shazeer∗ Google Brain noam@google.com Niki Parmar∗ Google Research nikip@google.com Jakob Uszkoreit∗ Google Research usz@google.com Llion Jones∗ Google Research llion@google.com Aidan N. Gomez∗ † University of Toronto aidan@cs.toronto.edu Łukas…
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:docs.pdf.to_markdown · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| pdf_url | string | optional | https://arxiv.org/pdf/1706.03762.pdf | Public http/https URL of the PDF document to convert to Markdown |
| url | string | optional | — | Optional alias for pdf_url |
| max_chars | number | optional | 18000 | Maximum Markdown characters returned (1000-24000) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | docs_pdf_to_markdown | OAuth 2.1 Hub & /mcp/search |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 442 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 9426t → 201t (-98%) | Partner credit: eligible |
More Search & Web Real-Time APIs
Real-time Google organic search results with ranked URLs, titles, snippets, and knowledge metadata.
Search breaking news articles and publisher headlines across Google News with unwrapped publisher article URLs, publisher_name, publisher_domain, and publisher_url.
Search high-resolution web images with source page URLs, dimensions, and alt titles.
Sub-100ms Google Suggest autocomplete queries for intent discovery and agent query expansion.
Fetch surging Google Search topics and approximate search traffic volume by country.
Compare search interest over time across up to 5 keywords using Google Trends data.
Frequently Asked Questions
How do I call PDF Document URL to Clean LLM Markdown Extractor (docs.pdf.to_markdown) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/docs/pdf/to_markdown with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool docs_pdf_to_markdown on https://mcp.agentapigate.ai/mcp.
What does docs.pdf.to_markdown cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on docs.pdf.to_markdown?
Passing ?format=md transforms the response into normalized Markdown (~201 tokens vs ~9426 raw tokens, saving 98% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only search endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["search"], optional allowed_endpoints: ["docs.pdf.to_markdown"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.