# Wikipedia API: Get full article

> Returns the full text of a Wikipedia article in ordered sections, with its last edit time, reference count and visible categories, in any language edition. Footnotes, tables and navigation material are excluded; a topic that is not an exact title uses the best search match.

Unofficial. Not affiliated with or endorsed by Wikipedia.

- Page: https://fous.com/methods/wikipedia.org/get-full-article
- Method: `wikipedia.org/get_full_article`, version 1
- Website: wikipedia.org
- Returns: title, link, last edited, sections (heading, level, text), reference count, categories
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `topic` | string | yes | `"Mars"` | Article name or subject, for example Photosynthesis. |
| `language` | string | no | `"en"` | Wikipedia language name or code, for example Spanish or es. Defaults to English. Default "English". |

## Output

From a run on Oct 31, 2026, shortened. Its input:

```json
{
  "topic": "Mars",
  "language": "en"
}
```

Its output:

```json
{
  "title": "Mars",
  "sections": [
    {
      "text": "Mars is the fourth planet from the Sun. It is also known as the \" Red Planet \", for its orange-red appearance. Mars is a desert-like rocky planet with a tenuous atmosphere that is primarily carbon dioxide ( CO 2 ). At the average surface level the atmospheric pressure is a few thousandths of Earth '…",
      "level": 1,
      "heading": "Introduction"
    },
    {
      "text": "",
      "level": 2,
      "heading": "Natural history"
    },
    {
      "text": "Scientists have theorized that during the Solar System's formation, Mars was created as the result of a random process of run-away accretion of material from the protoplanetary disk that orbited the Sun. Mars has many distinctive chemical features caused by its position in the Solar System. Elements…",
      "level": 3,
      "heading": "Formation"
    }
  ],
  "categories": [
    "Mars",
    "Astronomical objects known since antiquity",
    "Planets of the Solar System"
  ],
  "last_edited": "2026-09-20T07:41:36+00:00",
  "article_link": "https://en.wikipedia.org/wiki/Mars",
  "reference_count": 309
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"wikipedia.org/get_full_article","input":{"topic":"Mars","language":"en"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Pull the complete Wikipedia entry on the Treaty of Westphalia, broken down by section, and tell me when it was last edited.
- I need the full text of the German-language article about Johann Sebastian Bach, including its categories and how many references it cites.
- Get me the whole encyclopedia article on CRISPR gene editing so I can read every section from top to bottom.
- Fetch the entire Spanish Wikipedia page for 'Revolución mexicana' with headings and section text in order.
- Can you grab the full article text on black holes along with its reference count and the categories it's filed under?

## Input schema

```json
{
  "type": "object",
  "required": [
    "topic"
  ],
  "properties": {
    "topic": {
      "type": "string",
      "description": "Article name or subject, for example Photosynthesis."
    },
    "language": {
      "type": "string",
      "default": "English",
      "description": "Wikipedia language name or code, for example Spanish or es. Defaults to English."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "title",
    "article_link",
    "last_edited",
    "sections",
    "reference_count",
    "categories"
  ],
  "properties": {
    "title": {
      "type": "string",
      "description": "Wikipedia article title."
    },
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "heading",
          "level",
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "description": "Plain article text without references, tables or navigation."
          },
          "level": {
            "type": "integer",
            "description": "1 for introduction, 2 for main sections and 3 for subsections."
          },
          "heading": {
            "type": "string"
          }
        }
      },
      "description": "Article sections in page order. Back-matter headings have no citation-list text."
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Visible Wikipedia category names."
    },
    "last_edited": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time of the latest edit with UTC offset."
    },
    "article_link": {
      "type": "string",
      "description": "Article page link."
    },
    "reference_count": {
      "type": "integer",
      "description": "Number of bibliographic reference entries."
    }
  }
}
```

## See more

- [Wikipedia API: Get article summary](https://fous.com/methods/wikipedia.org/get-article-summary.md): Returns the opening summary, short description, main image, article link and last edit time for a Wikipedia topic in the chosen language. For ambiguous names it uses the top matching article and lists up to five alternatives.
- [Wikipedia API: Get key facts from an article](https://fous.com/methods/wikipedia.org/get-key-facts.md): Returns the labeled facts, in order, from the information box of a Wikipedia article in any language edition. Articles without an information box have no facts.
- [Wikipedia API: Get page views](https://fous.com/methods/wikipedia.org/get-page-views.md): Returns human-reader view counts for a Wikipedia article by day or month, with totals, daily averages and the peak period.
- [Wikipedia API: Search articles](https://fous.com/methods/wikipedia.org/search-articles.md): Searches a Wikipedia language edition by keywords and returns matching articles in relevance order, with descriptions, snippets, word counts, last edit dates and links.
- [Wikipedia API: Get Wikipedia On this day](https://fous.com/methods/wikipedia.org/get-on-this-day.md): Returns Wikipedia's On this day events, births, deaths and holidays for a month and day, in a chosen Wikipedia language; events, births and deaths come newest year first.
- [Britannica API: Get article](https://fous.com/methods/britannica.com/get-article.md): Finds the best-matching Britannica encyclopedia article for a topic and returns its introduction, quick facts, section headings, update date and main image.
- [Fandom API: Get a wiki article](https://fous.com/methods/fandom.com/get-wiki-article.md): Finds a topic on the main English Fandom wiki for a franchise (picked from Fandom's cross-wiki search, or given as a wiki or article link) and returns the article's opening paragraphs, infobox facts, section headings, main image and links.
- [BBC News API: Read article](https://fous.com/methods/bbc.com/read-article.md): Reads the text and details of a BBC News article from its link or headline. Live coverage pages return the latest entries available.
- [All Wikipedia methods](https://fous.com/methods/wikipedia.org.md)
