GlobalBiodiversity
The GlobalBiodiversity service provides information on millions of species from around the globe.
RPCS
- GlobalBiodiversity.getChildren(id: BoundedInteger<0>, page: BoundedInteger<1>?)
Get the taxonomical children of a node/entry in the tree of life.
Because a node may have many children, only up to 20 children are returned per call to this RPC. You can check if there are more children by increasing the
page
number of children to return. When there are no more children, an empty list is returned.Arguments:
id: BoundedInteger<0>
(BoundedInteger) - id of the taxonomy entry to get the children ofpage: BoundedInteger<1>?
(BoundedInteger) - page number of results to return (default1
)
Returns:
List<Object>
(List | Object) - taxonomical children of the entry
- GlobalBiodiversity.getImage(url: String)
Get an image from an image URL returned by
GlobalBiodiversity.getImageURLs()
.Arguments:
url: String
(String) - URL of the image to load
Returns:
Image
(Image) - the downloaded image
- GlobalBiodiversity.getMediaURLs(type: Enum<image, sound>?, id: BoundedInteger<0>, page: BoundedInteger<1>?)
Get the URL of any media associated with a particular taxonomy node/entry in the tree of life. These URLs can then be passed to
GlobalBiodiversity.getImage()
orGlobalBiodiversity.getSound()
to get the image/sound.Because there may be many associated media entries, only up to 20 entries are returned per call to this RPC (though each entry may have multiple URLs). You can check if there are more URLs by increasing the
page
number of results to return. When there are no more URLs, an empty list is returned.Arguments:
type: Enum<image, sound>?
(Enum) - the type of media to returnid: BoundedInteger<0>
(BoundedInteger) - id of the taxonomy node to get media frompage: BoundedInteger<1>?
(BoundedInteger) - page number of results to return (default1
)
Returns:
List<String>
(List | String) - zero or more associated media URLs
- GlobalBiodiversity.getParent(id: BoundedInteger<0>)
Get the taxonomical parent of a node/entry in the tree of life.
Arguments:
id: BoundedInteger<0>
(BoundedInteger) - id of the taxonomy entry to get the parent of
Returns:
Object
(Object) - taxonomical parent of the entry
- GlobalBiodiversity.getSound(url: String)
Get a sound from a sound URL returned by
GlobalBiodiversity.getMediaURLs()
.Arguments:
url: String
(String) - URL of the sound to load
Returns:
Audio
(Audio) - the downloaded sound
- GlobalBiodiversity.searchSpecies(nameType: SpeciesNameType, name: BoundedString<3>, page: BoundedInteger<1>?)
Search the database for species of the given common or scientific name.
Because there may be many matches, only up to 20 search results are returned per call to this RPC. You can check if there are more matches by increasing the
page
number of results to return. When there are no more results, an empty list is returned.Arguments:
nameType: SpeciesNameType
(SpeciesNameType) - the type of name to search forname: BoundedString<3>
(BoundedString) - name of the species to search forpage: BoundedInteger<1>?
(BoundedInteger) - page number of results to return (default1
)