Retrieving image license and author information in wiki commons

后端 未结 6 977
情深已故
情深已故 2021-02-19 07:04

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

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-19 07:26

    Late answer but you can request the "extmetadata" data with the following query:

    http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&iiprop=extmetadata&titles=File%3aBrad_Pitt_at_Incirlik2.jpg&format=json

    Look under imageinfo.extmetadata.UsageTerms, Artist, Credit, etc.

提交回复
热议问题