Grok answers API

aivisibilityskill returns Grok's answer to a question as JSON, from xAI's Grok model with its own search, which covers the web and posts on X: the brands it names in order and whether it recommends them, every citation with its source type, and the raw response with its SHA-256 hash. It's asked through the API, not the Grok app, costs $0.20 an answer, and failed answers are never charged.

Asks
xAI's Grok model, with its own web and X search
Returns
The answer, brands in order, every citation, facts and the raw response
Countries
Any of 250 countries and territories, told to the model
Price per answer
$0.20 (live); half for a reused answer
Speed
Live only, one call per answer
Try it
Free sandbox keys and 500 free credits, no card
Request
curl https://api.aivisibilityskill.com/v1/checks \
  -H "Authorization: Bearer $AIV_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "questions": ["best CRM for early-stage startups"],
    "engines": ["grok"],
    "locale": "en-US",
    "mode": "live",
    "wait": 60
  }'
Response, shortened200
{
  "status": "succeeded",
  "credits": { "quoted": 200, "charged": 200 },
  "answers": [
    {
      "engine": "grok",
      "surface": "api",
      "question": "best CRM for early-stage startups",
      "locale": "en-US",
      "has_ai_answer": true,
      "brands": [
        { "name": "HubSpot", "rank": 1, "recommended": true,
          "sentiment": "positive", "quote": "safest default for most startups" },
        { "name": "Folk", "rank": 6, "recommended": false,
          "sentiment": "positive",
          "quote": "Great for relationship-driven or LinkedIn-heavy founder work" }
      ],
      "facts": [
        {
          "brand": "HubSpot",
          "type": "price",
          "value": "~$20/seat/mo",
          "price": { "amount": 20, "currency": "USD", "period": "month",
            "per_user": true }
        }
      ],
      "citations": [
        { "position": 1, "domain": "stackbytrade.com", "source_type": "other" },
        { "position": 2, "domain": "dupple.com", "source_type": "other" }
      ],
      "receipt": { "sha256": "…", "url": "…/receipt" }
    }
  ]
}
Fig. 1One live Grok answer for “best CRM for early-stage startups”. The values are the real ones the API returned on October 29, 2026, shortened to two brands and two citations. Every field is in the API reference.

What the Grok API returns

Grok's answers are long and list many options. Each one comes back read the same way as the other engines: brands in order with whether Grok actually recommends them, every citation typed, and the raw response kept as proof.

What each answer includes
FieldWhat it holds
has_ai_answerfalse when the engine showed no AI answer (for example, no AI Overview for that query).
textThe full answer, as markdown.
brands[].name, rankEvery brand the answer names, in order of first mention (rank 1 = named first).
brands[].recommended, sentiment, quoteWhether it recommends the brand, the tone (positive, neutral, negative) and the exact words.
citations[].position, url, domain, titleEvery source the answer cites, in the order it cites them.
citations[].source_typeWhat kind of site each source is: brand_owned, review_site, media, reddit, youtube, wikipedia, forum, social, blog_platform, marketplace, gov_edu or other.
facts[]Claims about each brand (price, plan, free tier, platform, feature) with the quote they came from; prices parsed into amount, currency and period.
model, locale, collected_atThe model the engine reported, the country and language asked from, and when.
receipt.sha256, receipt.urlThe engine's raw response, stored as returned, and its SHA-256 hash.

Unlike the other engines, Grok's search can read posts on X as well as web pages. Every citation comes back with its URL and a source type, and X posts are typed as social, so you can see when an answer about a brand leans on what people post rather than on articles. For the CRM question, all eight of Grok's sources were web pages: roundups and review sites such as stackbytrade.com, dupple.com and whichcrms.com.

One question, three different answers

We asked “best CRM for early-stage startups” on each engine from the US on the same morning. Each card is what the API returned: how the answer opens, the brands it named in order, and the first sites it cited.

  • Grokapi

    best CRM for early-stage startups

    HubSpot, Attio, Pipedrive, and Zoho CRM are the most frequently recommended options for early-stage startups in 2026.

    Names, in order

    1. HubSpot
    2. Attio
    3. Pipedrive
    4. Zoho CRM
    5. Bigin named, not recommended
    6. Folk named, not recommended
    7. Freshsales named, not recommended

    and 2 more

    Cites 8 sources, starting with

    stackbytrade.comdupple.comkurums.com
  • ChatGPTapp

    best CRM for early-stage startups

    My recommendation: start with Attio if you're building a tech startup, or HubSpot if you want a free, all-purpose sales and marketing platform.

    Names, in order

    1. Attio
    2. HubSpot
    3. Pipedrive
    4. Zoho CRM
    5. Close

    Cites 10 sources, starting with

    hackceleration.comsoftwarecompare.netstackbytrade.com
    ChatGPT API
  • Perplexityapi

    best CRM for early-stage startups

    The best CRM for an early-stage startup is usually the simplest one your team will actually use …

    Names, in order

    1. HubSpot
    2. Less Annoying CRM
    3. Attio
    4. Pipedrive
    5. Zoho
    6. Zoho Bigin
    7. Salesforce Starter

    and 3 more

    Cites 17 links from 15 sites, starting with

    techradar.comsalesforce.comslack.com
    Perplexity API
Fig. 2Real answers to “best CRM for early-stage startups” (en-US), collected October 29, 2026. Openings shortened where marked with …; brands are listed as the API read them.
Where each answer ranks each brand (1 = named first; – = not named)
Brand
HubSpot121
Attio213
Pipedrive334
Zoho CRM445
Bigin5 (not recommended)– not named6
Folk6 (not recommended)– not named9
Freshsales7 (not recommended)– not named– not named
Close– not named5– not named
Less Annoying CRM– not named– not named2
Salesforce Starter– not named– not named7

All three name HubSpot, Attio and Pipedrive. Grok names nine brands but recommends only four; the other five are listed as alternatives, and the API's recommended field tells them apart. Grok's sources don't overlap with Perplexity's at all, and it shares just stackbytrade.com and dupple.com with ChatGPT.

Grok tends to list alternatives after its top picks. For the CRM question it named nine brands but recommended four: HubSpot, Attio, Pipedrive and Zoho CRM. Bigin, Folk, Freshsales, Salesflare and Copper were mentioned without being recommended. A simple mention count would treat all nine the same. The API returns recommended and sentiment for every brand, so a tracker can tell a recommendation from a passing mention.

Track brand mentions in Grok

Grok is the most expensive engine to ask because its search costs the most to run, so most teams track it on fewer questions or weekly. Put a brand, its competitors and its buyers' questions in a project with a schedule, then read how often Grok names and recommends the brand, competitor share, the sites it cites and the history. A webhook tells your server when each run is done.

Call the Grok API from TypeScript or Python

The SDKs wrap the same request, retry safely without charging twice, and wait for the answers for you. Free sandbox keys (aiv_test_…) return realistic sample answers, so you can build the whole feature before spending a credit.

TypeScript (npm install @aivisibilityskill/sdk)

import { Aiv } from "@aivisibilityskill/sdk";

const aiv = new Aiv({ apiKey: process.env.AIV_KEY! });

const job = await aiv.checks.create({
  questions: ["best CRM for early-stage startups"],
  engines: ["grok"],
  locale: "en-US",
});
const done = await aiv.jobs.wait(job.id);

for (const answer of done.answers ?? []) {
  console.log(answer.brands?.map((b) => `${b.rank}. ${b.name}`));
  console.log(answer.citations?.map((c) => c.domain));
}

Python (pip install aivisibilityskill)

import os
from aivisibilityskill import Aiv

aiv = Aiv(api_key=os.environ["AIV_KEY"])

job = aiv.checks.create(
    ["best CRM for early-stage startups"],
    engines=["grok"],
    locale="en-US",
)
done = aiv.jobs.wait(job["id"])

for answer in done["answers"]:
    print([(b["rank"], b["name"]) for b in answer["brands"]])
    print([c["domain"] for c in answer["citations"]])

For thousands of questions, send them as one batch of up to 20,000 answers and get one webhook when it's done. Full guides: SDKs, API reference, OpenAPI 3.1 spec.

Prefer a ready-made tool? llm-brand-tracker on GitHub tracks your brand against competitors on all 8 engines every week, free on GitHub Actions. Free and MIT licensed.

Grok API pricing

You pay per answer, in credits. Grok is asked live, one call per answer, so there's one speed. A dollar buys 1,000 credits on a pack; monthly and volume plans include more. An answer reused from a recent identical one (max_age_hours) costs half, and an answer that fails costs nothing.

Grok answer prices
SpeedReadyCreditsPay as you goBusiness and Enterprise plansReused answer
LiveUsually under a minute200$0.20$0.125100 credits

Every account gets the same API and every engine, starting with 500 free credits and no card. Volume plans start at $500 a month for 750,000 credits, with invoicing and a 99.5% uptime commitment: see volume plans.

Countries and languages

Grok is asked through its API, so it isn't answering from a location. For any locale other than en-US, it's told which country the buyer is in, for any of 250 countries and territories, and it answers in the question's language (de-DE, pt-BR, ja-JP…). The app and search engines answer from the country itself: ChatGPT in 192, Gemini, Google AI Overviews and AI Mode in 240. GET /v1/locales lists every pair for free.

Questions

Is this the Grok app's answer?

No. It's xAI's Grok model through the API with its own search on, asked as a fresh conversation. The Grok app on X and grok.com can answer differently, depending on a person's settings and history.

Does Grok search X?

Its search can read posts on X as well as web pages. X posts come back as citations with the source type social, so you can see when an answer relies on them.

Why does Grok cost more than other engines?

Its search costs the most to run, so each answer is 200 credits: $0.20 at pay-as-you-go rates and about $0.125 on volume plans. A recent identical answer reused with max_age_hours costs half, and failed answers are never charged.

Does it tell me which brands Grok recommends, not just mentions?

Yes. Every brand comes with recommended (true or false), its sentiment and the exact words Grok used. In our CRM example Grok named nine brands and recommended four.

Does it return Grok's citations?

Yes. Every citation comes back in order, with its URL, domain, page title and a source type such as review_site, media, social or brand_owned.

Can I ask Grok from another country?

Yes. For any locale other than en-US, Grok is told which country the buyer is in, for any of 250 countries and territories, and it answers in the question's language.

Build on Grok answers. We'll keep them coming.

Start with a free sandbox key and 500 credits. When your product grows, volume plans and an uptime commitment are a reply away.

500 free credits, no card. Sign in with Google or email.