PagePry
Web Scraping

Web Scraping

Extract fully rendered HTML from any URL with a single API call.

The Web Scraping API is PagePry's flagship product. Send a URL and get back the fully rendered HTML, including content generated by JavaScript.

Key features

  • Full JavaScript rendering — SPAs, React apps, dynamic content — all rendered through a real browser
  • Smart readiness detection — automatically determines when a page is fully loaded, no manual wait times needed
  • Residential and datacenter proxies — bypass geo-restrictions and bot detection
  • Built-in caching — repeat requests are served instantly at zero credit cost
  • Custom cookies and headers — scrape authenticated or personalized content

Basic usage

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"}'

Response

{
  "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
  }
}

Learn more