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
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
| Field | Type | Description |
|---|---|---|
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 result | Type | Description |
|---|---|---|
text | string | Grok's response text |
markdown | string | Grok's response formatted in Markdown (included when include.markdown is true) |
sources | object[] | Array of sources referenced in the response with enhanced metadata |
searchQueries | string[] | Array of search queries Grok used to gather information for the response |
model | string | The model identifier used to generate the response |