OpenAny
Get API keyAPI Key
APIDataSearch & Research

gbif logo
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.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
1Selected implementation · last 30 days
Success rate · 30d
100.00%Selected implementation · last 30 days
USE THIS API

GBIF Occurrence Search API

Prepare your request, then continue with your agent.

Pricing

$0.002 / billing credit

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
GBIF Occurrence Search API

GBIF Occurrence Search API

Use taxon_key or scientific_name with optional spatial, date and provenance filters. limit accepts 0–20 (default 10); limit=0 requests counts and facets without occurrence rows.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs No required query parameters. Optional: scientific_name, taxon_key, q, country, publishing_country, continent, state_province, gadm_gid, lat, lon, radius_km, geometry, year, month, event_date, basis_of_record, dataset_key, publishing_org, institution_code, catalog_number, iucn_category, establishment_means, occurrence_status, media_type, license, has_coordinate, has_geospatial_issue, elevation, depth, coordinate_uncertainty, facet, facet_limit, limit, offset. JSON output only; fresh=1 bypasses cache and raw=0 trims raw blocks.
Selected implementation apish · GBIF occurrence search API
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Map bounded evidence: Combine lat, lon and radius_km or use geometry.
  • Compare aggregate coverage: Use limit=0 and facet for counts.
  • Filter data quality: Use has_coordinate and has_geospatial_issue with the intended scope.

Returned Data

Field Meaning
items[].key GBIF occurrence identifier
items[].scientific_name Reported scientific name
items[].basis_of_record Type of occurrence evidence
items[].event_date Recorded event date
facets Requested facet counts
next_offset Continuation offset
total Total matching occurrences

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  --data-urlencode country=US \
  --data-urlencode limit=1 \
  --data-urlencode output=json \
  --data-urlencode raw=0 \
  --data-urlencode 'scientific_name=Puma concolor'

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published GBIF Occurrence Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (39)
Scientific name.
GBIF taxon key(s).
Free text.
Country code(s) where recorded (ISO 2-letter).
Publisher's country code(s).
Continent(s): africa, antarctica, asia, oceania, europe, north_america, south_america.
State or province name(s).
GADM area id(s), e.g. USA.5_1.
Centre latitude (with lon and radius_km).
Centre longitude.
Radius in km, up to 1000 (default 10).
WKT POLYGON (counter-clockwise).
Year or range, e.g. 2020 or 2000,2020.
Month or range.
Date or range, YYYY[-MM[-DD]][,YYYY...].
preserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence.
Dataset key(s).
Publisher key(s).
Institution code(s).
Catalogue number(s).
IUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE.
native, introduced, vagrant, uncertain...
present or absent.
Has media: stillimage, movingimage, sound.
cc0_1_0, cc_by_4_0, cc_by_nc_4_0.
Has coordinates.
Has (or has no) coordinate issues.
Elevation in m or range.
Depth in m or range.
Coordinate uncertainty in m or range.
Count by field(s): basisOfRecord, country, publishingCountry, continent, datasetKey, publishingOrg, institutionCode, year, month, kingdomKey ... speciesKey, taxonKey, iucnRedListCategory, establishmentMeans, license, mediaType, issue, stateProvince, occurrenceStatus, protocol.
Values per facet, 1-200 (default 20).
Records per page, 0-20 (default 10; 0 for counts and facets only).
Records to skip.
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
GBIF occurrence search API · GET · View API reference
$0.002 / billing credit1
100.00%successP506.05s
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · apishUSD / billing credit
Pricing
$0.002

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
scientific_nameURL query parametersquerystringNo

Scientific name.

taxon_keyURL query parametersquerystringNo

GBIF taxon key(s).

qURL query parametersquerystringNo

Free text.

countryURL query parametersquerystringNo

Country code(s) where recorded (ISO 2-letter).

publishing_countryURL query parametersquerystringNo

Publisher's country code(s).

continentURL query parametersquerystringNo

Continent(s): africa, antarctica, asia, oceania, europe, north_america, south_america.

state_provinceURL query parametersquerystringNo

State or province name(s).

gadm_gidURL query parametersquerystringNo

GADM area id(s), e.g. USA.5_1.

latURL query parametersquerynumberNo

Centre latitude (with lon and radius_km).

lonURL query parametersquerynumberNo

Centre longitude.

radius_kmURL query parametersquerynumberNo

Radius in km, up to 1000 (default 10).

geometryURL query parametersquerystringNo

WKT POLYGON (counter-clockwise).

yearURL query parametersquerystringNo

Year or range, e.g. 2020 or 2000,2020.

monthURL query parametersquerystringNo

Month or range.

event_dateURL query parametersquerystringNo

Date or range, YYYY[-MM[-DD]][,YYYY...].

basis_of_recordURL query parametersquerystringNo

preserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence.

dataset_keyURL query parametersquerystringNo

Dataset key(s).

publishing_orgURL query parametersquerystringNo

Publisher key(s).

institution_codeURL query parametersquerystringNo

Institution code(s).

catalog_numberURL query parametersquerystringNo

Catalogue number(s).

iucn_categoryURL query parametersquerystringNo

IUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE.

establishment_meansURL query parametersquerystringNo

native, introduced, vagrant, uncertain...

occurrence_statusURL query parametersquerystringNo

present or absent.

media_typeURL query parametersquerystringNo

Has media: stillimage, movingimage, sound.

licenseURL query parametersquerystringNo

cc0_1_0, cc_by_4_0, cc_by_nc_4_0.

has_coordinateURL query parametersquerybooleanNo

Has coordinates.

has_geospatial_issueURL query parametersquerybooleanNo

Has (or has no) coordinate issues.

elevationURL query parametersquerystringNo

Elevation in m or range.

depthURL query parametersquerystringNo

Depth in m or range.

coordinate_uncertaintyURL query parametersquerystringNo

Coordinate uncertainty in m or range.

facetURL query parametersquerystringNo

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_limitURL query parametersqueryintegerNo

Values per facet, 1-200 (default 20).

limitURL query parametersqueryintegerNo

Records per page, 0-20 (default 10; 0 for counts and facets only).

offsetURL query parametersqueryintegerNo

Records to skip.

rawURL query parametersquerystringNo

0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNo

Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.

freshURL query parametersquerystringNo

1 skips the 24-hour cache and fetches live.

enum: "1"

outputURL query parametersquerystringNo

JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.

enum: "json"

recordsURL query parametersquerystringNo

With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • facetsunknown[]
  • fetched_atstring
  • itemsobject[]
    • accepted_scientific_namestring
    • basis_of_recordstring
    • catalog_numberstring
    • classstring
    • collection_codestring
    • common_namenull
    • continentstring
    • countrystring
    • country_codestring
    • dataset_keystring
    • dataset_namestring
    • date_identifiedstring
    • dayinteger
    • depth_mnull
    • elevation_mnull
    • establishment_meansnull
    • event_datestring
    • familystring
    • gbif_idstring
    • genusstring
    • identified_bystring
    • identified_by_idsunknown[]
    • individual_countnull
    • institution_codestring
    • issuesstring[]
    • iucn_red_liststring
    • keyinteger
    • kingdomstring
    • latnumber
    • licensestring
    • life_stagestring
    • localitystring
    • lonnumber
    • mediaobject[]
      • createdstring
      • formatstring
      • licensestring
      • typestring
      • urlstring
    • monthinteger
    • occurrence_idstring
    • occurrence_statusstring
    • orderstring
    • phylumstring
    • publishing_org_keystring
    • rankstring
    • recorded_bystring
    • recorded_by_idsunknown[]
    • recorded_by_usernamestring
    • referencesstring
    • rights_holderstring
    • scientific_namestring
    • sexnull
    • speciesstring
    • species_keyinteger
    • state_provincestring
    • taxon_keyinteger
    • uncertainty_mnull
    • urlstring
    • yearinteger
  • next_offsetinteger
  • offsetinteger
  • totalinteger

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.000000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Actual API.SH credits consumed$0.002000 / billing creditResponse · /credits_used · Numeric valueAlways1 billing credit · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.002000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · Live API.SH response · Minimal request

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 39

    Review these request fields before running. Keep the published provider and request method unchanged.

    scientific_name
    Scientific name.
    taxon_key
    GBIF taxon key(s).
    q
    Free text.
    country
    Country code(s) where recorded (ISO 2-letter).
    publishing_country
    Publisher's country code(s).
    continent
    Continent(s): africa, antarctica, asia, oceania, europe, north_america, south_america.
    state_province
    State or province name(s).
    gadm_gid
    GADM area id(s), e.g. USA.5_1.
    lat
    Centre latitude (with lon and radius_km).
    lon
    Centre longitude.
    radius_km
    Radius in km, up to 1000 (default 10).
    geometry
    WKT POLYGON (counter-clockwise).
    year
    Year or range, e.g. 2020 or 2000,2020.
    month
    Month or range.
    event_date
    Date or range, YYYY[-MM[-DD]][,YYYY...].
    basis_of_record
    preserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence.
    dataset_key
    Dataset key(s).
    publishing_org
    Publisher key(s).
    institution_code
    Institution code(s).
    catalog_number
    Catalogue number(s).
    iucn_category
    IUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE.
    establishment_means
    native, introduced, vagrant, uncertain...
    occurrence_status
    present or absent.
    media_type
    Has media: stillimage, movingimage, sound.
    license
    cc0_1_0, cc_by_4_0, cc_by_nc_4_0.
    has_coordinate
    Has coordinates.
    has_geospatial_issue
    Has (or has no) coordinate issues.
    elevation
    Elevation in m or range.
    depth
    Depth in m or range.
    coordinate_uncertainty
    Coordinate uncertainty in m or range.
    facet
    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
    Values per facet, 1-200 (default 20).
    limit
    Records per page, 0-20 (default 10; 0 for counts and facets only).
    offset
    Records to skip.
    raw
    0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
    fields
    Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
    fresh
    1 skips the 24-hour cache and fetches live.
    output
    JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.
    records
    With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row.
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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
    }

Common questions

How many records can one call return?

limit is 0–20 and defaults to 10; continue with offset or returned next_offset.

How do I request counts without records?

Set limit=0 and optionally choose facet and facet_limit.

How do radius and polygon queries work?

Use lat and lon with radius_km, or pass a counter-clockwise WKT POLYGON in geometry.

Do country and publishing_country mean the same thing?

No. country is where an occurrence was recorded; publishing_country is the publisher location.

How can I filter geographic issues?

Use has_coordinate and has_geospatial_issue, and still inspect returned issues and uncertainty values.

Can I request CSV or NDJSON?

This OpenAny implementation serves JSON only. Omit output or use output=json.

Use GBIF Occurrence Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.