Batch PDF URL to Markdown API & MCP Guide
Interactive drag-and-drop on PDFtoMarkdown.org is free forever inside your browser. When your Python RAG workers, Node.js backends, or Claude/Cursor agents need to ingest hundreds of remote PDF URLs automatically, call AgentAPIGate.ai’s stateless web.extract.markdown endpoint at $0.001 per document.
Convert Any Public PDF URL in 1 HTTP Call ($0.001/doc)
Powered by AgentAPIGate.ai’s SSRF-guarded web.extract.markdown endpoint: pass any arXiv paper, SEC PDF, vendor datasheet, or documentation URL and receive structured page-by-page Markdown in ~400ms without running headless browsers.
- • $0.001 / PDF ($1.00 per 1,000 PDFs · $0/mo lock-in)
- • $0.00 charged on 4xx/5xx or unreachable URLs
- • $0.25 Free Sandbox via Google OAuth or Corporate Email OTP
- • Ready for Claude Code / Cursor Remote MCP & Base USDC x402
curl -sS -X POST https://api.agentapigate.ai/v1/invoke \
-H "Authorization: Bearer $AGENTAPIGATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"endpoint":"web.extract.markdown","params":{"pdf_url":"https://arxiv.org/pdf/1706.03762"}}'import asyncio, os, httpx
PDF_URLS = [
"https://arxiv.org/pdf/1706.03762",
"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
]
async def extract_one(client: httpx.AsyncClient, pdf_url: str) -> dict:
r = await client.post(
"https://api.agentapigate.ai/v1/invoke",
headers={"Authorization": f"Bearer {os.environ['AGENTAPIGATE_API_KEY']}"},
json={"endpoint": "web.extract.markdown", "params": {"pdf_url": pdf_url}},
timeout=25.0,
)
r.raise_for_status()
return r.json()["data"]
async def main():
async with httpx.AsyncClient() as client:
docs = await asyncio.gather(*(extract_one(client, u) for u in PDF_URLS))
for d in docs:
print(d["title"], "->", d["page_count"], "pages,", d["word_count"], "words")
asyncio.run(main()){
"ok": true,
"meta": {
"request_id": "req_9f41e8c20a7b11d4",
"endpoint": "web.extract.markdown",
"format": "json",
"cost_usd": 0.001,
"tokens_est": 412,
"latency_ms": 486,
"content_trust": "external_untrusted"
},
"data": {
"url": "https://arxiv.org/pdf/1706.03762",
"title": "Attention Is All You Need",
"content_type": "application/pdf",
"page_count": 15,
"word_count": 3754,
"markdown": "# Attention Is All You Need\n\n_15 pages_\n\n## Page 1\n\n..."
}
}One API Key Across PDF Extraction, Google SERP, arXiv & 130+ Agent Tools
Sign in with Google OAuth or verified Corporate Email OTP on AgentAPIGate.ai to receive $0.25 in instant sandbox credits (250 PDF conversions), create daily-capped aag_agent_* sub-keys, or pay per call on Base Mainnet USDC via x402.