# GBIF occurrence search API

Search GBIF Occurrence via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as country, limit, output, and retrieve structured data including GBIF occurrence identifier, reported scientific name, type of occurrence evidence, recorded event date, and requested facet counts to map bounded evidence, compare aggregate coverage, and filter data quality.

Documentation: https://openany.si/market/apis/gbif/gbif-occurrence-search-api/?offering=d7752e04-5243-458c-b38f-3f3fbbe0ac25
API ID: d7752e04-5243-458c-b38f-3f3fbbe0ac25
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences
Page update time: 2026-12-03T02:43:46.265Z
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. Price update time: not supplied.
Contract update time: 2026-12-03T02:43:45.513Z. 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": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GBIF occurrence search 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": {
        "scientific_name": {
          "type": "string",
          "description": "Scientific name."
        },
        "taxon_key": {
          "type": "string",
          "description": "GBIF taxon key(s)."
        },
        "q": {
          "type": "string",
          "description": "Free text."
        },
        "country": {
          "type": "string",
          "description": "Country code(s) where recorded (ISO 2-letter)."
        },
        "publishing_country": {
          "type": "string",
          "description": "Publisher's country code(s)."
        },
        "continent": {
          "type": "string",
          "description": "Continent(s): africa, antarctica, asia, oceania, europe, north_america, south_america."
        },
        "state_province": {
          "type": "string",
          "description": "State or province name(s)."
        },
        "gadm_gid": {
          "type": "string",
          "description": "GADM area id(s), e.g. USA.5_1."
        },
        "lat": {
          "type": "number",
          "description": "Centre latitude (with lon and radius_km)."
        },
        "lon": {
          "type": "number",
          "description": "Centre longitude."
        },
        "radius_km": {
          "type": "number",
          "description": "Radius in km, up to 1000 (default 10)."
        },
        "geometry": {
          "type": "string",
          "description": "WKT POLYGON (counter-clockwise)."
        },
        "year": {
          "type": "string",
          "description": "Year or range, e.g. 2020 or 2000,2020."
        },
        "month": {
          "type": "string",
          "description": "Month or range."
        },
        "event_date": {
          "type": "string",
          "description": "Date or range, YYYY[-MM[-DD]][,YYYY...]."
        },
        "basis_of_record": {
          "type": "string",
          "description": "preserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence."
        },
        "dataset_key": {
          "type": "string",
          "description": "Dataset key(s)."
        },
        "publishing_org": {
          "type": "string",
          "description": "Publisher key(s)."
        },
        "institution_code": {
          "type": "string",
          "description": "Institution code(s)."
        },
        "catalog_number": {
          "type": "string",
          "description": "Catalogue number(s)."
        },
        "iucn_category": {
          "type": "string",
          "description": "IUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE."
        },
        "establishment_means": {
          "type": "string",
          "description": "native, introduced, vagrant, uncertain..."
        },
        "occurrence_status": {
          "type": "string",
          "description": "present or absent."
        },
        "media_type": {
          "type": "string",
          "description": "Has media: stillimage, movingimage, sound."
        },
        "license": {
          "type": "string",
          "description": "cc0_1_0, cc_by_4_0, cc_by_nc_4_0."
        },
        "has_coordinate": {
          "type": "boolean",
          "description": "Has coordinates."
        },
        "has_geospatial_issue": {
          "type": "boolean",
          "description": "Has (or has no) coordinate issues."
        },
        "elevation": {
          "type": "string",
          "description": "Elevation in m or range."
        },
        "depth": {
          "type": "string",
          "description": "Depth in m or range."
        },
        "coordinate_uncertainty": {
          "type": "string",
          "description": "Coordinate uncertainty in m or range."
        },
        "facet": {
          "type": "string",
          "description": "Count by field(s): basisOfRecord, country, publishingCountry, continent, datasetKey, publishingOrg, institutionCode, year, month, kingdomKey ... speciesKey, taxonKey, iucnRedListCategory, establishmentMeans, license, mediaType, issue, stateProvince, occurrenceStatus, protocol."
        },
        "facet_limit": {
          "type": "integer",
          "description": "Values per facet, 1-200 (default 20)."
        },
        "limit": {
          "type": "integer",
          "description": "Records per page, 0-20 (default 10; 0 for counts and facets only)."
        },
        "offset": {
          "type": "integer",
          "description": "Records to skip."
        },
        "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."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "facets": {
      "type": "array",
      "items": {}
    },
    "fetched_at": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "accepted_scientific_name": {
            "type": "string"
          },
          "basis_of_record": {
            "type": "string"
          },
          "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"
          },
          "dataset_key": {
            "type": "string"
          },
          "dataset_name": {
            "type": "string"
          },
          "date_identified": {
            "type": "string"
          },
          "day": {
            "type": "integer"
          },
          "depth_m": {
            "type": "null"
          },
          "elevation_m": {
            "type": "null"
          },
          "establishment_means": {
            "type": "null"
          },
          "event_date": {
            "type": "string"
          },
          "family": {
            "type": "string"
          },
          "gbif_id": {
            "type": "string"
          },
          "genus": {
            "type": "string"
          },
          "identified_by": {
            "type": "string"
          },
          "identified_by_ids": {
            "type": "array",
            "items": {}
          },
          "individual_count": {
            "type": "null"
          },
          "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": "string"
          },
          "locality": {
            "type": "string"
          },
          "lon": {
            "type": "number"
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "created": {
                  "type": "string"
                },
                "format": {
                  "type": "string"
                },
                "license": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              }
            }
          },
          "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": {}
          },
          "recorded_by_username": {
            "type": "string"
          },
          "references": {
            "type": "string"
          },
          "rights_holder": {
            "type": "string"
          },
          "scientific_name": {
            "type": "string"
          },
          "sex": {
            "type": "null"
          },
          "species": {
            "type": "string"
          },
          "species_key": {
            "type": "integer"
          },
          "state_province": {
            "type": "string"
          },
          "taxon_key": {
            "type": "integer"
          },
          "uncertainty_m": {
            "type": "null"
          },
          "url": {
            "type": "string"
          },
          "year": {
            "type": "integer"
          }
        }
      }
    },
    "next_offset": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "total": {
      "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/occurrences?country=US&limit=1&output=json&raw=0&scientific_name=Puma+concolor' \
  -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
{
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "facets": [],
  "fetched_at": "2026-11-19T12:26:18.493Z",
  "items": [
    {
      "accepted_scientific_name": "Puma concolor (Linnaeus, 1771)",
      "basis_of_record": "HUMAN_OBSERVATION",
      "catalog_number": "333239671",
      "class": "Mammalia",
      "collection_code": "Observations",
      "common_name": null,
      "continent": "NORTH_AMERICA",
      "country": "United States of America",
      "country_code": "US",
      "dataset_key": "50c9509d-22c7-4a22-a47d-8c48425ef4a7",
      "dataset_name": "iNaturalist research-grade observations",
      "date_identified": "2026-01-03T03:06:07",
      "day": 2,
      "depth_m": null,
      "elevation_m": null,
      "establishment_means": null,
      "event_date": "2026-01-02T12:30:25",
      "family": "Felidae",
      "gbif_id": "5938145577",
      "genus": "Puma",
      "identified_by": "wifeofplaid",
      "identified_by_ids": [],
      "individual_count": null,
      "institution_code": "iNaturalist",
      "issues": [
        "CONTINENT_DERIVED_FROM_COORDINATES",
        "TAXON_ID_NOT_FOUND"
      ],
      "iucn_red_list": "LC",
      "key": 5938145577,
      "kingdom": "Animalia",
      "lat": 44.59237,
      "license": "http://creativecommons.org/licenses/by-nc/4.0/legalcode",
      "life_stage": "Adult",
      "locality": "Cove Palisades State Park",
      "lon": -121.27005,
      "media": [
        {
          "created": "2025-12-31T05:41:54.000+00:00",
          "format": "image/jpeg",
          "license": "http://creativecommons.org/licenses/by-nc/4.0/",
          "type": "StillImage",
          "url": "https://inaturalist-open-data.s3.amazonaws.com/photos/604954105/original.jpg"
        },
        {
          "created": "2025-12-31T05:41:56.000+00:00",
          "format": "image/jpeg",
          "license": "http://creativecommons.org/licenses/by-nc/4.0/",
          "type": "StillImage",
          "url": "https://inaturalist-open-data.s3.amazonaws.com/photos/604954272/original.jpg"
        }
      ],
      "month": 1,
      "occurrence_id": "https://www.inaturalist.org/observations/333239671",
      "occurrence_status": "DETECTED",
      "order": "Carnivora",
      "phylum": "Chordata",
      "publishing_org_key": "28eb1a3f-1c15-4a95-931a-4af90ecb574d",
      "rank": "species",
      "recorded_by": "wifeofplaid",
      "recorded_by_ids": [],
      "recorded_by_username": "wifeofplaid",
      "references": "https://www.inaturalist.org/observations/333239671",
      "rights_holder": "wifeofplaid",
      "scientific_name": "Puma concolor (Linnaeus, 1771)",
      "sex": null,
      "species": "Puma concolor",
      "species_key": 2435099,
      "state_province": "Oregon",
      "taxon_key": 2435099,
      "uncertainty_m": null,
      "url": "https://www.gbif.org/occurrence/5938145577",
      "year": 2026
    }
  ],
  "next_offset": 1,
  "offset": 0,
  "total": 11917
}
```

## 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.

## Available implementations
- apish: https://openany.si/market/apis/gbif/gbif-occurrence-search-api/?offering=d7752e04-5243-458c-b38f-3f3fbbe0ac25

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