Skip to content
//Wikipedia Scraper example\\

Machine learning articles, 5 per category

Articles from a category and its subcategories.

Updated November 22, 2026

What this example returns

The dataset’s “Articles” view shows 11 columns: Title, Article, Lang, Description, Summary, Words, Wikidata, Last edited, Source, Input, and Image. See every output field.

What each setting does

The input this example runs Wikipedia Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Categories categories

Machine learning

Category names (Machine learning or Category:Machine learning) or category URLs.

Subcategory depth categoryDepth

1

0 = only the category's own articles; 1 = also its subcategories; 2 = their subcategories too, and so on. Each subcategory is read once, so loops in the category tree are skipped. Deep levels of big categories hold many articles: use Max articles per category or Max articles in total to bound the run.

Default: 0 → this example uses 1

Max articles per category maxArticlesPerCategory

5

Stop each category (including its subcategories) after this many articles. 0 = every article in the category tree.

Default: 0 → this example uses 5

Article content contentFormat

None

Full article body as clean Markdown (headings, lists, tables, LaTeX math), plain text, both, or none (metadata and summary only).

Default: Markdown → this example uses None

.json
{
  "categories": [
    "Machine learning"
  ],
  "categoryDepth": 1,
  "maxArticlesPerCategory": 5,
  "contentFormat": "none"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Articlefrom $0.0002931Charged for each Wikipedia article saved, with its content and all selected extras. Missing titles and invalid inputs are free.

Full pricing

Other ways to run Wikipedia Scraper

All examples of Wikipedia Scraper

About Wikipedia Scraper

Get Wikipedia articles in any language by title, URL, search, category (with subcategories), random or featured lists. Clean Markdown or plain text for RAG and AI agents, with sections, infobox key-values, summary, categories, links, images, Wikidata ID and last edit. Official API, no login.

Price:
From $0.293 / 1,000 results
Developer:
Querystone

Wikipedia Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.