Quick Start
Get started with PageData.to in under 5 minutes
You'll need an API key to get started. Sign up for a free account to get yours.
1. Get Your API Key
Sign up for a free account and grab your API key from the dashboard.
pd_live_1234567890abcdef
2. Make Your First Request
Use our simple API to extract data from any webpage by specifying field names.
curl -X POST https://api.pagedata.to/v1/extract \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/product",
"fields": "product_title, price, rating",
"stealth_plus": false
}'3. Get Your Data
Receive clean, structured JSON back instantly.
{
"success": true,
"data": {
"product_title": "Sony WH-1000XM5 Wireless Headphones",
"price": "$349.99",
"rating": "4.7 out of 5 stars"
},
"usage": {
"prompt_tokens": 1234,
"completion_tokens": 56,
"total_tokens": 1290
}
}API Reference
Complete reference for all PageData.to endpoints
/api/extractExtract structured data from a webpage by specifying field names to extract.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | The URL of the webpage to extract data from. Must be a valid URL format. |
| fields | string | Yes | Comma-separated list of field names to extract (e.g., "title, price, description"). Spaces in field names will be replaced with underscores. |
| stealth_plus | boolean | No | Enable enhanced stealth mode using BrightData for difficult-to-scrape sites. Default: false (uses RunPod). |
Note: The API cleans and processes HTML content, limiting it to 16,000 characters. Scripts, styles, media elements, and other non-content elements are automatically removed.
Response
{
"success": true,
"data": {
// Your extracted data as key-value pairs
// Field names match what you specified in the request
// All values are returned as strings (optional/nullable)
},
"usage": {
"prompt_tokens": 1234,
"completion_tokens": 56,
"total_tokens": 1290
}
}Error Responses
Missing required fields (url, fields), invalid URL format, or no valid fields provided
Scraping failed, extraction error, or other server-side issue
Rate Limits
Rate limits are based on your plan tier and are calculated per minute.
| Plan | Requests/Minute | Concurrent Requests |
|---|---|---|
| Free | 10 | 1 |
| Starter | 60 | 5 |
| Pro | 120 | 10 |
| Business | 300 | 25 |