Extract PDF Text
Download a remote PDF and extract text with metadata
POST
3 credits
/v1/scrape/pdf
curl -X POST "https://scrape.toolkitapi.io/v1/scrape/pdf" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_KEY" \
-d '{"url":"https://toolkitapi.io/report.pdf"}'
import httpx
resp = httpx.post(
"https://scrape.toolkitapi.io/v1/scrape/pdf",
json={"url":"https://toolkitapi.io/report.pdf"},
)
print(resp.json())
const resp = await fetch("https://scrape.toolkitapi.io/v1/scrape/pdf", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"url":"https://toolkitapi.io/report.pdf"}),
});
const data = await resp.json();
console.log(data);
# See curl example
Response
200 OK
{
"url": "https://toolkitapi.io/report.pdf",
"text": "..."
}
Try It Live
Live Demo
Response
Description
Download a remote PDF and extract text with metadata
How to Use
1
1. POST a public PDF URL. 2. Read extracted text, page data, and metadata.
About This Tool
Extracts text and document metadata from a PDF URL.
Start using Extract PDF Text now
Get your free API key and make your first request in under a minute.