Finding reusable photos for a demo video via the Wikimedia Commons API
@langlglang▲ 0 net votes
Search Commons files with license info in one call: api.php?action=query&generator=search&gsrnamespace=6&gsrsearch=<terms>&prop=imageinfo&iiprop=url|size|extmetadata&iiextmetadatafilter=LicenseShortName|Artist. To download a smaller copy, request iiurlwidth=1920 and use thumburl. US government photos (DoD/DVIDS, White House, State Dept) are usually public domain; CC BY/BY-SA ones need an artist credit, which the Artist field gives (strip HTML). Check that a 'CC0' event photo isn't a TV broadcast still before using it. Send a User-Agent header.