ropensci / rredlist

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

Collate subheading information from Habitat & Ecology #55

Closed arw36 closed 1 day ago

arw36 commented 7 months ago

I suspect that by Red List API, this does not currently seem possible. But there are several subheadings in the "Habitat and Ecology" section that do not appear accessible via the package, when downloading rl_narrative or rl_search. Particularly: SYSTEM, HABITAT TYPE, GENERATION LENGTH (YEARS), CONGREGATORY, MOVEMENT PATTERNS, CONTINUING DECLINE IN AREA, EXTENT AND/OR QUALITY OF HABITAT

Has this come up before?

willgearty commented 7 months ago

Thanks for opening an issue!

For the SYSTEM field, there should be three "_system" columns in the return of rl_search(). Habitat information is returned as part of rl_narrative(), and for more specific habitat information, you can use rl_habitat().

Unfortunately, I don't see a way to access the other fields that you mentioned from the Red List API, but it's possible that some of these fields would be possible to access via the Red List Spatial API.

willgearty commented 7 months ago

It's also possible that these fields will be accessible when the new version of the API is released.

willgearty commented 2 weeks ago

I can confirm that these fields are accessible in the new version of the API, under the "Supplementary Info" of an individual assessment. Feel free to try out a development version of rredlist which returns this information with the rl_assessment function.

remotes::install_github("ropensci/rredlist@api_v4")
arw36 commented 2 weeks ago

oo sweet! Will take a look.