> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Wikipedia

> Free encyclopedia API providing article summaries, full content, and metadata across millions of topics in multiple languages.

Free encyclopedia API providing article summaries, full content, and metadata across millions of topics in multiple languages. Best for general knowledge lookups, fact verification, and providing background context on people, places, events, and concepts. The go-to reference when a workflow needs authoritative, crowd-sourced knowledge without domain specialization.

1 example endpoint available through Lava's AI Gateway. See the [Wikipedia API docs](https://www.mediawiki.org/wiki/API:REST_API) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://en.wikipedia.org/api/rest_v1` is supported. Wikipedia REST API. Construct URL as [https://en.wikipedia.org/api/rest\_v1/\&#123;endpoint\&#125](https://en.wikipedia.org/api/rest_v1/\&#123;endpoint\&#125);. Common endpoints: /page/summary/\{title}, /page/html/\{title}, /page/related/\{title}. The endpoints below are curated examples.</Info>

## Endpoints

### Get article summary

**GET** `https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://en.wikipedia.org/api/rest_v1/page/summary/Artificial_intelligence', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fen.wikipedia.org%2Fapi%2Frest_v1%2Fpage%2Fsummary%2FArtificial_intelligence" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
