Grok API
https://grok.com/
Grok — xAI's conversational AI assistant (grok.com). Ask a question and get Grok's answer with the web sources and X posts it cited.
- Actions
- 1
- Category
- Ai
- Login
- Some actions
- Output
- JSON
Call the Grok API
Submit a task, then poll the job until it settles. This example runs grok_prompt.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "grok_prompt",
"credential_id": "<your-credential-id>",
"params": {
"prompt": "What is the capital of France?"
}
}'1 action on https://grok.com/
Read
Grok Prompt
grok_promptreadlogin required10 credits / callAsk Grok (grok.com, xAI) a question and get its answer with cited web sources, over the Grok Android WebSocket API. No statsig, sso-authed; fails over across leased accounts (1st→2nd→3rd) on failure with per-account audit logging. Emits one self-contained [grok-metric] line per request (account, slot, failover depth, sources, answer_complete, latency).
- prompt
- string · required
- model
- string
- timeout
- number
Grok API questions
- Is there an API for Grok?
- Grok does not offer a public data API for this, but Anakin Wire provides 1 maintained endpoint for https://grok.com/. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape Grok data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when https://grok.com/ changes its markup, Anakin updates the action.
- Do I need a Grok account?
- Some Grok actions read data that is only visible when signed in, so those need a credential you connect once. Actions marked "read" without a login requirement run anonymously.
- What does the Grok API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Ai APIs
ChatGPT
Run prompts against AI assistants
Claude
Anthropic's Claude
DeepSeek
DeepSeek chat/search
Gemini
Send a prompt, get a structured chat answer with grounding sources
Google AI
Google AI Mode - cited answers, plus Google Scholar paper search and details.
Meta AI
Meta AI — ask a question and get the answer with the web sources it cited.