Skip to content

Httr2 ebird taxonomy v2#97

Merged
mstrimas merged 2 commits intoCornellLabofOrnithology:mainfrom
Rafnuss:httr2-ebird-taxonomy-v2
Mar 20, 2026
Merged

Httr2 ebird taxonomy v2#97
mstrimas merged 2 commits intoCornellLabofOrnithology:mainfrom
Rafnuss:httr2-ebird-taxonomy-v2

Conversation

@Rafnuss
Copy link
Copy Markdown
Contributor

@Rafnuss Rafnuss commented Mar 19, 2026

This PR migrates taxonomy retrieval to use modern request tooling (httr2) and updates the eBird taxonomy endpoint to api.ebird.org/v2.

Changes made

  • Updated get_ebird_taxonomy() to use:
    • https://api.ebird.org/v2/ref/taxonomy/ebird
    • httr2::request() + httr2::req_url_query() + httr2::req_perform()
    • httr2::resp_check_status() and httr2::resp_body_string()
  • Kept fmt = "csv" and existing output schema/column mapping unchanged.
  • Replaced httr with httr2 in DESCRIPTION imports.

@mstrimas mstrimas merged commit f07c489 into CornellLabofOrnithology:main Mar 20, 2026
5 checks passed
@mstrimas
Copy link
Copy Markdown
Contributor

Thanks for the PR, looks great!

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.

2 participants