Track Grok answers

Get structured output from Grok for any prompt in supported regions: the answer and the sources it cites, X/Twitter posts included

post/v1/monitor/grok

Request

  • Base URL: https://api.answerline.dev
  • URL: https://api.answerline.dev/v1/monitor/grok
  • Auth: HTTP bearer

Request body

promptstring required

Prompt submitted to Grok

countrystring required

Code of the country or region used to localize the response

statestring

State code for targeting below the country level (e.g., "CA"; "DC" included). Allowed only when country is "US". Served for Gemini; on a model that cannot place a state yet, a request that includes it is rejected as a validation error and is not charged.

Example request

{
  "prompt": "Which laptop should I buy for software development?",
  "country": "US",
  "include": {
    "markdown": true,
    "html": true,
    "rawResponse": true
  },
  "state": "CA"
}

Response

Grok monitoring result (success)

successboolean required

Example response

{
  "success": true,
  "result": {
    "text": "Drawing on a live web search, these monitors stand out for programming work...",
    "html": "https://files.answerline.dev/html/c45a5081-808d-4ed3-9c86-e4baf16c8ab8/1/page-1.html",
    "sources": [
      {
        "position": 1,
        "url": "https://techcrunch.com/programming-laptops",
        "label": "TechCrunch",
        "description": "Top monitors for coding and development",
        "preview": "A good coding laptop needs plenty of memory and a fast multi-core CPU...",
        "searchEngineText": "Best Coding Laptops of 2025",
        "siteName": "TechCrunch",
        "metadataTitle": "The Complete Coding Laptop Handbook",
        "creator": "Tech Team",
        "image": "https://techcrunch.com/preview.jpg",
        "favicon": "https://techcrunch.com/favicon.ico"
      }
    ],
    "searchQueries": [
      "coding laptop recommendations 2026",
      "leading laptops for developers 2026"
    ],
    "model": "grok-4-auto",
    "markdown": "Drawing on a live web search, these monitors stand out for programming work..."
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.