# Wikipedia Scraper - example run

**Use case:** 

Run many Wikipedia searches at once in any language, or pull articles by title, link or category, or the day's most-viewed: summary, full text, categories, Wikidata ID, coordinates and daily pageviews. Official APIs, no proxy. $0.90 per 1,000 articles. Copy this task, change the input and run it.

## Input

```json
{
  "mode": "search",
  "queries": [
    "web scraping"
  ],
  "query": "web scraping",
  "titles": [
    "Alan Turing",
    "https://en.wikipedia.org/wiki/Large_language_model"
  ],
  "category": "Machine learning",
  "categoryDepth": 0,
  "language": "en",
  "maxItems": 5,
  "includeFullText": false,
  "includePageviews": false,
  "pageviewDays": 30,
  "includeLanguageLinks": false
}
```

## Output

```json
{
  "title": {
    "label": "Title"
  },
  "description": {
    "label": "Description"
  },
  "summary": {
    "label": "Summary"
  },
  "wordCount": {
    "label": "Word count"
  },
  "pageviewsTotal": {
    "label": "Pageviews total"
  },
  "wikidataId": {
    "label": "Wikidata id"
  },
  "lastEdited": {
    "label": "Last edited"
  },
  "url": {
    "label": "Url"
  },
  "license": {
    "label": "License"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Wikipedia Scraper: Articles, Search & Pageviews Actor is ready to run with the inputs already set for "Wikipedia Scraper - example run". [Sign up or log in](https://console.apify.com/create-task-from-example/69Cbf6qWl273cCzUr) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Wikipedia Scraper - example run" task

The Wikipedia Scraper: Articles, Search & Pageviews Actor will start running based on the input automatically. You can also change all the input fields, like what to scrape, search queries, and more, to match your specific use case.

### 3. Receive the "Wikipedia Scraper - example run" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as title, description, summary, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Wikipedia Scraper - example run" task via API](https://apify.com/tidyharvest/wikipedia-scraper.md).

## About this Actor

This example demonstrates how to use [Wikipedia Scraper: Articles, Search & Pageviews](https://apify.com/tidyharvest/wikipedia-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/tidyharvest/wikipedia-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/tidyharvest/wikipedia-scraper.md

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`).
