birdlife_habitat: Get bird habitat information from BirdLife/IUCN

View source: R/birdlife.R

birdlife_habitatR Documentation

Get bird habitat information from BirdLife/IUCN

Description

Get bird habitat information from BirdLife/IUCN

Usage

birdlife_habitat(id)

Arguments

id

A single IUCN species ID

Value

a data.frame with level 1 and level 2 habitat classes, as well as importance ratings and occurrence type (e.g. breeding or non-breeding). The habitat classification scheme is described at https://www.iucnredlist.org/resources/classification-schemes

Author(s)

David J. Harris harry491@gmail.com

See Also

Other birdlife: birdlife_threats()

Examples

# Input validation runs before any HTTP request
try(birdlife_habitat(c(22721692, 103818789)))


if (interactive()) {
  # Setophaga chrysoparia
  birdlife_habitat(22721692)
  # Passer domesticus
  birdlife_habitat(103818789)
}


traits documentation built on April 10, 2026, 5:06 p.m.