Prerequisites
You need a PagePith account and an API key. Create a key in the PagePith dashboard.Scrape a page
1
Set your API key
Store the key in an environment variable.
2
Send a request
Call the synchronous scrape endpoint with a public URL.
3
Use the result
Read
markdown for model-ready text or html when you need the extracted markup.A
200 response means the page was converted successfully. Each successful scrape consumes one credit.Next steps
Scraping options
Control caching, timeouts, and dynamic content.
API reference
Open the interactive endpoint reference.