# GBIF occurrence record API

Get GBIF Occurrence Details via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as key, output, raw, and retrieve structured data including GBIF occurrence identifier, reported scientific name, type of occurrence evidence, recorded event date, and latitude to inspect mapped records, and trace source datasets.

Documentation: https://openany.si/gbif/gbif-occurrence-record-api/97a5d114-e932-4f4c-9baa-4fbac9315f6f/
API ID: 97a5d114-e932-4f4c-9baa-4fbac9315f6f
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrence
Page update time: 2026-12-03T02:43:46.256Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:45.450Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## GBIF Occurrence Details API

key identifies an occurrence, not a species. The response links an observation or specimen record to taxonomy and its source dataset; issues and uncertainty\_m help interpret geographic data.

## What You Can Build

- **Inspect mapped records**: Keep issues and uncertainty alongside coordinates.
- **Trace source datasets**: Follow dataset\_key for source metadata.

## Returned Data

| Field | Meaning |
| --- | --- |
| `key` | GBIF occurrence identifier |
| `scientific_name` | Reported scientific name |
| `basis_of_record` | Type of occurrence evidence |
| `event_date` | Recorded event date |
| `lat` | Latitude when available |
| `lon` | Longitude when available |
| `issues` | Data-quality issue flags |
| `license` | Record license |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GBIF occurrence record API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "GBIF occurrence key or a gbif.org/occurrence link."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "key"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "accepted_scientific_name": {
      "type": "string"
    },
    "basis_of_record": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "catalog_number": {
      "type": "string"
    },
    "class": {
      "type": "string"
    },
    "collection_code": {
      "type": "string"
    },
    "common_name": {
      "type": "null"
    },
    "continent": {
      "type": "string"
    },
    "country": {
      "type": "string"
    },
    "country_code": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "dataset_key": {
      "type": "string"
    },
    "dataset_name": {
      "type": "string"
    },
    "date_identified": {
      "type": "null"
    },
    "day": {
      "type": "integer"
    },
    "depth_m": {
      "type": "null"
    },
    "elevation_m": {
      "type": "integer"
    },
    "establishment_means": {
      "type": "null"
    },
    "event_date": {
      "type": "string"
    },
    "family": {
      "type": "string"
    },
    "fetched_at": {
      "type": "string"
    },
    "gbif_id": {
      "type": "string"
    },
    "genus": {
      "type": "string"
    },
    "identified_by": {
      "type": "null"
    },
    "identified_by_ids": {
      "type": "array",
      "items": {}
    },
    "individual_count": {
      "type": "integer"
    },
    "institution_code": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "iucn_red_list": {
      "type": "string"
    },
    "key": {
      "type": "integer"
    },
    "kingdom": {
      "type": "string"
    },
    "lat": {
      "type": "number"
    },
    "license": {
      "type": "string"
    },
    "life_stage": {
      "type": "null"
    },
    "locality": {
      "type": "string"
    },
    "lon": {
      "type": "number"
    },
    "media": {
      "type": "array",
      "items": {}
    },
    "month": {
      "type": "integer"
    },
    "occurrence_id": {
      "type": "string"
    },
    "occurrence_status": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "phylum": {
      "type": "string"
    },
    "publishing_org_key": {
      "type": "string"
    },
    "rank": {
      "type": "string"
    },
    "recorded_by": {
      "type": "string"
    },
    "recorded_by_ids": {
      "type": "array",
      "items": {}
    },
    "references": {
      "type": "null"
    },
    "rights_holder": {
      "type": "string"
    },
    "scientific_name": {
      "type": "string"
    },
    "sex": {
      "type": "null"
    },
    "species": {
      "type": "null"
    },
    "species_key": {
      "type": "null"
    },
    "state_province": {
      "type": "string"
    },
    "taxon_key": {
      "type": "integer"
    },
    "uncertainty_m": {
      "type": "null"
    },
    "url": {
      "type": "string"
    },
    "year": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrence?key=1258202889&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "accepted_scientific_name": "Alfaroa Standl.",
  "basis_of_record": "PRESERVED_SPECIMEN",
  "cached": false,
  "catalog_number": "100889255",
  "class": "Magnoliopsida",
  "collection_code": "Tropicos",
  "common_name": null,
  "continent": "NORTH_AMERICA",
  "country": "Panama",
  "country_code": "PA",
  "credits_used": 1,
  "dataset_key": "e053ff53-c156-4e2e-b9b5-4462e9625424",
  "dataset_name": "Tropicos",
  "date_identified": null,
  "day": 11,
  "depth_m": null,
  "elevation_m": 753,
  "establishment_means": null,
  "event_date": "2016-01-11",
  "family": "Juglandaceae",
  "fetched_at": "2026-11-19T12:26:17.653Z",
  "gbif_id": "1258202889",
  "genus": "Alfaroa",
  "identified_by": null,
  "identified_by_ids": [],
  "individual_count": 3,
  "institution_code": "PMA",
  "issues": [
    "COORDINATE_ROUNDED",
    "GEODETIC_DATUM_ASSUMED_WGS84",
    "TAXON_ID_NOT_FOUND",
    "OCCURRENCE_STATUS_INFERRED_FROM_INDIVIDUAL_COUNT",
    "COLLECTION_MATCH_NONE",
    "INSTITUTION_MATCH_FUZZY"
  ],
  "iucn_red_list": "NE",
  "key": 1258202889,
  "kingdom": "Plantae",
  "lat": 8.68,
  "license": "http://creativecommons.org/licenses/by/4.0/legalcode",
  "life_stage": null,
  "locality": "Corregimiento del Harino. Parque Nacional General de División Omar Torrijos Herrera (PNGDOTH) el Copé, camino hacia La Rica, aproximadamente a 1.5 Km. al NO de la cabaña de visitantes del parque. Parcela Los corazones 1 (PP-Corazones-1).",
  "lon": -80.600556,
  "media": [],
  "month": 1,
  "occurrence_id": "urn:catalog:MO:Tropicos:100889255",
  "occurrence_status": "DETECTED",
  "order": "Fagales",
  "phylum": "Tracheophyta",
  "publishing_org_key": "90fd6680-349f-11d8-aa2d-b8a03c50a862",
  "rank": "genus",
  "recorded_by": "Rodolfo Flores|M. Madrid|Y. Peña|L. De Gracia V.|R. Berenguer|J. Rodríguez|J. Vargas|A. Gonzalez C.|C. López V.|R. Vergara E.|H. Moreno",
  "recorded_by_ids": [],
  "references": null,
  "rights_holder": "Missouri Botanical Garden",
  "scientific_name": "Alfaroa Standl.",
  "sex": null,
  "species": null,
  "species_key": null,
  "state_province": "Coclé",
  "taxon_key": 7310533,
  "uncertainty_m": null,
  "url": "https://www.gbif.org/occurrence/1258202889",
  "year": 2016
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Is key a species identifier?
No. It is an occurrence key; taxon_key and dataset_key identify different resources.

### Are coordinates always available?
No. Preserve null coordinates and inspect issues and uncertainty_m before mapping.

### Is event_date the API retrieval time?
No. event_date describes the recorded event; fetched_at describes retrieval metadata.

### Does one record always mean one animal?
No. basis_of_record and individual_count describe the record; do not assume each row is one individual.

### Where can I check attribution?
Read license, rights_holder and source dataset metadata.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or use output=json.

## Available implementations
- apish: https://openany.si/gbif/gbif-occurrence-record-api/97a5d114-e932-4f4c-9baa-4fbac9315f6f/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
