Extract
Turn any page into typed JSON. Pass a JSON Schema or a plain-English prompt and get back exactly the fields you asked for.
POST
/api/v1/extractRequest body
| Field | Type | Description |
|---|---|---|
| urlrequired | string | Absolute URL to extract from. |
| schema | object | JSON Schema describing the output shape (preferred for stable extractions). At least one of schema or prompt is required. |
| prompt | string | Natural-language extraction prompt. At least one of schema or prompt is required. |
| systemPrompt | string | Optional system instructions for the extraction model. |
Example
bash
curl https://neuroapi.me/api/v1/extract \ -H "Authorization: Bearer $NEUROAPI_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://news.ycombinator.com", "prompt": "List the top 5 story titles and their points" }'Example response
json
{ "success": true, "data": { "title": "Ask HN: Show HN", "stories": [ { "title": "Launch HN: Acme AI", "points": 342 } ] }, "creditsCharged": 2}Cost: 2 credits per request.