# Wikipedia Articles Scraper (`neuro-scraper/wikipedia-articles-scraper`) Actor

Wikipedia Articles Scraper extracts Wikipedia articles by search, title, URL or category in any language: summary, full text, sections, infobox, tables, categories, images, links, references, Wikidata id, size, last edit and RAG-ready text chunks.

- **URL**: https://apify.com/neuro-scraper/wikipedia-articles-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** AI, Developer tools, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### Wikipedia Articles Scraper

**Wikipedia Articles Scraper** exports Wikipedia articles by search query, title, URL or category in any language: title, description, summary, full text, sections, infobox, tables, categories, images, links, references, Wikidata id, page id, size, word count, last edit and text chunks ready for RAG.

> **Also try:** [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export Facebook Reels with views, likes, comments, captions and video links from any page or profile.

The Wikipedia Articles Scraper reads Wikipedia articles completely - not just the summary - and returns one clean row per article with the text split into sections, the infobox as key / value pairs, the data tables, categories, links and references.

Use the Wikipedia Articles Scraper to build knowledge bases and RAG datasets, enrich companies, people and places with their infobox facts, monitor edits or research a topic across languages. No login and no API key are needed.

#### What can Wikipedia Articles Scraper do?

- Build RAG / LLM datasets with ready-made text chunks.
- Extract infobox facts (founded, headquarters, population, birth date...) of many entities.
- Export Wikipedia tables to CSV / Excel.
- Collect every article of a category or a search topic.
- Track the last edit and size of articles.

#### Why use Wikipedia Articles Scraper?

- Wikipedia Articles Scraper needs no login, no cookies and no browser extension - you give it the input and it returns clean rows.
- Wikipedia Articles Scraper follows the list page by page until it reaches your limit or the end of the list.
- Wikipedia Articles Scraper gives every row the same columns in the same order, so CSV, Excel and JSON exports line up.
- Wikipedia Articles Scraper runs on the Apify platform: schedule it, call it from the API, connect it to Make, Zapier, n8n or Google Sheets.
- Wikipedia Articles Scraper charges only for the rows it saves, so a small test run costs a few cents.

### How to use Wikipedia Articles Scraper

1. Open Wikipedia Articles Scraper on Apify and click **Try for free** (or **Start**).
2. Fill in the input: search queries, article titles, article URLs or categories, and the language.
3. Optional: set the filters and options described below - each one is explained with an example.
4. Click **Start**. Wikipedia Articles Scraper logs every page it reads, so you can watch the progress in the log.
5. When the run finishes, open the **Output** tab and download the rows as JSON, CSV, Excel, XML or HTML - or read them through the API.

### Input options of Wikipedia Articles Scraper

Every option of Wikipedia Articles Scraper is listed here: what it does, how it works, the allowed values and default, an example and a tip.

#### Search queries (`searchQueries`)

`searchQueries` - is a list of keywords searched on Wikipedia in the chosen language. Every query is paged with the search's own next-page offset until maxResultsPerSearch articles; each article row keeps searchQuery and searchRank. Example: `web scraping`, `quantum computing`. Default: `["web scraping"]`. In Wikipedia Articles Scraper this option has the type array.

#### Article titles (`articleTitles`)

`articleTitles` - is a list of exact article titles, e.g. `Albert Einstein` or `Python (programming language)`. Redirects are followed, so `NYC` gives New York City. Uses the language option. Default: `[]`. In Wikipedia Articles Scraper this option has the type array.

#### Article URLs (`articleUrls`)

`articleUrls` - is a list of Wikipedia article links in any language, e.g. https://en.wikipedia.org/wiki/Web_scraping or https://de.wikipedia.org/wiki/Berlin. The language of each link wins over the language option. Default: `[]`. In Wikipedia Articles Scraper this option has the type array.

#### Categories (`categories`)

`categories` - is a list of category names (with or without `Category:`), e.g. `Web scraping`. The category's articles are listed with its own next-page cursor and read like search hits. Default: `[]`. In Wikipedia Articles Scraper this option has the type array.

#### Language (`language`)

`language` - is the Wikipedia language code for searches, titles and categories: en (default), de, fr, es, it, pt, ja, zh, ru, ar and every other Wikipedia. Example: `de` for the German Wikipedia. Default: `"en"`. In Wikipedia Articles Scraper this option has the type string.

#### Articles per query / category (`maxResultsPerSearch`)

`maxResultsPerSearch` - is the number of articles per search query and per category (default 10, up to 10,000). Two queries x 20 = 40 articles. Allowed values: whole numbers from 1 to 10000. Default: `10`. In Wikipedia Articles Scraper this option has the type integer.

#### Max articles in total (`maxItems`)

`maxItems` - stops the whole run after this many article rows (default 1000) - a cost cap across all inputs. Allowed values: whole numbers from 1 to 100000. Default: `1000`. In Wikipedia Articles Scraper this option has the type integer.

#### Full article text (`includeFullContent`)

`includeFullContent` - adds the complete article text as fullContent / content / extract_full (default on). Switch it off for small rows with only the summary. Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Main text (`extractMainText`)

`extractMainText` - adds mainText, the article body as plain text without markup (default on). Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Sections (`extractSectionHeadings`)

`extractSectionHeadings` - adds sectionHeadings (the headings in order) and sections (title, level, text, word count) - default on. Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Max section depth (`maxSectionDepth`)

`maxSectionDepth` - keeps headings up to this level: 2 = only the top sections, 3 = with sub-sections, 6 = all (default). Allowed values: whole numbers from 1 to 6. Default: `6`. In Wikipedia Articles Scraper this option has the type integer.

#### Max section text length (`maxSectionTextLength`)

`maxSectionTextLength` - cuts every section text to this many characters (default 0 = no cut) - handy for previews. Allowed values: whole numbers from 0 to 1000000. Default: `0`. In Wikipedia Articles Scraper this option has the type integer.

#### Infobox (`extractInfobox`)

`extractInfobox` - adds the infobox (the fact box on the right) as label -> value pairs: infobox and structured_key_data (default on). Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Max infobox fields (`maxInfoboxFields`)

`maxInfoboxFields` - keeps only the first N infobox fields (default 0 = all). Allowed values: whole numbers from 0 to 1000. Default: `0`. In Wikipedia Articles Scraper this option has the type integer.

#### Tables (`extractTables`)

`extractTables` - adds the article's data tables (wikitable): caption, headers and rows as objects keyed by the header (default on). Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Max tables (`maxTables`)

`maxTables` - keeps the first N tables of an article (default 10). Allowed values: whole numbers from 0 to 200. Default: `10`. In Wikipedia Articles Scraper this option has the type integer.

#### Wikitext (`extractWikitext`)

`extractWikitext` - adds the raw wikitext (the article's source markup) - default off because it is large. Allowed values: `true` or `false`. Default: `false`. In Wikipedia Articles Scraper this option has the type boolean.

#### Links and references (`includeLinks`)

`includeLinks` - adds links (other Wikipedia articles linked from the text) and references (external source links) with their counts - default on. Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Images (`includeImages`)

`includeImages` - adds the image URLs of the article and imageCount - default on. Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Text chunk size (RAG) (`chunkSize`)

`chunkSize` - splits the text into chunks of about N characters, never across sections, for RAG and embeddings (default 1000; 0 = off). Allowed values: whole numbers from 0 to 20000. Default: `1000`. In Wikipedia Articles Scraper this option has the type integer.

#### Read every article once (`enableCaching`)

`enableCaching` - reads an article once even when several queries find it; matchedSearchQueries lists them all (default on). Allowed values: `true` or `false`. Default: `true`. In Wikipedia Articles Scraper this option has the type boolean.

#### Max concurrency (`maxConcurrency`)

`maxConcurrency` - is how many articles are read at the same time (default 8, up to 30). 20 articles take about 2 seconds. Allowed values: whole numbers from 1 to 30. Default: `8`. In Wikipedia Articles Scraper this option has the type integer.

#### Request timeout (s) (`requestTimeoutSeconds`)

`requestTimeoutSeconds` - is the timeout of one request in seconds (default 30). Allowed values: whole numbers from 5 to 120. Default: `30`. In Wikipedia Articles Scraper this option has the type integer.

#### Max retries (`maxRetries`)

`maxRetries` - is the number of tries per request before an article is saved as an error row (default 3). Allowed values: whole numbers from 1 to 10. Default: `3`. In Wikipedia Articles Scraper this option has the type integer.

#### Contact for the User-Agent (optional) (`userAgentContact`)

`userAgentContact` - is an optional e-mail or URL added to the User-Agent, as Wikimedia's User-Agent policy asks of heavy users. Example: `me@example.com`. Default: empty (not used). In Wikipedia Articles Scraper this option has the type string.

#### Log level (`logLevel`)

`logLevel` - sets the log detail: DEBUG, INFO (default), WARNING or ERROR. Allowed values: `DEBUG`, `INFO`, `WARNING`, `ERROR`. Default: `"INFO"`. In Wikipedia Articles Scraper this option has the type string.

#### Proxy configuration (`proxyConfiguration`)

`proxyConfiguration` - is off by default because Wikipedia answers without a proxy; switch on the Apify proxy only if your network is refused. Default: `{"useApifyProxy": false}`. In Wikipedia Articles Scraper this option has the type object.

### Ready-to-copy input examples for Wikipedia Articles Scraper

**Search 20 articles**

```json
{
  "searchQueries": [
    "web scraping"
  ],
  "maxResultsPerSearch": 20
}
```

**Infobox facts of given articles**

```json
{
  "articleTitles": [
    "Apple Inc.",
    "Microsoft",
    "Nvidia"
  ],
  "includeFullContent": false,
  "extractTables": false
}
```

**German category with RAG chunks**

```json
{
  "categories": [
    "Programmiersprache"
  ],
  "language": "de",
  "maxResultsPerSearch": 50,
  "chunkSize": 800
}
```

**Article URLs with wikitext**

```json
{
  "articleUrls": [
    "https://en.wikipedia.org/wiki/Web_scraping"
  ],
  "extractWikitext": true
}
```

### Output of Wikipedia Articles Scraper

Wikipedia Articles Scraper saves one row per article. Every row has the columns below, in the same order. A column is empty (null) when the article does not show that value - the table says when that happens.

| Field | What it contains |
|---|---|
| `title` | Article title. |
| `pageTitle` | Article title. |
| `displayTitle` | Title as displayed (formatting removed). |
| `url` | Desktop link of the article. |
| `mobileUrl` | Mobile link. |
| `pageId` | Wikipedia page id. |
| `revId` | Id of the current revision. |
| `language` | Language code of the wiki. |
| `type` | `standard` or `disambiguation`. |
| `description` | Short description of the article. |
| `extract` | Lead section as plain text. |
| `summary` | Lead section as plain text. |
| `extract_summary` | Lead section as plain text. |
| `extractHtml` | Lead section as HTML. |
| `thumbnail` | Page image (thumbnail). |
| `originalImage` | Page image in full size. |
| `wikidataId` | Wikidata id (Q...). |
| `qid` | Wikidata id (Q...). |
| `categories` | Visible categories. |
| `hiddenCategories` | Maintenance (hidden) categories. |
| `infobox` | Infobox as {label: value}. |
| `structured_key_data` | Infobox as {label: value}. |
| `structured_key_data_extracted` | true when an infobox was found. |
| `tables` | Tables: caption, headers, rows (objects keyed by header), rowCount. |
| `sectionHeadings` | Headings in order. |
| `sections` | Sections: title, level, text, wordCount. |
| `mainText` | Article body as plain text. |
| `fullContent` | Complete article text. |
| `content` | Complete article text. |
| `extract_full` | Complete article text. |
| `wikitext` | Raw wikitext source (extractWikitext). |
| `chunks` | Text chunks of about chunkSize characters: index, section, text, characters (for RAG / embeddings). |
| `wordCount` | Words of the article text. |
| `size` | Article size in bytes (wikitext). |
| `textStats` | words, characters, paragraphs, sections, readingTimeMinutes. |
| `images` | Image URLs used in the article. |
| `imageCount` | Number of images. |
| `links` | Links to other articles. |
| `linkCount` | Number of article links. |
| `references` | External reference / source links. |
| `referenceCount` | Number of external links. |
| `lastEdited` | Time of the last edit (UTC). |
| `lastModified` | Time of the last edit (UTC). |
| `searchQuery` | Query or category that found the article. |
| `searchRank` | Position in the search results / category. |
| `requestedTitle` | Title as you gave it (or as found). |
| `matchedSearchQueries` | Every query that found the article. |
| `requestedTitles` | The requested title and the title it resolved to (redirects). |
| `metadata` | pageId, revId, language, wikidataId, lastModified, size, namespace. |
| `extraction_metadata` | extractedAt, requests, durationMs, parsedHtml, plainText. |
| `error` | Error text when the article could not be read. |
| `error_type` | Error code (e.g. missingtitle). |
| `scrapedAt` | Time of scraping (UTC). |
| `crawledAt` | Time of scraping (UTC). |

### Which columns of Wikipedia Articles Scraper can be empty

Wikipedia Articles Scraper fills every column the website publishes. These columns were measured as empty on some rows in our test runs, because the website itself does not publish that value for those article rows:

- `tables` - measured 2026-11-22: 16 of 21 test articles have no data table (wikitable) - the list is then empty.
- `infobox` - measured: 11 of 21 test articles have no infobox (concept articles such as "Search engine scraping"); filled for people, places, companies, software...
- `structured_key_data` - same as infobox.
- `thumbnail` - Wikipedia sets no page image for many articles (16 of 21 tech articles in the test).
- `originalImage` - same as thumbnail.
- `description` - some articles have no short description (3 of 21).
- `images` - articles without any image.
- `hiddenCategories` - articles without maintenance categories.
- `searchQuery` - empty for articles given by title or URL.
- `searchRank` - empty for articles given by title or URL.
- `matchedSearchQueries` - empty for articles given by title or URL.
- `references` - articles without external links.
- `error` - empty when the article was read - the good case.
- `error_type` - empty when the article was read.
- `wikitext` - empty unless extractWikitext is on.

### Limits of Wikipedia Articles Scraper

- Search results stop where Wikipedia's search stops (offset 10,000).
- Only articles (namespace 0) are read from categories.

### How much does Wikipedia Articles Scraper cost?

Wikipedia Articles Scraper uses pay-per-event pricing: you pay a small amount per saved row (the `result` event) plus the Apify platform usage. The price is $1.49 per 1,000 results on the free plan and goes down to $1.19 per 1,000 results on higher plans.

Worked example: 20 article rows cost about 20 / 1,000 x $1.49 = $0.03 in result events; 1,000 rows cost about $1.49; 10,000 rows cost about $14.90 (less on a higher plan). With the Apify free plan ($5 of monthly credit) you can test Wikipedia Articles Scraper many times before paying anything.

### Use Wikipedia Articles Scraper through the API

You can start Wikipedia Articles Scraper from your own code with the Apify API or the Apify client. Python example:

```python
from apify_client import ApifyClient

client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('neuro-scraper/wikipedia-articles-scraper').call(run_input={"searchQueries": ["web scraping"], "maxResultsPerSearch": 20})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item)
```

JavaScript example:

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('neuro-scraper/wikipedia-articles-scraper').call({"searchQueries": ["web scraping"], "maxResultsPerSearch": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

The rows of Wikipedia Articles Scraper are also available as a direct download link (JSON, CSV, Excel) from the run's dataset, and Wikipedia Articles Scraper can send a webhook when a run finishes.

### Integrations of Wikipedia Articles Scraper

Connect Wikipedia Articles Scraper to Google Sheets, Slack, Airtable, Make, Zapier, n8n, LangChain or your own webhook. Schedule Wikipedia Articles Scraper daily or weekly in the Apify Console to keep a fresh copy of the data, and compare runs to spot new and changed article rows.

### FAQ about Wikipedia Articles Scraper

#### Does the Wikipedia Articles Scraper work for every language?

Yes - set language (searches, titles, categories) or give article links of any Wikipedia.

#### How fast is the Wikipedia Articles Scraper?

About 0.1-0.3 seconds per article with the default 8 parallel articles; the measured 20-article test finished in about 5 seconds of scraping.

#### Can I get only the summary?

Switch off includeFullContent, extractMainText, extractSectionHeadings, extractTables and includeLinks.

#### Is it legal to use Wikipedia Articles Scraper?

Wikipedia Articles Scraper collects only data that is shown publicly without logging in. It never collects email addresses or phone numbers. You are responsible for how you use the data - check the website's terms and the data-protection laws (GDPR, CCPA) that apply to you, and ask a lawyer if you are unsure.

#### What if Wikipedia Articles Scraper returns fewer rows than I asked for?

Wikipedia Articles Scraper stops when the list ends or when the website shows no more article rows for your input. The final status message of the run says which targets stopped early and why. Try a broader input or more inputs to get more rows.

#### Can I request a feature for Wikipedia Articles Scraper?

Yes - open an issue on the Wikipedia Articles Scraper page in the Apify Store and describe the field or filter you need.

### Related scrapers

| Actor | What it extracts |
|---|---|
| [facebook-reels-scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) | Facebook Reels with views, likes and comments |

Wikipedia Articles Scraper is maintained and updated when the website changes. If Wikipedia Articles Scraper helps you, a review in the Apify Store helps others find it.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search on Wikipedia. Every query is paged until maxResultsPerSearch articles.

## `articleTitles` (type: `array`):

Exact article titles, e.g. Albert Einstein, Python (programming language).

## `pageTitles` (type: `array`):

Alias of articleTitles for saved tasks of other tools.

## `articleUrls` (type: `array`):

Wikipedia article links of any language, e.g. https://en.wikipedia.org/wiki/Web_scraping.

## `categories` (type: `array`):

Category names (with or without "Category:"); their articles are read.

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

Wikipedia language code: en, de, fr, es, ja, ru, pt, it, zh, ar ... (URLs keep their own language).

## `maxResultsPerSearch` (type: `integer`):

Articles per search query and per category (the search follows its own next-page offset).

## `maxItems` (type: `integer`):

Stops the run after this many articles.

## `includeFullContent` (type: `boolean`):

Adds the complete plain text (fullContent / mainText).

## `extractMainText` (type: `boolean`):

Adds mainText (the article body as plain text).

## `extractSectionHeadings` (type: `boolean`):

Adds sectionHeadings and sections (heading, level, text).

## `maxSectionDepth` (type: `integer`):

Deepest heading level kept in sections (2 = only == top == sections).

## `maxSectionTextLength` (type: `integer`):

Cuts every section text to this many characters (0 = no cut).

## `extractInfobox` (type: `boolean`):

Adds the infobox as key / value pairs (infobox, structured_key_data).

## `maxInfoboxFields` (type: `integer`):

Keeps only the first N infobox fields (0 = all).

## `extractTables` (type: `boolean`):

Adds the article tables (wikitable) as header + rows.

## `maxTables` (type: `integer`):

Keeps the first N tables of an article.

## `extractWikitext` (type: `boolean`):

Adds the raw wikitext source of the article.

## `includeLinks` (type: `boolean`):

Adds the internal article links and the external reference links.

## `includeImages` (type: `boolean`):

Adds the image URLs used in the article.

## `chunkSize` (type: `integer`):

Splits the text into chunks of about N characters with their section (0 = no chunks).

## `enableCaching` (type: `boolean`):

An article reached by several queries is read once; its row lists every query (matchedSearchQueries).

## `maxConcurrency` (type: `integer`):

Articles read in parallel.

## `requestTimeoutSeconds` (type: `integer`):

Timeout of one request.

## `maxRetries` (type: `integer`):

Tries per request before the article is skipped with an error row.

## `userAgentContact` (type: `string`):

An e-mail or URL added to the User-Agent, as the Wikimedia User-Agent policy asks for heavy use.

## `logLevel` (type: `string`):

How detailed the log is.

## `proxyConfiguration` (type: `object`):

Not needed: Wikipedia answers without a proxy. Turn it on only if your network is refused.

## Actor input object example

```json
{
  "searchQueries": [
    "web scraping"
  ],
  "articleTitles": [],
  "articleUrls": [],
  "categories": [],
  "language": "en",
  "maxResultsPerSearch": 10,
  "maxItems": 1000,
  "includeFullContent": true,
  "extractMainText": true,
  "extractSectionHeadings": true,
  "maxSectionDepth": 6,
  "maxSectionTextLength": 0,
  "extractInfobox": true,
  "maxInfoboxFields": 0,
  "extractTables": true,
  "maxTables": 10,
  "extractWikitext": false,
  "includeLinks": true,
  "includeImages": true,
  "chunkSize": 1000,
  "enableCaching": true,
  "maxConcurrency": 8,
  "requestTimeoutSeconds": 30,
  "maxRetries": 3,
  "logLevel": "INFO",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per result, in the run's default dataset.

# 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 = {
    "searchQueries": [
        "web scraping"
    ],
    "articleTitles": [],
    "articleUrls": [],
    "categories": [],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/wikipedia-articles-scraper").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 = {
    "searchQueries": ["web scraping"],
    "articleTitles": [],
    "articleUrls": [],
    "categories": [],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/wikipedia-articles-scraper").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 '{
  "searchQueries": [
    "web scraping"
  ],
  "articleTitles": [],
  "articleUrls": [],
  "categories": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call neuro-scraper/wikipedia-articles-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/wikipedia-articles-scraper"
        }
    }
}
```

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/NtZO51PVF4F7vStwF/builds/0pT2qsoG7Bh4DBuml/openapi.json
