License Documentation


License on Item Documents

Every item document has an associated license to give API consumers more information about the way in which this item can be used. For example:

item = {
    content: 'Example content',
    geo: {
        formattedAddress: '123 Main St, Anytown, USA',
        coords: [30.12345, -97.5678]
    },
    license: 'cc'
    ...
}
  

The License API Endpoint

The license property is a key with which you can retrieve additional information from the /license endpoint. For example:

import requests

r = requests.get('http://api.crisis.net/license?key=cc&apikey=YOUR-API-KEY')
  

If you'd like to browse the full list of license documents, you can simply omit the key parameter:

import requests

r = requests.get('http://api.crisis.net/license?apikey=YOUR-API-KEY')
  

The license endpoint returns a list of license documents like this:

{
  createdAt: "2014-05-31T21:58:20.892Z",
  updatedAt: "2014-05-31T21:58:20.892Z",
  description: "A Creative Commons (CC) license is one of several public copyright licenses that enable the free distribution of an otherwise copyrighted work. A CC license is used when an author wants to give people the right to share, use and build upon a work that they have created.",
  key: "cc",
  name: "Creative Commons",
  url: "http://creativecommons.org/licenses/by-nc/3.0/legalcode"
}