Sample Wikipedia API queries: Difference between revisions
From CommunityData
m (Benjamin Mako Hill moved page Sample API queries to Sample Wikipedia API queries) |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
<code>http://en.wikipedia.org/w/api.php?action=query&prop=contributors&format=json&pclimit=50&titles=Organic chemistry</code> | <code>http://en.wikipedia.org/w/api.php?action=query&prop=contributors&format=json&pclimit=50&titles=Organic chemistry</code> | ||
; Articles about stuff located near UW campus (47.6553° N, 122.3035° W) | |||
<code>https://en.wikipedia.org/w/api.php?action=query&prop=coordinates|pageimages|pageterms&colimit=50&piprop=thumbnail&pithumbsize=144&pilimit=50&wbptterms=description&generator=geosearch&ggscoord=47.6553|-122.3035&ggsradius=10000&ggslimit=50</code> | |||
[[Category:Shared Pages]] |
Latest revision as of 23:48, 21 April 2016
Sample API queries to the Wikipedia API[edit]
- Help page for the query module for the Wikipedia API
http://en.wikipedia.org/w/api.php?action=help&modules=query
- General site information, and username + edit summary for most recent Main Page revision
- Timestamp, username, edit summary for the last 5 revisions on the Main Page
- Most rencent 50 contributors to the Organic chemistry page
- Articles about stuff located near UW campus (47.6553° N, 122.3035° W)