CommunityData
  • Not logged in
  • Talk
  • Contributions
  • Create account
  • Log in
Navigation
Main page
About
People
Publications
Teaching
Resources
Research Blog
Wiki Functions
Recent changes
Help
Licensing
Page
Discussion
Edit
View history

Sample Wikipedia API queries

From CommunityData
Jump to:navigation, search

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

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user%7Ccomment&continue=

Timestamp, username, edit summary for the last 5 revisions on the Main Page

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp%7Cuser%7Ccomment

Most rencent 50 contributors to the Organic chemistry page

http://en.wikipedia.org/w/api.php?action=query&prop=contributors&format=json&pclimit=50&titles=Organic chemistry

Articles about stuff located near UW campus (47.6553° N, 122.3035° W)

https://en.wikipedia.org/w/api.php?action=query&prop=coordinates%7Cpageimages%7Cpageterms&colimit=50&piprop=thumbnail&pithumbsize=144&pilimit=50&wbptterms=description&generator=geosearch&ggscoord=47.6553%7C-122.3035&ggsradius=10000&ggslimit=50

Retrieved from "https://wiki.communitydata.science/index.php?title=Sample_Wikipedia_API_queries&oldid=86273"
Category:
  • Shared Pages
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
This page was last edited on 21 April 2016, at 23:48.
Content is available under Attribution-Share Alike 3.0 Unported unless otherwise noted.
Privacy policy
About CommunityData
Disclaimers
Attribution-Share Alike 3.0 Unported
Powered by MediaWiki