Skip to content
Steve edited this page Nov 4, 2016 · 14 revisions

Currently we get an extract of only the "lead section" (content before the first setion) using action=query with &prop=extracts and &exintro. The lead section is essentially a summary of the article.

Example

https://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=Abraham_Lincoln

We get the extract in HTML and put it in the attribute extract, which we convert to Markdown text and put that into extext.

Clone this wiki locally