1Request
stringRequired

Exact article title as on the wiki, for example `Marie_Curie` or `Marie Curie`. Case-sensitive: Wikipedia titles start with a capital letter. From a URL such as https://fr.wikipedia.org/wiki/Marie_Curie, use the part after /wiki/.

string

Wikimedia project identifier: language code plus project code, for example `enwiki` (English Wikipedia), `frwiki`, `dewiki`, `enwiktionary` or `eswikivoyage`. Defaults to `enwiki` when neither project nor language is given. `reference/projects` lists every identifier.

string

Wikimedia language code, for example `en`, `fr` or `zh-yue`. Returns the article from any project in that language; combine with project to pin one wiki.

string[]

Return only these fields, in dot notation, for example `name`, `abstract`, `url`, `version.identifier`. Omit for the full record. Wikimedia returns exactly the fields named. Separate values with commas.

number

Most matching articles to return, 1 to 10. More than one only helps when no project is pinned and the title exists on several wikis.

string

Which article_body format to include when fields is not given: `wikitext` (default, compact), `html` (MediaWiki DOM, often 5-10x larger), `both`, or `none` for metadata and abstract only.

1 credit per record
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "wikipedia",
    capability: "articles/lookup",
    options: {
      name: "Marie_Curie",
      limit: 1,
      body: "wikitext",
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from Wikipedia.

[
  {
    "name": "<name>",
    "identifier": 0,
    "abstract": "<abstract>",
    "url": "<url>",
    "date_created": "<date_created>",
    "date_modified": "<date_modified>",
    "in_language": {},
    "is_part_of": {},
    "namespace": {},
    "main_entity": {},
    "additional_entities": [],
    "image": {},
    "license": [],
    "version": {},
    "article_body": {},
    "categories": [],
    "templates": [],
    "redirects": [],
    "protection": [],
    "watchers_count": 0,
    "event": {}
  }
]

From Wikipedia, licensed CC BY-SA 4.0. Retrieved through Wikimedia Enterprise. (https://www.wikipedia.org)