Skip to content

Latest commit

 

History

History
 
 

We developed some simple APIs to retrieve data from the Toolserver database. They are used on Manypedia and WikiTrip

  • api.php

    Get various stats about a page

    Options:

    • article: page title
    • lang: desidered language (default: en)
    • family: wiki family (default: wikipedia)
    • year_count: show edit count per month (default: false)
    • editors: show unique editors for the page (default: false)
    • max_editors: maximum number of editors displayed (only if "editors" option is set)
    • anons: show anonymous unique editors (default: false)
    • top_ten: show top 10% of editors (default: false)
    • top_fifty: top 50 editors (default: false)

    Example

  • api_gender.php Get timestamp and gender for any edit by a registered user that specified his gender on a specific page (might be quite slow)

    Options:

    • article: page title
    • lang: desidered language (default: en)
    • family: wiki family (default: wikipedia)

    Example

  • api_geojson.php Get a GeoJSON for anonymous edits on a specific page

    Options:

    • article: page title
    • lang: desidered language (default: en)
    • family: wiki family (default: wikipedia)

    Example

Note: The API's output is in JSON format

The APIs are open source and much code has been taken from Xi!'s articleinfo. We thank Xi a lot for his awesome work!