Skip to content

Update for IUCN API v4#21

Open
matthewharris02 wants to merge 12 commits intoecoscape-earth:mainfrom
matthewharris02:api-update
Open

Update for IUCN API v4#21
matthewharris02 wants to merge 12 commits intoecoscape-earth:mainfrom
matthewharris02:api-update

Conversation

@matthewharris02
Copy link
Copy Markdown

@matthewharris02 matthewharris02 commented Apr 24, 2025

Updating the IUCN API to v4.

Main changes:

  • New API has a less direct way of getting the habitat data, so I adapted the approach from the iucnredlist R package.
  • Change the way of authorization from parameter to header in requests.get()
  • Some key word changes
  • Habitat codes in API now with _ not .
  • Removal of region option

A test script is also included in the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant