Get Occurrences
get_occurrencesGet georeferenced observation records for a species with coordinates, dates, and sources. Pass either name (a scientific name like "Danaus plexippus" — resolved automatically) or a numeric GBIF backbone key. Filter by country code (e.g., 'US', 'BR', 'AU') to narrow results geographically.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": 2436436,
"limit": 100
},
"name": "get_occurrences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | GBIF backbone taxon key (integer), e.g. 5133088. Alternative to `name`. | |
| name | No | Scientific name, e.g. "Danaus plexippus". Resolved to a GBIF backbone taxon key automatically. Use this unless you already hold a key. | |
| limit | No | Maximum records to return (1-300, default 20) | |
| country | No | ISO 3166-1 alpha-2 country code to filter occurrences (e.g., "US", "DE") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Total number of occurrence records | |
| taxon_key | No | GBIF backbone taxon key the query actually used | |
| occurrences | Yes | Array of occurrence records | |
| end_of_records | Yes | Whether all available records have been returned | |
| resolved_taxon | No | Backbone taxon the name resolved to (null when a numeric key was supplied) |