Some time ago we developed Wikitrip, a web tool which shows the world location of editors of a chosen Wikipedia page and also the gender of editors, i.e. how many edits were made by males and females. We released Wikitrip as open source on github and we also deployed 3 live APIs: api.php (various stats about a specific Wikipedia page), api_gender.php (returns timestamp and gender for any edit to a specific Wikipedia page by a registered user that specified his/her gender), api_geojson.php (returns a GeoJSON for anonymous edits on a specific Wikipedia page). If you want to use the APIs in your mashups, we’ll be delighted, more details about the APIs can be found at the end of this blog post.
In fact, today I discovered via Gizmodo that Santiago Ortiz has used our Wikipedia Gender API for creating a fantastic visualization of Wikipedia pages based on how many female and male contributors each of the articles has.
Using the cool visualization you can for example “discover” that currently, out of more than 4 million pages in the English Wikipedia, JUST ONE article is edited more by females than males!!! That article, with 7 male editors and 9 male editors, is Cloth menstrual pad.
Note that the API we released is based on data from Wikipedia and that only users who specified their gender in Wikipedia are counted in (these users are a minority, around 10%). Note also that in our Wikitrip visualization we show a plot with number of edits from gendered users while Santiago show the number of different users. For example in Wikitrip you see that the page Cloth menstrual pad has 62 edits from females and 15 edits from males but the different users who edited the page are 7 male and 9 female.
Now I give you some more info about the APIs released with WikiTrip so that you can use them as well in your mashups if you wish so.
-
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)
-
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)
-
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)
P.s.: the coder of all Wikitrip awesomeness is the amazing Federico “fox” Scrinzi!