# Encyclopedia Article Reader: Article Summaries and Text (`kotaro-project/encyclopedia-article-reader`) Actor

Read encyclopedia articles by title in any language: summary, full text, categories, links to other language versions and edit dates. Content is derived from Wikipedia via its official API, with CC BY-SA 4.0 attribution in every result. Not endorsed by or affiliated with the Wikimedia Foundation.

- **URL**: https://apify.com/kotaro-project/encyclopedia-article-reader.md
- **Developed by:** [KOTARO project](https://apify.com/kotaro-project) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 article reads

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 📚 Encyclopedia Article Reader — article summaries and text

Give it article titles. Get back the summary, the full text, categories, links to other language versions and the last edit time, read through the official Wikipedia API (content is derived from Wikipedia). No API key, no setup.

> Independent tool. Not endorsed by or affiliated with the Wikimedia Foundation. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. Content is derived from Wikipedia.

### What it does

- 📝 **Summary** (the article's lead section) as plain text
- 📄 **Full text** as plain text, when you turn on `includeFullText`
- 🏷️ **Categories** (hidden maintenance categories left out)
- 🌏 **Any language edition**: `en`, `ja`, `de`, `fr`, `es`, `zh` and more, plus links to the same article in other languages
- 🔁 **Redirects followed**, so "NYC" finds "New York City"
- ⚖️ **License attribution in every row** (CC BY-SA 4.0, source link, history link, what was changed)
- 💸 **Pay only for articles found**: missing titles are free

### Input

| Field | What it is |
|---|---|
| `titles` | Article titles (up to 200 per run) |
| `language` | Language code of the edition to read (default `en`) |
| `includeFullText` | Also return the full article text |
| `includeLanguageLinks` | Return links to other language versions (default on) |
| `maxChars` | Cut the full text after this many characters (default 100,000) |

### Output

```json
{
  "query": "Mount Fuji",
  "found": true,
  "title": "Mount Fuji",
  "url": "https://en.wikipedia.org/wiki/Mount_Fuji",
  "summary": "Mount Fuji is an active stratovolcano ...",
  "categories": ["Active volcanoes", "..."],
  "languageLinks": [{"language": "ja", "title": "富士山", "url": "https://ja.wikipedia.org/wiki/..."}],
  "lastEdited": "2026-11-08T08:57:57Z",
  "license": {
    "name": "CC BY-SA 4.0",
    "url": "https://creativecommons.org/licenses/by-sa/4.0/",
    "source": "https://en.wikipedia.org/wiki/Mount_Fuji",
    "authors": "https://en.wikipedia.org/w/index.php?action=history&title=Mount_Fuji",
    "changes": "Converted to plain text (formatting, images and tables removed). Wording not changed.",
    "notice": "Text from Wikipedia, the free encyclopedia, by its contributors. ..."
  }
}
```

### Reusing the text

Wikipedia text is licensed under CC BY-SA 4.0. If you publish it, credit Wikipedia and its contributors, link to the source article (the `license` field gives you everything you need), say what you changed, and share your changed version under the same license.

### Good to know

- Requests follow the Wikimedia API rules: one request at a time, a descriptive User-Agent, and polite waiting when the servers are busy.
- Up to 200 titles and about 5 minutes per run. Titles not reached are listed so you can run them again.

# Actor input Schema

## `titles` (type: `array`):

Wikipedia article titles to read, for example Mount Fuji. One result row per title. Redirects are followed.

## `language` (type: `string`):

The language edition to read, as its code: en, ja, de, fr, es, zh and so on.

## `includeFullText` (type: `boolean`):

Also return the full article text as plain text, not only the summary.

## `includeLanguageLinks` (type: `boolean`):

Return links to the same article in other languages.

## `maxChars` (type: `integer`):

Cut the full text after this many characters. The row says when it was cut.

## Actor input object example

```json
{
  "titles": [
    "Mount Fuji",
    "Kyoto"
  ],
  "language": "en",
  "includeFullText": false,
  "includeLanguageLinks": true,
  "maxChars": 100000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "titles": [
        "Mount Fuji",
        "Kyoto"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kotaro-project/encyclopedia-article-reader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "titles": [
        "Mount Fuji",
        "Kyoto",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kotaro-project/encyclopedia-article-reader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "titles": [
    "Mount Fuji",
    "Kyoto"
  ]
}' |
apify call kotaro-project/encyclopedia-article-reader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kotaro-project/encyclopedia-article-reader"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/SncDGjzKabb8cw5Zr/builds/HybQBGGEkP8nWbTmk/openapi.json
