Pixabay

The Pixabay Service provides access to free images released under Creative Commons CC0. For more information, check out https://pixabay.com

RPCS

Pixabay.getImage(url: String)

Retrieve an image from Pixabay from the URL

Arguments:

  • url: String info - URL of the image to retrieve

Returns: Image - the requested image

Pixabay.searchAll(keywords: String, maxHeight: Number?, minHeight: Number?)

Search Pixabay for an image matching the keywords. The returned data is a list of structeud data objects containing information about each matching image. Notably, the image_url field of each match can be passed to Pixabay.getImage().

Arguments:

  • keywords: String info - Search query
  • maxHeight: Number? info - Restrict query to images smaller than maxHeight
  • minHeight: Number? info - Restrict query to images larger than minHeight

Returns: List<Object> info - list of matching images

Pixabay.searchIllustration(keywords: String, maxHeight: Number?, minHeight: Number?)

Search Pixabay for an illustration matching the keywords. This is identical to Pixabay.searchAll() except that only illustrations are returned.

Arguments:

  • keywords: String info - Search query
  • maxHeight: Number? info - Restrict query to images smaller than maxHeight
  • minHeight: Number? info - Restrict query to images larger than minHeight

Returns: List<Object> info - list of matching images

Pixabay.searchPhoto(keywords: String, maxHeight: Number?, minHeight: Number?)

Search Pixabay for a photo matching the keywords. This is identical to Pixabay.searchAll() except that only photos are returned.

Arguments:

  • keywords: String info - Search query
  • maxHeight: Number? info - Restrict query to images smaller than maxHeight
  • minHeight: Number? info - Restrict query to images larger than minHeight

Returns: List<Object> info - list of matching images