ropensci / rredlist

IUCN Red List API Client
https://docs.ropensci.org/rredlist
Other
50 stars 15 forks source link

Collecting species by population trend? #48

Closed lime-n closed 1 month ago

lime-n commented 3 years ago

Hi,

I was wondering if it were possible to collect species by population trend? i.e. decreasing, increasing, stable or unknown?

ingomiller commented 1 year ago

Any updates on this?

willgearty commented 1 year ago

Sorry for the delay on this @lime-n and @ingomiller. I took over maintenance of this package late last year and haven't had a chance to look into this issue/inquiry. Hopefully I'll have some free time soon.

willgearty commented 1 year ago

From a quick glance at the Red List API, this does not currently seem possible.

awpark commented 8 months ago

How about if you used something like:

x <- rl_narrative('Fratercula arctica', parse = FALSE, key=PUT YOUR TOKEN HERE)

then

x$result[[1]]$populationtrend

willgearty commented 2 months ago

Just wanted to report that this is now a valid query in the new IUCN API and is now a function in the development version of rredlist. Feel free to give it a try and let me know what you think!

remotes::install_github("ropensci/rredlist@api_v4")