AnswerLine Sign in Start free

Engines

Grok API

Grok's answer with its cited sources, including X posts, and the searches it ran.

Coming soon. The endpoint and fields below are the documented contract; requests are not accepted yet.

Price

Not published yet.

Endpoint

POST /v1/monitor/grok

Or queue it with POST /v1/async/task and taskType: "GROK".

Request

curl -X POST "https://api.answerline.dev/v1/monitor/grok" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Which electric car brands do people recommend?","country":"US"}'

Request options

* required. Nested fields are written with a dot, e.g. include.markdown.

FieldTypeDescription
prompt * string The prompt to send to Grok
country * string Country/region code for localized response
include object Optional flags for including additional response formats
include.markdown boolean Include markdown-formatted response in the result
include.html boolean Include HTML-formatted response in the result
include.rawResponse boolean Include raw streaming response events
state string State code for sub-country geo-targeting (e.g., "CA"). Only valid with country "US".

What you get back

Field in resultTypeDescription
textstringGrok's response text
markdownstringGrok's response formatted in Markdown (included when include.markdown is true)
sourcesobject[]Array of sources referenced in the response with enhanced metadata
searchQueriesstring[]Array of search queries Grok used to gather information for the response
modelstringThe model identifier used to generate the response

Full field definitions are in the API reference.

Other engines