# Grokipedia API

Grokipedia is an online encyclopedia whose articles are written by xAI's Grok. `article` reads one article by its page link and returns it as one object.

Pass an article link such as `https://grokipedia.com/page/Mount_Everest` as `url`. `id` is the article name, the part of the link after `page/`. `text` is the article as plain text, without the read-aloud options and the “Fact-checked by Grok” line at the top of the page. `table_of_contents` lists section titles in page order, `references` comes from the references section at the bottom, and `links` are links in the text to other Grokipedia articles. An article that does not exist returns an empty result and is not charged.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "grokipedia", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/grokipedia-api](https://everyinfra.com/en/grokipedia-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### article — Article details
Read one Grokipedia article from its page link (`url`). The object has the full text as plain text, the table of contents, the references with title and link, and the links in the text to other Grokipedia articles. Images, edit history, the fact-check time and page HTML are not included.
- Sync delivery · Price: $1.19 per 1,000 requests
- Parameters:
  - `url` (required): Grokipedia article link, such as `https://grokipedia.com/page/Mount_Everest`.
- Returns fields: id, title, url, text, table_of_contents, references, links, platform
- Capability page: [https://everyinfra.com/en/grokipedia-api/article](https://everyinfra.com/en/grokipedia-api/article?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/grokipedia-api/article.md)

## Grokipedia API questions

### What can I retrieve with the Grokipedia API?

Set `platform` to `grokipedia`. The current catalog lists article details. These action names identify different Grokipedia objects or views; they are not interchangeable search modes.

### Which input starts the Grokipedia `article` request?

Grokipedia article link, such as `https://grokipedia.com/page/Mount_Everest`. Send it as `url` inside `params`.

### Which fields can Grokipedia `article` return?

Its declared schema includes `title`, `text`, `table_of_contents`, and `references`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Grokipedia action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=grokipedia
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
