Questions tagged [wikimedia-commons]

Wikimedia Commons is an online repository of free-use images, sound and other media files. It is a project of the Wikimedia Foundation. It's built on MediaWiki, so it can also be accessed through the MediaWiki API.

Wikimedia Commons is an online media file repository of free-use images, sound and video clips. It acts as a common repository for the various projects of the Wikimedia Foundation.

It's built on , so it can also be accessed through the . Unlike media files uploaded to other projects, files uploaded to Wikimedia Commons can be embedded on pages of all Wikimedia projects without the need to separately upload them there.

Unlike traditional media repositories, Wikimedia Commons is free. Everyone is allowed to copy, use and modify any files freely as long as they follow the terms specified by the author; this often means crediting the source and author(s) appropriately and releasing copies/improvements under the same freedom to others. The license conditions of each individual media file can be found on their description page. The Wikimedia Commons database itself and the texts in it are licensed under the Creative Commons Attribution/Share-Alike License.

51 questions
18
votes
6 answers

Retrieving image license and author information in wiki commons

I am trying to use the wikimedia API for wiki commons at: http://commons.wikimedia.org/w/api.php It seems like the commons API is very immature and the part at their document that mentions the possibility to retrieve license and author information…
Meir
  • 205
  • 3
  • 8
18
votes
5 answers

How to download images programmatically from Wikimedia Commons without registering for a Bot account?

It seems like the only way to get approval for a Bot account is if it adds to or edits information already on Wikimedia. If you try to download any images, without a bot account, using some of the api libraries out there you get error messages…
tomvon
  • 5,121
  • 3
  • 22
  • 16
12
votes
2 answers

How to search images in Wikimedia Commons by API?

I'm trying to query all images of cats (as an example) from Wikimedia Commons. The way I thought about going about this is first search for the Cat page which is here (I don't know how to find this out programmatically, maybe…
thewormsterror
  • 1,608
  • 14
  • 27
7
votes
1 answer

Wikimedia Commons API search images by (latitude, longitude)

I would like to retrieve images from Wikimedia Commons to display on a map. This means that given a pair (latitude, longitude) I would like to find pictures around this point. After a day of searching and trying I have still no idea whether this is…
Flavio
  • 846
  • 1
  • 9
  • 21
6
votes
1 answer

Wikimedia API image search with public domain filter

I would like to query Wikimedia API to find all images that contain a keyword and filter only the images that are public domain. So no additional CC-SA license. Curently I'm using the following query to extract the…
6
votes
5 answers

How do I get link to an image on wikipedia from the infobox?

I'm parsing wikipedia infoboxes and I noticed that some infoboxes have image fields - these fields hold names of image files stashed on wikipedia somewhere. However they just contain the name of the file as is as opposed to the actual link. I…
Ali
  • 7,353
  • 20
  • 103
  • 161
5
votes
1 answer

Wikipedia API: Cannot query Picture of the Day URL

I read the MediaWiki API documentation but I cannot find how to get the current URL of the picture of the day. Following RTFM, I call the query from Commons:Potd to its page URL. It returns pageid=2518149, it is the current POTD page. Then I try to…
Massimo
  • 3,171
  • 3
  • 28
  • 41
4
votes
0 answers

scraping wikimedia category trees

I want to use R to scrape the links contained within a wikimedia category tree and the structure of the tree from here. The code below can open up all the collapsible bullet points library(RSelenium) rD <- rsDriver(check = FALSE) remDr <-…
guyabel
  • 8,014
  • 6
  • 57
  • 86
4
votes
1 answer

Searching for files in Wikimedia / Wikipedia

I'm trying to search for specific file types in Wikimedia commons API with not much of luck. Current status: I'm currently able to fetch images with jpeg, png, svg formats normally using this query…
4
votes
1 answer

How to download files from Wikimedia Commons by API?

How can I download a lot of audio (.ogg) files from Wikimedia Commons? Is it possible using the Mediawiki API?
Saku
  • 383
  • 2
  • 12
4
votes
1 answer

Wikimedia Commons API query to get count of sub categories and photos in a category

I want to query a Wikimedia Commons category and get the count of sub categories and photos in a category. For example when you look at the web page "Category:Collections of the Brooklyn Museum" in Wikimedia Commons, you get the list of…
user1881214
  • 73
  • 1
  • 8
4
votes
1 answer

Full urls of images of a given page on Wikipedia (only those I see on the page)

I'd want to extract all full urls of images of "Google"'s page on Wikipedia I have tried with: http://en.wikipedia.org/w/api.php?action=query&titles=Google&generator=images&gimlimit=10&prop=imageinfo&iiprop=url|dimensions|mime&format=json but, in…
sparkle
  • 7,530
  • 22
  • 69
  • 131
3
votes
2 answers

How to read MediaWiki API JSON response

I am trying to search images on Wikimedia Commons, using MediaWiki API. Here is my requested URL with search params: https://commons.wikimedia.org/w/api.php?action=query&list=allimages&format=json&aifrom=Dada I am succeed to get response in JSON…
Damjan Pavlica
  • 31,277
  • 10
  • 71
  • 76
3
votes
2 answers

How to get with Mediawiki API all images in a category which are not in another one?

I am entirely new to API, so sorry if the question is silly. I would like to get all images in a category in Commons let's say X, but exclude those which are also in another one (Y). I do not understand if I can actually do…
3
votes
1 answer

Access copyright info on Wikimedia Commons via api

I would like to use the MediaWiki API to get the copyright info for an image. When you click on an image in Wikipedia, the page with the image is opened containing a button "more details". Clicking this button you come to a page which contains a…
Gerhard
  • 1,342
  • 2
  • 12
  • 23
1
2 3 4