Extension:Education Program/ListStudents API

The ListStudents API (available since 2014-05-15) can be used to pull together lists of student usernames (or user IDs).

Usage

 * Create a list of the course IDs for all the courses you want to collect student usernames from. Each ID should be separated by a pipe. You can find the ID of a course from the table at Special:Courses (See example on test2.wikipedia.)
 * Replace test2.wikipedia with the wiki you want to query, and use a url of this form with your course ID list: |3|5|7|9|10|11|12|15 http://test2.wikipedia.org/w/api.php?action=liststudents&courseids=2|3|5|7|9|10|11|12|15
 * You can collect the usernames in a CSV format (one username per line) that can be copy-and-pasted into Wikimetrics by adding the "csv" parameter: |24|32|40|41|45|46|47|48|49|50|51&csv http://test2.wikipedia.org/w/api.php?action=liststudents&courseids=21|24|32|40|41|45|46|47|48|49|50|51&csv
 * You can get the usernames grouped by course (instead of in one long list) by adding the "group" parameter: |3|5|7|9|10|11|12|15|16|17|18|21|24|32|40|41|45|46|47|48|49|50|51&csv&group http://test2.wikipedia.org/w/api.php?action=liststudents&courseids=2|3|5|7|9|10|11|12|15|16|17|18|21|24|32|40|41|45|46|47|48|49|50|51&csv&group
 * You can collect user IDs instead of usernames by adding the "prop=id" parameter: |24|32|40|41|45|46|47|48|49|50|51&csv&group&prop=id http://test2.wikipedia.org/w/api.php?action=liststudents&courseids=21|24|32|40|41|45|46|47|48|49|50|51&csv&group&prop=id