A look at the Wikipedia API
May 6, 2022
In this article, we look at Wikipedia API. Stop talking, show me the code :)
Get a summary of the text
// Get "Water" Summary
https://en.wikipedia.org/api/rest_v1/page/summary/Water
// Summary API
https://LANG.wikipedia.org/api/rest_v1/page/summary/SEARCHLANG: This is summary language, (en,de,tr)
SEARCH: This is summary of text
The response is a JSON
Full Source Code Example
Run the Code
Get Related Pages
// https://en.wikipedia.org/api/rest_v1/page/related/Water
/*
Returns
* Carbon dioxide
* Hypothetical types of biochemistr
* Greenhouse effect
* .....