API:Licensing

From MediaWiki.org
Jump to: navigation, search

There are several aspects to the copyright and licensing of information you retrieve or edit through an API.

The entry points to APIs (e.g. www.mediawiki.org//w/api.php should present this information (phab:T42459 "Wikimedia [action] API makes no mention of terms of use or licensing information")

Content you retrieve through the API[edit]

You should properly provide credit for content you retrieve through the API. In general has the same license as reported on the wiki from which you retrieved it. This license is displayed in the footer of pages, for example, www.mediawiki.org's content license is shown at the bottom of main namespace pages, it is MediaWiki:Wikimedia-copyright and currently shows

Text is available under the <a href="https://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. See <a href="https://wikimediafoundation.org/wiki/Terms_of_Use">Terms of Use</a> for details.

The content license may be different in different pages and areas.

  • For example,on www.mediawiki.org the public-domain help pages such as Help:Images are deliberately licensed under a less restrictive license to make it easier for help content to be reused on other MediaWiki installations without any restriction:

    Contributions to the PD Help are released as public domain via the CC0 waiver."

  • Similarly, the facts on Wikidata are under a different license than other content, hence the footer on Wikidata pages is different. As of September 2015 it displays

    All structured data from the main and property namespace is available under the Creative Commons CC0 License; text in the other namespaces is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply.

The "free open knowledge" content you will be retrieving, in general, will be from the main namespace of a wiki.

rightsinfo query[edit]

You can programmatically determine the general license of content on a wiki by querying for the rightsinfo meta property of the wiki. This uses a query for siteinfo metadata to get rightsinfo about the wiki.

This does not take into account different copyrights asserted in different namespaces, as described above.

Reuse of multimedia content[edit]

In the case of multimedia files, the use to which the media is put affects the "fair use" defense of it. Presenting an image that contains another company's logo with the intent to make it appear that your service is being offered by that company may be a violation, even if the image is published with a liberal license.

Creating content through APIs[edit]

Using the APIs you can also put new data on the server. Such edits fall under the Terms of Use of the server, just as if a human being edited the wiki. For example, on www.mediawiki.org. the footer MediaWiki:Wikimedia-copyright references the terms of use at foundation:Terms of use, requiring you for example to not cause harm to Wikimedia infrastructure. While you're editing, the message MediaWiki:Wikimedia-copyrightwarning contains additional guidance.

API documentation[edit]

The generated documentation for the API generally falls under the license of the code implementing the API, for example GPL v2 and above. (You're unlikely to reuse this, unless you build your own API libraries on top of)

See also[edit]

  • Developer app guidelines on the Wikimedia Foundation site discusses reusing Wikimedia content along with logo and wordmark restrictions