GBIF API

Beginner's Pick Science & Math / No Auth Required Beginner HTTPS CORS
Free to Use
70 B
Measured Score 0 50 100 Speed 13/30 Consistency 20/20 Security 18/20 Browser access 15/15 Transparency 4/15 TESTED 2026-08-10

Overview

GBIF (Global Biodiversity Information Facility) is a free, open API providing access to hundreds of millions of species occurrence records from around the world. You can search for species by name, explore occurrence data on a map, and retrieve specimen records from museums and research institutions. No authentication is required to start exploring.

Beginner Tip

Start with the species search endpoint using a common species name to get the taxon key, then use that key to fetch occurrence records. All responses are JSON and well-documented on the GBIF developer portal.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.gbif.org/v1/species/match?name=Panthera+leo
Result
HTTP 200 · application/json · 433 bytes
Response time
294 ms (median of 3) · fastest 285 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
usageKey integer 5219404
scientificName string Panthera leo (Linnaeus, 1758)
canonicalName string Panthera leo
rank string SPECIES
status string ACCEPTED
confidence integer 99
matchType string EXACT
kingdom string Animalia
phylum string Chordata
order string Carnivora
family string Felidae
genus string Panthera
species string Panthera leo
kingdomKey integer 1

Captured Response

Captured from a real request to https://api.gbif.org/v1/species/match?name=Panthera+leo on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "usageKey": 5219404,
  "scientificName": "Panthera leo (Linnaeus, 1758)",
  "canonicalName": "Panthera leo",
  "rank": "SPECIES",
  "status": "ACCEPTED",
  "confidence": 99,
  "matchType": "EXACT",
  "kingdom": "Animalia",
  "phylum": "Chordata",
  "order": "Carnivora",
  "family": "Felidae",
  "genus": "Panthera",
  "species": "Panthera leo",
  "kingdomKey": 1,
  "…": "(7 more fields)"
}

Field Reference

usageKey Unique GBIF taxon identifier used to fetch occurrence records.
scientificName Full scientific name including authorship.
canonicalName Simplified scientific name without authorship.
rank Taxonomic rank of the matched name (e.g., SPECIES, GENUS).
matchType Quality of the name match: EXACT, FUZZY, HIGHERRANK, or NONE.
confidence Confidence score (0-100) for how well the name matched.

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.gbif.org/v1/species/match?name=Panthera+leo";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json
{
  "timestamp": "2026-08-10T19:56:39.852+00:00",
  "status": 404,
  "error": "Not Found",
  "path": "/v1/species/match/apisscore-nonexistent-path"
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

matchType: NONE in response The species name was not recognized or is too ambiguous.
Try using the full scientific binomial name (genus + species) instead of a common name.
400 Bad Request An invalid query parameter was passed in the request URL.
Check the GBIF API docs and ensure parameter names and values are correctly formatted.
Very large response payload The occurrence search returned too many results at once.
Add limit=20 and offset=0 parameters to paginate through results.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 13/30
Consistency 20/20
Security 18/20
Browser access 15/15
Transparency 4/15
Endpoint Response Time 294ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Science & Math
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →