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.

# Your API key will look like this:
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

POST/api/extract

Extract structured data from a webpage by specifying field names to extract.

Request Body

ParameterTypeRequiredDescription
urlstringYesThe URL of the webpage to extract data from. Must be a valid URL format.
fieldsstringYesComma-separated list of field names to extract (e.g., "title, price, description"). Spaces in field names will be replaced with underscores.
stealth_plusbooleanNoEnable 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

400 Bad Request

Missing required fields (url, fields), invalid URL format, or no valid fields provided

{ "error": "Missing required fields: url, schemaName, fields" }
500 Internal Server Error

Scraping failed, extraction error, or other server-side issue

{ "error": "BRIGHT_DATA_API_KEY is not configured" }

Rate Limits

Rate limits are based on your plan tier and are calculated per minute.

PlanRequests/MinuteConcurrent Requests
Free101
Starter605
Pro12010
Business30025