Extract

Structured JSON Extraction

The flagship feature of RenderNest. Provide a target URL and a JSON schema describing the fields and data types you require. RenderNest parses the page and returns strictly validated, typed JSON.

POST/v1/extract/jsonCost: 5 Credits

Supported Field Types

In your requested schema, assign each desired property to one of the supported types:

"string"
Text, titles, URLs
"number"
Floats, prices, ratings
"integer"
Counts, inventory, years
"boolean"
In-stock, active flags
"array"
Lists of tags or items
"object"
Nested key-value groups

Code Example

curl -X POST https://api-rendernest.duckdns.org/v1/extract/json \
  -H "Authorization: Bearer wf_live_xxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/product/123",
    "schema": {
      "title": "string",
      "price": "number",
      "currency": "string",
      "in_stock": "boolean",
      "tags": "array"
    },
    "prompt": "Extract the current discounted retail price"
  }'

Response Example

{
  "success": true,
  "request_id": "req_1725432160_3a8b7c",
  "data": {
    "url": "https://example.com/product/123",
    "extracted_data": {
      "title": "Wireless Ergonomic Mechanical Keyboard",
      "price": 149.99,
      "currency": "USD",
      "in_stock": true,
      "tags": ["keyboards", "wireless", "ergonomic", "bluetooth"]
    },
    "schema_valid": true,
    "model_used": "heuristic-local-v1"
  }
}