---
name: "xpay-wikipedia-get-page-sections"
description: "Get a list of all section headers in an article."
version: "1.0.0"
price: "$0.01/call"
provider: "Wikipedia"
---

# Get Page Sections

Get a list of all section headers in an article.

**Provider:** Wikipedia
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to get a list of all section headers in an article.. This is part of the Wikipedia provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 6+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("wikipedia/get_page_sections")`
2. **`xpay_run`** — Execute: `xpay_run("wikipedia/get_page_sections", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `slug` | string | Yes | Unique slug identifier of page to list sections for |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [Wikipedia (all tools)](https://xpay.tools/skills/wikipedia/SKILL.md) — 7 tools
- [Search](https://xpay.tools/skills/wikipedia/search/SKILL.md) — $0.01/call
- [Get Page](https://xpay.tools/skills/wikipedia/get-page/SKILL.md) — $0.01/call
- [Get Page Content](https://xpay.tools/skills/wikipedia/get-page-content/SKILL.md) — $0.01/call
- [Get Page Citations](https://xpay.tools/skills/wikipedia/get-page-citations/SKILL.md) — $0.01/call
- [Get Related Pages](https://xpay.tools/skills/wikipedia/get-related-pages/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/wikipedia/get-page-sections/
- Provider: https://xpay.tools/wikipedia/
- All tools: https://xpay.tools/explore
