{"id":32155750,"url":"https://github.com/jdiaz97/iucnredlist.jl","last_synced_at":"2025-10-21T12:13:48.362Z","repository":{"id":64153059,"uuid":"556032293","full_name":"jdiaz97/IUCNRedList.jl","owner":"jdiaz97","description":"API Wrapper for the IUCN Red List. ","archived":false,"fork":false,"pushed_at":"2023-06-29T18:54:42.000Z","size":26,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-23T03:48:17.329Z","etag":null,"topics":["biodiversity","data-science","ecology"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdiaz97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-22T22:52:51.000Z","updated_at":"2023-12-23T02:11:40.000Z","dependencies_parsed_at":"2023-01-15T00:45:37.156Z","dependency_job_id":null,"html_url":"https://github.com/jdiaz97/IUCNRedList.jl","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":"0.022727272727272707","last_synced_commit":"54fb181d8ce56fd7f024d9f2eafa096ff92d5bae"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jdiaz97/IUCNRedList.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdiaz97%2FIUCNRedList.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdiaz97%2FIUCNRedList.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdiaz97%2FIUCNRedList.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdiaz97%2FIUCNRedList.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdiaz97","download_url":"https://codeload.github.com/jdiaz97/IUCNRedList.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdiaz97%2FIUCNRedList.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280257711,"owners_count":26299670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["biodiversity","data-science","ecology"],"created_at":"2025-10-21T12:13:46.982Z","updated_at":"2025-10-21T12:13:48.357Z","avatar_url":"https://github.com/jdiaz97.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IUCNRedList.jl\nAPI Wrapper for IUCN Red List. \n\n![version](https://img.shields.io/github/v/tag/jdiaz97/IUCNRedList.jl?sort=semver\u0026style=flat-square)\n\nAre you a data scientist and you are working in biodiversity? you might find this useful.\n\n# What this does\n\nImplements all of the functionalities of the IUCN Red List API in an easy to use way.\n\nIn some cases, you can call 4 different endpoints from only 1 function, thanks to multiple dispatch.\n\n# How it works\n\nSet your token, then use all of the wonderful functionality.\n\n```julia\nset_token(\"Your Token\")\n```\n\n(If you don't have a token, you can get it [here](https://apiv3.iucnredlist.org/api/v3/token))\n\nCheck the multiple methods of the functions. If region is not added as an argument then it will return a global assessment.\n\nYou can use ID or Name (scientific) of the species.\n\nFor more details, you can check the official [API Reference](https://apiv3.iucnredlist.org/api/v3/docs). Nevertheless the functions are pretty well commented in the source code, so pretty much everything you need is here.\n\n# Functions\n\n## Helpers\n\n### `version()`\n\nTo check what version of the IUCN Red List is driving the API\n\n```julia\nversion()\n```\n\n### `countries()`\n\nTo get a list of countries\n\n```julia\ncountries()\n```\n\n### `species_by_country()`\n\nTo get a list of species by country isocode\n\n```julia\nspecies_by_country(isocode::String)\n```\n\n### `regions()`\n\nRegion identifiers\n\n```julia\nregions()\n```\n\n## Species details\n\n### `species_all()`\n\nTotal Species published, as well as their Red List Category.\n\n```julia\nspecies_all(page::Int64)\nspecies_all(page::Int64,region::String)\n```\n\n### `species_count()`\n\nTotal Species count.\n\n```julia\nspecies_count()\nspecies_count(region::String)\n```\n\n### `species_citation()`\n\nTo get the citation for a given species assessment.\n\n```julia\nspecies_citation(name::String)\nspecies_citation(name::String,region::String)\nspecies_citation(id::Int64)\nspecies_citation(id::Int64,region::String)\n```\n\n### `species_by_category()`\n\nTo get a list of species by category\n\n```julia\nspecies_by_category(category::String)\n```\n\n### `species_indv()`\n\nTo get information about individual species.\n\n```julia\nspecies_indv(name::String)\nspecies_indv(name::String,region::String)\nspecies_indv(id::Int64)\nspecies_indv(id::Int64,region::String)\n```\n\n### `species_narrative()`\n\nTo get narrative information about individual species.\n\nPlease be aware that the text contains HTML markup in some places for formatting purposes.\n\n```julia\nspecies_narrative(name::String)\nspecies_narrative(name::String,region::String)\nspecies_narrative(id::Int64)\nspecies_narrative(id::Int64,region::String)\n```\n\n### `species_synonyms()`\n\n```julia\nspecies_synonyms(name::String)\n```\n\n### `species_common_names()`\n\n```julia\nspecies_common_names(name::String)\n```\n\n### `species_occurrence()`\n\n```julia\nspecies_occurrence(name::String)\nspecies_occurrence(name::String,region::String)\nspecies_occurrence(id::Int64)\nspecies_occurrence(id::Int64,region::String)\n```\n\n### `species_history()`\n\n```julia\nspecies_history(name::String)\nspecies_history(name::String,region::String)\nspecies_history(id::Int64)\nspecies_history(id::Int64,region::String)\n```\n\n## Other data\n\n### `threats()`\n\n```julia\nthreats(name::String)\nthreats(name::String,region::String)\nthreats(id::Int64)\nthreats(id::Int64,region::String)\n```\n\n### `habitats()`\n\n```julia\nhabitats(name::String)\nhabitats(name::String,region::String)\nhabitats(id::Int64)\nhabitats(id::Int64,region::String)\n```\n\n### `conservation_measures()`\n\n```julia\nconservation_measure(name::String)\nconservation_measure(name::String,region::String)\nconservation_measure(id::Int64)\nconservation_measure(id::Int64,region::String)\n```\n\n### `growth_forms()`\n\n```julia\ngrowth_forms(name::String)\ngrowth_forms(name::String,region::String)\ngrowth_forms(id::Int64)\ngrowth_forms(id::Int64,region::String)\n```\n\n### `comprehensive_groups()`\n\n```julia\ncomprehensive_groups()\ncomprehensive_groups(group::String)\n```\n\n## Native functions\n\n### `melt_dict()`\n\nThis will reorganize the dictionary, merging the result with the original dictionary. \n\n```julia\nmelt_dict(dict::Dict)\n```\n\n### `set_token`\n\nThis will give you access to the API funcionalities\n\n```julia\nset_token(IUCNtoken::String)\n```\n\n# Usage\n\n```julia\nusing IUCNRedList\n\nset_token(\"YOUR TOKEN\")\n\nres = species_narrative(\"Quercus robur\") # here you have the useful information\nres = melt_dict(res) # here you reorder the information more nicely\n\n# I like to see the data as dataframes \nusing DataFrames\n\nDataFrame(res) # 1×11 DataFrame\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdiaz97%2Fiucnredlist.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdiaz97%2Fiucnredlist.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdiaz97%2Fiucnredlist.jl/lists"}