Commons:Commons API

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

The following is data used by the Commons API, an (experimental) API for Commons files making reuse easier for third parties. Don't change anything here unless you know vaguely what you're doing! Contact for this page and the Commons API is Magnus Manske.

Ignore categories[edit]

In this section, list all categories which should not appear on the API category list for a file, because they may be confusing, misleading, or useless to a third-party user.

  • Media with locations

License data[edit]

  • This section contains data about individual license categories.
  • Each level 3 heading ("===") has to be the name of a category (make sure upper/lowercase are correct!).
  • Key/values pairs are annotated as ";:" lists. Everything else will be ignored.
  • Instead of duplication information for similar categories, you can base a category on one defined before using the "based_on" key and the category name as value. Example: "PD" and "Public domain". "based_on" has to be the first key in the list, others can follow (see "Author died more than 70 years ago public domain images").

GFDL[edit]

full_name
GNU Free Documentation License
attach_full_license_text
1
attribute_author
1
keep_under_same_license
1
keep_under_similar_license
0
license_logo_url
http://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Heckert_GNU_white.svg/64px-Heckert_GNU_white.svg.png
license_info_url
http://www.gnu.org/copyleft/fdl.html
license_text_url
http://www.gnu.org/licenses/fdl.txt

CC-BY-3.0[edit]

full_name
Creative Commons Attribution V3.0
attach_full_license_text
0
attribute_author
1
keep_under_same_license
0
keep_under_similar_license
0
license_logo_url
http://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png
license_info_url
http://creativecommons.org/licenses/by/3.0/
license_text_url
http://creativecommons.org/licenses/by/3.0/legalcode

CC-BY-2.5[edit]

full_name
Creative Commons Attribution V2.5
attach_full_license_text
0
attribute_author
1
keep_under_same_license
0
keep_under_similar_license
0
license_logo_url
http://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png
license_info_url
http://creativecommons.org/licenses/by/2.5/
license_text_url
http://creativecommons.org/licenses/by/2.5/legalcode

CC-BY-SA-2.5[edit]

based_on
CC-BY-2.5
full_name
Creative Commons Attribution Share-Alike V2.5
keep_under_similar_license
1
license_info_url
http://creativecommons.org/licenses/by-sa/2.5/
license_text_url
http://creativecommons.org/licenses/by-sa/2.5/legalcode

CC-BY-SA-3.0[edit]

based_on
CC-BY-2.5
full_name
Creative Commons Attribution Share-Alike V3.0
license_info_url
http://creativecommons.org/licenses/by-sa/3.0/
license_text_url
http://creativecommons.org/licenses/by-sa/3.0/legalcode
keep_under_similar_license
1

FAL[edit]

full_name
Free Art License
license_info_url
http://artlibre.org/licence/lal/en
license_text_url
http://artlibre.org/licence/lal/en
attach_full_license_text
1
attribute_author
1
keep_under_same_license
1

PD[edit]

full_name
Public domain
attach_full_license_text
0
attribute_author
0
keep_under_same_license
0
keep_under_similar_license
0
license_logo_url
http://upload.wikimedia.org/wikipedia/commons/thumb/6/62/PD-icon.svg/64px-PD-icon.svg.png

Public domain[edit]

based_on
PD

Author died more than 70 years ago public domain images[edit]

based_on
PD
full_name
Public domain (author died more than 70 years ago)