Wikipedia Article Lookup by URL or Keyword avatar

Wikipedia Article Lookup by URL or Keyword

Pricing

from $0.49 / 1,000 results

Go to Apify Store
Wikipedia Article Lookup by URL or Keyword

Wikipedia Article Lookup by URL or Keyword

Fetch structured data for Wikipedia articles by URL or keyword search, in any language edition - summary, description, categories, images, and last-edit timestamp.

Pricing

from $0.49 / 1,000 results

Rating

0.0

(0)

Developer

vexaloom-labs

vexaloom-labs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Security

Limited permissions

Share

Wikipedia exposes far more than an article's opening paragraph: a one-line description, the categories it belongs to, its images, its place on the map, the Wikidata entity behind it, its edit history, and the language editions it exists in. This actor collects that structure for articles you name by URL, exact title or keyword search — or for every page inside a Wikipedia category — and can add the full plain-text body, section outline, links, citation count, and pageview history.

Everything comes from Wikimedia's public APIs. There is no login, token, cookie or proxy setup.

Ways to feed it

  • Paste URLs — desktop, mobile and index.php links all work, in any language edition. A URL's own domain decides its language.
  • Name exact titles — one title per list item, in the language edition you choose. Redirects are followed.
  • Search by keyword — Wikipedia's ranked full-text search, with the result snippet and rank attached to each record.
  • Browse a category — every page in a category (or several) becomes an article lookup.
  • Mix any of the above in one run. An article reached through several URLs, titles or searches is emitted once, with those inputs recorded as provenance.

What each record contains

FieldWhat it is
titleCanonical article title
url / canonicalUrlArticle URL and canonical URL
displayTitleTitle as Wikipedia renders it
summaryLead-section plain text
fullTextComplete article body, when enabled
descriptionOne-line description in the article's language
languageLanguage edition code
pageId / wikidataIdWikipedia page ID and Wikidata entity ID
wordCountWords in the best available text
categoriesCategory names
thumbnail / originalImageLead image objects with source, width, height
imagesViewable URLs of images used in the article
coordinateslatitude and longitude for geographic subjects
languageCount / availableLanguagesHow many other editions exist, and their codes
lastModified / revisionId / lastEditor / lastEditComment / revisionSizeLatest revision metadata
isDisambiguationPresent and true for disambiguation pages
redirectedFromThe input that redirected here
sectionsHeading outline (title, level, anchor)
externalLinksOutbound URLs cited or listed by the article
linksTitles of linked Wikipedia articles
referencesCountNumber of inline citations
pageviewsgranularity, start, end, total, and points (date, views)
searchQuery / searchRank / searchSnippetSearch provenance when the article came from a keyword
requestedTitle / requestedTitles / requestedUrls / matchedSearchQueriesAll inputs that resolved to this article
sourceCategoryCategory that produced the record, when applicable
scrapedAtCapture timestamp

Fields the source does not have for a particular article are omitted, never filled with null, "", [] or 0.

Inputs

FieldTypeDefaultPurpose
articleUrlslist–Article URLs to look up
articleTitleslist–Exact titles to look up in language
searchQuerieslist–Keyword searches
maxArticlesPerQuery1–5005Results per search query
categoryNameslist–Categories to browse, with or without Category:
maxArticlesPerCategory1–50020Members per category
language374 codesenEdition for titles, searches and categories
maxItems1–10000100Total record cap
includeFullContentbooleanfalseAdd fullText
includeSectionsbooleanfalseAdd sections
includeExternalLinksbooleanfalseAdd externalLinks
includeLinksbooleanfalseAdd links
includeReferencesbooleanfalseAdd referencesCount
includePageviewsbooleanfalseAdd pageviews
pageviewsGranularitymonthly / dailymonthlyPageview point size
pageviewsPeriods1–36512Months (max 12) or days

Older saved tasks keep working: keys such as urls, titles, pageTitles, query, searchQuery, maxResultsPerSearch, maxSearchResults, lang, includeFullArticle and fetchFullArticle are read and mapped inside the actor even though they are not shown in the form.

Examples

Look up two URLs:

{
"articleUrls": [
"https://en.wikipedia.org/wiki/Albert_Einstein",
"https://de.wikipedia.org/wiki/Berlin"
]
}

Search, with enrichment:

{
"searchQueries": ["quantum computing"],
"maxArticlesPerQuery": 10,
"language": "en",
"includeFullContent": true,
"includeSections": true,
"includePageviews": true,
"pageviewsGranularity": "monthly",
"pageviewsPeriods": 6
}

Browse a category:

{
"categoryNames": ["Physics"],
"maxArticlesPerCategory": 50,
"language": "en",
"includeExternalLinks": true
}

Mixed run with titles, URLs and a search:

{
"articleUrls": ["https://ja.wikipedia.org/wiki/東京"],
"articleTitles": ["Python (programming language)", "Alan Turing"],
"searchQueries": ["history of computing"],
"maxItems": 25,
"includeReferences": true
}

Data source and attribution

The actor reads Wikimedia's MediaWiki Action API, its parse API, and the Wikimedia pageview API. Wikipedia text is available under CC BY-SA; keep the source attribution when you republish it. This actor is independent and is not affiliated with or endorsed by the Wikimedia Foundation.

FAQ

Do I need a key, login or proxy? No. All four lookup paths work anonymously from an Apify container.

Which language editions are supported? The 374 language codes Wikimedia lists, from en and de to zh-min-nan and simple. Canonical and legacy codes map to the same edition. URL lookups take the edition from the URL; the language field applies to titles, searches and categories.

Why is summary shorter than fullText? summary is the lead section. fullText is the whole article and is only requested when you switch it on.

Can I get pageviews for any period? Yes — up to 12 monthly points or 365 daily points. The current partial month is included; daily data ends at the most recent day Wikimedia has published (usually two days ago).

What are the hard limits? Search returns at most 500 hits per query; categories, external links, internal links and language links are capped at 500 values per article, and images at 50. referencesCount counts inline citations but does not return the citation text. Rendered HTML and infobox key/value extraction are intentionally not part of this actor.

What happens to missing or non-article pages? Pages the API reports as missing are skipped and logged. Disambiguation pages are returned with isDisambiguation: true so you can filter them downstream.

Does it work with old tasks created before the revamp? Yes. The four original inputs keep their names, and earlier alias keys are mapped in code.