Question

Ask a natural-language question about any URL. NeuroAPI fetches the page, runs an LLM over it, and returns the answer in the answer field.

POST/api/v1/question

Request body

FieldTypeDescription
urlrequiredstringAbsolute URL to read.
questionrequiredstringThe question to answer. Max 10,000 characters.
onlyMainContentbooleanStrip navigation, footers and boilerplate before answering.
Default: true
waitFornumberMilliseconds to wait after navigation (for JS-heavy pages).
Default: 0

Example request

bash
curl https://neuroapi.me/api/v1/question \
-H "Authorization: Bearer $NEUROAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://en.wikipedia.org/wiki/Web_scraping",
"question": "What is web scraping used for?"
}'

Example response

json
{
"success": true,
"data": {
"answer": "Web scraping is used to extract data from websites for analytics, monitoring, research, and aggregation.",
"metadata": { "sourceURL": "https://en.wikipedia.org/wiki/Web_scraping", "statusCode": 200 }
},
"creditsCharged": 5
}

Combine with other formats

You can also call /api/v1/scrape with a typed format to get the answer alongside other formats in one call:

json
{
"url": "https://example.com",
"formats": ["markdown", { "type": "question", "question": "What does this page sell?" }]
}

Cost: 5 credits per page (1 base + 4 for the LLM call).