🐝 CSWG SGCN Bee API
REST API for querying IUCN Red List bee species assessments
Species Endpoints
GET
/api/species
Get all species with basic info (name, category, assessment date)
GET
/api/species/id/:id
Get complete data for a single species (includes distribution, population, threats, habitats, etc.)
GET
/api/species/search/:term
Search species by scientific or common name
GET
/api/species/category/:category
Get species by Red List category
Categories: Endangered, Vulnerable, Near Threatened, Least Concern, Data Deficient, etc.
GET
/api/species/habitat/:habitatCode
Get species by habitat IUCN code
GET
/api/species/threat/:threatCode
Get species by threat IUCN code
GET
/api/species/state/:state
Get species by state name
Reference Data Endpoints
GET
/api/actions
Get all conservation action types with species counts
GET
/api/stats
Get summary statistics (total species, by category, top habitats, top threats)
Response Format
All endpoints return JSON. Species detail endpoint includes:
- Species info (scientific name, authority, synonyms, common name)
- Assessment (date, category, justification)
- Distribution (EOO, AOO, elevation, countries, narrative)
- Population (size, trend, generation length, narrative)
- Ecology (full text narrative)
- Habitats (IUCN codes and names)
- Threats (IUCN codes, timing, scope, severity, narrative)
- Conservation actions (IUCN codes and narrative)
- Research needs (IUCN codes and narrative)
- Use and trade
Examples