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/extract

Request body

FieldTypeDescription
urlrequiredstringAbsolute URL to extract from.
schemaobjectJSON Schema describing the output shape (preferred for stable extractions). At least one of schema or prompt is required.
promptstringNatural-language extraction prompt. At least one of schema or prompt is required.
systemPromptstringOptional 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.