---
title: "Wikipedia API"
category: 07-tool-use
level: basic
stability: stable
description: "Apply wikipedia api in AI agent workflows."
added: "2025-03"
---

![Dependency Status](https://img.shields.io/endpoint?url=https://samotech.github.io/skills-tree/badges/skills-07-tool-use-wikipedia-api.json)

# Wikipedia API

**Category:** `tool-use`  
**Skill Level:** `basic`  
**Stability:** `stable`
**Added:** 2025-03

### Description

Fetch Wikipedia article summaries, full text, and page metadata as a grounding data source for agents.

### Example

```python
import wikipedia

summary = wikipedia.summary('Retrieval-augmented generation', sentences=3)
print(summary)
```

### Related Skills

- [Web Search](web-search.md)
- [Wolfram API](wolfram-api.md)
