****************************************************************************************** ** ** ** This is an auto-generated Monuments API documentation page ** ** ** ** Documentation: ** ** http://commons.wikimedia.org/wiki/Commons:Wiki_Loves_Monuments_2011/Tools#Search_and_export_tool ** ** ** ****************************************************************************************** Parameters: format - The format of the output One value: dynamickml, kml, gpx, poi, html, htmllist, layar, json, xml, xmlfm Default: xmlfm action - What action you would like to perform. One value: search, statistics, help Default: help *** *** *** *** *** *** *** *** *** *** Modules *** *** *** *** *** *** *** *** *** *** * action=search * Parameters: srcountry - Search for monuments in country. Supply the country code. srlang - Search for monuments in lang. Supply the language code. srid - Search for id. srname - Search for name. sraddress - Search for address. srmunicipality - Search for municipality. srlat - Search for latitude. srlon - Search for longitude. srimage - Search for imagename in monument lists. srsource - Search for source monument list wiki page. srchanged - Search for changed. bbox - left,bottom,right,top Bounding box with bottomleft and topright latlong coordinates. E.g. bbox=11.54,48.14,11.543,48.145 coord - Coordinate to search around radius - Search radius, used in conjunction with coord limit - [integer]: the maximum number of results you will get back props - [country|lang|id|name|address|municipality|lat|lon|image|source|changed]: the properties which should be returned. (By default all of them.) Examples: api.php?action=search&srname=%burgerhuizen% api.php?action=search&srcountry=fr&srlang=ca * action=statisticsdb * * action=statistics * Parameters: stcountry - Statistics for country. Supply the country code. stitem - [total|name|name_pct|address|address_pct|municipality|municipality_pct|image|image_pct|coordinates|coordinates_pct]: the stats fields which should be returned (By default, all of them). limit - [integer]: the maximum number of results you will get back (0 for all) Examples: api.php?action=statistics&stitem=total|name_pct|address_pct|municipality_pct|image_pct|coordinates_pct&stcountry=pt&format=html&limit=0 api.php?action=statistics&stcountry=pt&format=csv&limit=0 * action=statisticsct * Parameters: ctscope - [country|user|dump|image] Type of statistics you are interested in. The "image" scope is the activity on the contest (accepting "ctcountry"). It will dump activity per hour, in countries "ctcountry" only, if specified. For each scope, ctitems may differ. ctitem - Columns you are interested in. Separate values with a pipe "|" For scope "user": . user - user name . n_images - number of uploaded images from user . images - sample of images from the user . n_images_accepted - status of qualification of the image (0=not accepted, 1=otherwise). Des not work for all countries. . n_countries - number of countries the user is participating in . countries - names of countries the user is participating in . n_wlm_ids - number of distinct WLM IDs the user submitted to . wlm_ids - sample of WLM IDs the user submitted to . n_images_all - total number of images uploaded from user in all countries . images_all - samples for images uploaded from user in all countries . n_images_accepted_all - same as above, but in all countries . n_wlm_ids_all - same as above, but in all countries . wlm_ids_all - same as above, but in all countries For scope "country": . country - country name . images - number of images uploaded for each country contest . users - number of users found participating . new_users - number of recent users (created after contest start) . new_users_ratio - ratio between the above For scope "dump": [name,user_id,user_name,page_id,wlm_country,wlm_id,timestamp,user_first_rev,is_valid] - table fields requested ctorderby - return results order by this field(s) - may not work with some scopes ctcountry - selection of countries ctfrom - timestamp from where to start dumping (ctscope=dump only) limit - [integer]: the maximum number of results you will get back (0 for all) Examples: api.php?action=statisticsct&format=html&ctscope=country api.php?action=statisticsct&format=html&ctscope=image&ctcountry=Portugal api.php?action=statisticsct&format=html&ctscope=user&ctcountry=Portugal&ctitem=user|n_countries|n_images|n_images_accepted api.php?action=statisticsct&format=html&ctscope=dump&ctcountry=Portugal&ctitem=name|user_name&ctfrom=20110903000000&limit=10 *** *** *** *** *** *** *** *** *** *** Formats *** *** *** *** *** *** *** *** *** *** * format=dynamickml * Generate KML network link file. Examples: api.php?action=search&format=dynamickml * format=html * Output data in HTML format. Table layout. * format=htmllist * Output data in HTML format. List layout. * format=json * Output data in JSON format. Parameters: callback - If specified, wraps the output into a given function call. * format=kml * Output data in KML format Examples: api.php?action=search&format=kml * format=xml * Output data in XML format Examples: api.php?action=search&format=xml *** *** *** *** *** *** *** *** *** *** Special matching rules *** *** *** *** *** *** *** *** *** *** Terms containing percent sign (%): match these terms using prefix search Terms starting with "~": match these terms using full-text search