Skip to main content
This quickstart returns readable Markdown and HTML for a public URL.

Prerequisites

You need a PagePith account and an API key. Create a key in the PagePith dashboard.
Copy a new API key when it is created. PagePith does not display the full key again. Keep it out of client-side code and source control.

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.