Skip to main content

Snippets

Here is some request samples

Third party libraries

The node, ruby and python snippets require third-party libraries:



Genus​

Get all genus​





Plants & Species​

Reminder

In all the following samples, /plants can be switched to /species and /species can be switched to /plants. The only difference is that /species API calls will return matching species, subspecies, varieties etc..., and /plants API calls will only return main species (without all the children species).

Get all plants​


Get all species​


Get only edible plants​


Get tallest trees​

Explanation
  • Get all plants
  • With tree ligneous type filter[ligneous_type]=tree
  • Without plants with no maximum height filter_not[maximum_height_cm]=null
  • Ordered by maximum height descending (highest first) order[maximum_height_cm]=desc

Get plants recorded in France​

Zone slugs are the lowercased WGSRPD codes: fra is France. See Distributions to learn more about distribution zones.


Get plants introduced in Marion-Prince Edward​


Get plants native to Tibet​


Get species with a maximum height between 5 cm and 20 cm​

On this endpoint the upper bound is excluded (5 ≤ height < 20). See how the bounds are read.


Get full-sun species under one metre, native to France​

light is an Ellenberg class from 1 to 9; range[light]=7 keeps classes 7 to 9. Explained step by step in the filtering guide.


Get species with red flowers​


Get search for coconut species​


Get species with oldest discoveries first​




Zones & Distributions​

See Distributions to learn more about distributions zones.

Get all countries / zones​


Get countries / zones with less than 10 species​