Licensing information is not stored in a computer readable format, it's just a template on the page. You'll need to get a list of license templates and look for them in the text.

On Fri, Jul 29, 2011 at 1:09 AM, Zhao Han <cx.chenghai@gmail.com> wrote:
So, how do you get the license of a image? Seems there is no straightforward way.

For example, http://commons.wikimedia.org/wiki/File:Turner,_J._M._W._-_The_Fighting_T%C3%A9m%C3%A9raire_tugged_to_her_last_Berth_to_be_broken.jpg is in the public domain.

Thanks,
Zhao

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api




--
John Du Hart