Quickstart
Make your first API request in under 5 minutes.
1. Get your API key
Sign up at console.pagepry.com and create an application. Each application gets its own API key.
Your API key looks like pp_live_... and can be found under Applications > API Keys in the dashboard.
2. Make your first request
Send a POST request to the scrape endpoint with a URL:
curl -X POST https://api.pagepry.com/v1/scrape \
-H "x-api-key: pp_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'const response = await fetch('https://api.pagepry.com/v1/scrape', {
method: 'POST',
headers: {
'x-api-key': 'pp_live_your_key_here',
'Content-Type': 'application/json',
},
body: JSON.stringify({ url: 'https://example.com' }),
});
const data = await response.json();
console.log(data.html);import requests
response = requests.post(
'https://api.pagepry.com/v1/scrape',
headers={'x-api-key': 'pp_live_your_key_here'},
json={'url': 'https://example.com'},
)
data = response.json()
print(data['html'])3. Inspect the response
A successful response includes the rendered HTML and metadata:
{
"success": true,
"html": "<!DOCTYPE html><html>...</html>",
"metadata": {
"statusCode": 200,
"url": "https://example.com",
"resolvedUrl": "https://example.com/",
"contentType": "text/html; charset=utf-8",
"renderStrategy": "ssr-early-return",
"loadTimeMs": 847,
"fromCache": false
}
}Key fields:
html— the fully rendered page content, including JavaScript-rendered elementsresolvedUrl— the final URL after any redirectsrenderStrategy— how PagePry determined the page was ready (e.g.,ssr-early-returnfor server-rendered pages,network-idlefor SPAs)fromCache— iftrue, this result was served from cache and cost 0 credits
Next steps
- Authentication — API key management and best practices
- Web Scraping — advanced options like proxies, cookies, and wait strategies
- Errors — error codes and how to handle them
- Credits — how the credit system works

