Wikipedia API - skolakoda/programming-quotes GitHub Wiki
API for an image
- param
titles
: title of a wiki page - param
pithumbsize
: image size
API for a lead paragraph
titles
: title of a wiki page, i.e. person nameexintro
: only introductory pagragraph, not a whole articleexplaintext
: plan text, instead of HTML
Important parameters
redirects=1
allows redirection. Without it, there's no response if page was renamed.origin=*
solves CORS problem.
Pipes
With one API request we can get information from multiple wiki pages (up to 50). We just need to connect params with pipes |
, for example: titles=Socrates|Aristotle|Plato