5

There is a more direct way to get this from Wikidata, if you want an API. That's the API used by AutoList. Returns JSON or JSONP. Example query to retrieve all Commons categories within 0.1 kilometer from 40.7576,-73.9857: http://wdq.wmflabs.org/api?q=claim[373]%20and%20around[625,40.7576,-73.9857,0.1]&props=373 Live Explanation of the request: 373 ...


4

Wikidata can do it! Using autolist, run the query claim[373] and around[625,40.7576,-73.9857,50] [link]. This will give you all items with a commons category property (P373) and a location (P625) up to 50km from 40.7576,-73.9857. At the time of writing, this is 1900 entries. Dropping it to 10km is 1146, and 1km is 141. (This won't get subcategories of ...


4

As you can see in Wikimedia Commons, packages usually involve some copyrighted content and therefore its image can't be published under a free license. It can only be published with permission of copyright owners or under a suitable exception (like de minimis or fair use) although I'm afraid no such exception is suitable for a large collection of commercial ...


3

First variant: MediaWiki API for Commons with search query for pages of type "Category" (srnamespace=14), maximum 10 results (srlimit=10), and searched string your_string: https://commons.wikimedia.org/w/api.php?action=query&list=search&srwhat=text&srenablerewrites=1&srnamespace=14&srlimit=10&srsearch=your_string Second variant: ...


2

Wikimedia Commons has developed a special API exactly for this. Documentation and web UI: https://commons.wikimedia.org/wiki/Commons:User_scripts/File_Analyzer API usage Let's say you want to check whether your file myimage.jpg is already on Wikimedia Commons or not. Calculate the checksum of myimage.jpg, for instance your get ...


2

I think Elog.io meets your requirements or at least comes close. Some background on how they use checksums to find similar images is in this blog post


1

The closest thing that I know is the Wikidata Query, with around and filtered for images. But it is not a perfect fit for your usecase since you need to limit by radius rather than by number of images. Example: http://wdq.wmflabs.org/api?q=claim[18]%20AND%20around[625,40.7576,-73.9857,0.5]&props=18 The claim[18] is what specifies that you only want ...


1

There does not seem to be a Wikipedia API. It looks like geonames.org has some of this functionality though. For example, take a look at the results of this page: http://www.geonames.org/maps/google_40.7576_-73.9857.html I took a look at the API requests on that page and it called the following: http://www.geonames.org/servlet/geonames?&srv=2&lat=...


Only top voted, non community-wiki answers of a minimum length are eligible