Skip to main content

Extract

Extract structured data from URL or text using a schema

$0.02
per call
POST /extract Web Intelligence

Try It

curl Example

curl -X POST https://api.aipaygen.com/extract \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "url": "string OR text: string",
  "fields": ["field1"]
}'

Python Example

import requests

resp = requests.post(
    "https://api.aipaygen.com/extract",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
    "url": "string OR text: string",
    "schema": {
        "field": "description"
    },
    "fields": [
        "field1"
    ]
}
)
print(resp.json())

Response Format

{
  "result": "<Extract output>",
  "_meta": {
    "endpoint": "/extract",
    "model": "claude-sonnet-4-20250514",
    "cost_usd": 0.02
  }
}

Related Tools

Classify
$0.01
Keywords
$0.01
Analyze
$0.02

Get API Key — From $1

$0.25 trial credits free. ~40 AI calls. No subscription.

Get Started

Or install via MCP: pip install aipaygen-mcp