I'm getting a JSON with all the text but what I need is just the key info for this page: https://en.wikipedia.org/wiki/Reddit (author's name, type of site, logo of the publication, etc.) Can I add any props to this string? https://en.wikipedia.org/w/api.php?action=parse&format=json&prop=text§ion=0&page=Reddit&callback=?
Asked
Active
Viewed 568 times
-1
-
1Define who is the author of an article on Wikipedia? – Tomalak Jun 26 '17 at 08:58
1 Answers
1
Yes you will use Query instead of parse and you will send the parameter in prop
For example https://en.wikipedia.org/w/api.php?action=query&titles=Reddit&prop=contributors
Reference : https://www.mediawiki.org/wiki/API:Properties

Prags
- 811
- 5
- 17
-
Note also that because there are more authors than the number that are returned with the first query, you will need to make several queries and use the [continue parameter](https://www.mediawiki.org/wiki/API:Query#Continuing_queries). – Jack Taylor Jun 27 '17 at 04:28