# Wikipedia Search & Content Scraper (`tuningsearch/wikipedia-search-scraper`) Actor

🔥 Only $0.5 per 1,000 results 🔥 **CHEAPEST** Wikipedia Search + Full Page Scraper! 🔍 Search 100 results per query across 70 languages 📄 Extract complete page content in Markdown format ⚡ Lightning-fast batch processing with zero failure charges!

- **URL**: https://apify.com/tuningsearch/wikipedia-search-scraper.md
- **Developed by:** [tuningsearch](https://apify.com/tuningsearch) (community)
- **Categories:** AI, Automation, Developer tools
- **Features:** Full permissions
- **Stats:** 66 total users, 0 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 results

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

## 🔥 Wikipedia Search & Scraper Pro - CHEAPEST $0.5/1000 Results

**🔥 Only $0.5 per 1,000 results 🔥 CHEAPEST Wikipedia Search + Full Page Scraper with 70 languages support**

### ✨ Dual-Mode Features

#### 🔍 **Search Mode** - Discover & Explore

✅ **Bulk Discovery**: Up to 100 results per query across any topic
✅ **Rich Summaries**: Titles, descriptions, extracts, and thumbnails
✅ **Smart Exploration**: Find relevant pages you didn't know existed

#### 📄 **Scraper Mode** - Deep Content Extraction

✅ **Full Page Content**: Complete Wikipedia articles in clean Markdown
✅ **Batch Processing**: Multiple URLs in one request
✅ **Perfect Formatting**: Structured content ready for analysis

#### 🌟 **Universal Benefits**

✅ **70 Languages**: Support for all major Wikipedia languages worldwide
✅ **Lightning Fast**: Optimized for speed and reliability
✅ **Unbeatable Price**: Only $0.5 per 1,000 results (search OR scrape)
✅ **Zero Failure Charges**: 3x retry mechanism, only pay for successful results
✅ **Clean Output**: Structured JSON data ready for immediate use

### 🚀 How to Use

#### 🔍 Search Mode - Discover Content

Perfect for research and content discovery - get up to 100 results per query:

```json
{
  "mode": "search",
  "queries": "artificial intelligence, machine learning, deep learning",
  "language": "en",
  "limit": 100
}
```

**Output**: Rich summaries with titles, descriptions, extracts, and thumbnails

#### 📄 Scraper Mode - Extract Full Content

Extract complete Wikipedia articles in clean Markdown format:

```json
{
  "mode": "crawl",
  "urls": "https://en.wikipedia.org/wiki/Artificial_intelligence, https://zh.wikipedia.org/wiki/人工智能"
}
```

**Output**: Full page content with perfect formatting and structure

### 📊 Output Data

Each result contains:

- **Title**: Wikipedia page title
- **URL**: Direct link to the page
- **Summary**: Extract with description and thumbnail
- **Content**: Full page content (for crawl mode)
- **Language**: Page language code
- **Source**: Whether from search or crawl
- **Metadata**: Processing time and timestamps

### 🌍 Supported Languages

**70 languages supported!** Including:

**Major Languages**: English, Chinese, Japanese, Korean, French, German, Spanish, Italian, Portuguese, Russian, Arabic, Hindi

**European**: Dutch, Swedish, Danish, Norwegian, Finnish, Polish, Czech, Slovak, Hungarian, Romanian, Bulgarian, Croatian, Serbian, Slovenian, Estonian, Latvian, Lithuanian, Ukrainian, Belarusian

**Asian**: Thai, Vietnamese, Indonesian, Malay, Tagalog, Mongolian, Myanmar, Khmer, Lao, Sinhala, Tamil, Telugu, Kannada, Malayalam, Bengali, Gujarati, Punjabi, Oriya, Assamese, Nepali, Marathi

**Middle Eastern**: Persian, Pashto, Sindhi, Kurdish, Turkish, Georgian, Armenian, Azerbaijani, Kazakh, Kyrgyz, Uzbek, Tajik, Urdu

**Others**: Hebrew, Yiddish, Maltese

*Simply use the language code (e.g., 'en', 'zh', 'ja') in your requests!*

### 💰 Pricing

**Only $0.5 per 1,000 results** - the most affordable Wikipedia data extraction service!

- **Search**: $0.50 per 1,000 search results (default 100 results per query = $0.05 per query)
- **Crawl**: $0.50 per 1,000 pages crawled
- **Maximum value**: Up to 100 results per search query for comprehensive coverage
- **No charge for failures**: Failed requests are automatically retried 3 times with no cost to you

### 🎯 Perfect For

- **Researchers**: Academic research and data collection
- **Content Creators**: Article research and fact-checking
- **Data Scientists**: Training data and knowledge graphs
- **SEO Professionals**: Content research and competitor analysis
- **Developers**: Building knowledge-based applications
- **Students**: Educational research and assignments

### ⚡ Performance

- **Speed**: 1-3 seconds per query
- **Reliability**: 99.9% uptime with error handling
- **Scalability**: Handle thousands of queries efficiently
- **Accuracy**: Direct access to Wikipedia's official content

Start extracting Wikipedia data at the lowest cost today! 🚀

# Actor input Schema

## `mode` (type: `string`):

Choose the operation mode

## `queries` (type: `string`):

Search terms separated by commas (for search mode)

## `urls` (type: `string`):

Wikipedia URLs separated by commas (for crawl mode)

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

Wikipedia language code. 70 languages supported! Use any valid Wikipedia language code (e.g., 'th' for Thai, 'vi' for Vietnamese, etc.)

## `limit` (type: `integer`):

Maximum results per search query (default: 100 for maximum value)

## `timeout` (type: `integer`):

Request timeout in seconds

## Actor input object example

```json
{
  "mode": "search",
  "queries": "artificial intelligence, machine learning",
  "urls": "https://en.wikipedia.org/wiki/Artificial_intelligence",
  "language": "en",
  "limit": 100,
  "timeout": 30
}
```

# 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 = {
    "queries": "artificial intelligence, machine learning",
    "urls": "https://en.wikipedia.org/wiki/Artificial_intelligence"
};

// Run the Actor and wait for it to finish
const run = await client.actor("tuningsearch/wikipedia-search-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 = {
    "queries": "artificial intelligence, machine learning",
    "urls": "https://en.wikipedia.org/wiki/Artificial_intelligence",
}

# Run the Actor and wait for it to finish
run = client.actor("tuningsearch/wikipedia-search-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 '{
  "queries": "artificial intelligence, machine learning",
  "urls": "https://en.wikipedia.org/wiki/Artificial_intelligence"
}' |
apify call tuningsearch/wikipedia-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tuningsearch/wikipedia-search-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/L1pjcBexNbfB6BkZn/builds/bwNU1YK8fmRXSwcaE/openapi.json
