APIDataSearch & Research

GBIF occurrence search API

Use the GBIF occurrence search API to retrieve biodiversity records, species records, filter and option values, model identification, geographic position and licence information as structured JSON from GBIF. Choose taxon identifier, search words and country as optional query conditions to select the source records or view required for your request. Use these results to study recorded species observations by place or period and inspect supporting observation details. GBIF serves the first 100,000 records of a query. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
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
Pricing
Connect your agent
On this page

Overview

Overview

GBIF occurrence search API

Use the GBIF occurrence search API to retrieve biodiversity records, species records, filter and option values, model identification, geographic position and licence information as structured JSON from GBIF. Choose taxon identifier, search words and country as optional query conditions to select the source records or view required for your request. Use these results to study recorded species observations by place or period and inspect supporting observation details. GBIF serves the first 100,000 records of a query. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.

GBIF occurrence search API

Biodiversity occurrence records (specimens, observations, samples) from thousands of institutions with GBIF's filters: taxon, country, area, dates, basis of record, dataset, publisher, IUCN category, media, licence... Each record has taxon and classification, date, coordinates and uncertainty, place, dataset, institution and catalogue number, licence, media and data quality issues. `facet` adds counts by field (set `limit=0` for counts only). Each record names who recorded and who identified it (with their ORCID or other ids when published, and the identification date); records from iNaturalist also carry the observer's username. Pass `next_offset` back as `offset`; null on the last page (GBIF serves the first 100,000 records of a query).

Inputs and results

Send the listed inputs as GET query parameters. This operation has no mandatory query parameters. Supported values, filters and optional identifiers are listed below.

ParameterTypeRequiredMeaning
scientific_namestringOptionalScientific name.
taxon_keystringOptionalGBIF taxon key(s).
qstringOptionalFree text.
countrystringOptionalCountry code(s) where recorded (ISO 2-letter).
publishing_countrystringOptionalPublisher's country code(s).
continentstringOptionalContinent(s): africa, antarctica, asia, oceania, europe, north_america, south_america.
state_provincestringOptionalState or province name(s).
gadm_gidstringOptionalGADM area id(s), e.g. USA.5_1.
latnumberOptionalCentre latitude (with lon and radius_km).
lonnumberOptionalCentre longitude.
radius_kmnumberOptionalRadius in km, up to 1000 (default 10).
geometrystringOptionalWKT POLYGON (counter-clockwise).
yearstringOptionalYear or range, e.g. 2020 or 2000,2020.
monthstringOptionalMonth or range.
event_datestringOptionalDate or range, YYYY[-MM[-DD]][,YYYY...].
basis_of_recordstringOptionalpreserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence.
dataset_keystringOptionalDataset key(s).
publishing_orgstringOptionalPublisher key(s).
institution_codestringOptionalInstitution code(s).
catalog_numberstringOptionalCatalogue number(s).
iucn_categorystringOptionalIUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE.
establishment_meansstringOptionalnative, introduced, vagrant, uncertain...
occurrence_statusstringOptionalpresent or absent.
media_typestringOptionalHas media: stillimage, movingimage, sound.
licensestringOptionalcc0_1_0, cc_by_4_0, cc_by_nc_4_0.
has_coordinatebooleanOptionalHas coordinates.
has_geospatial_issuebooleanOptionalHas (or has no) coordinate issues.
elevationstringOptionalElevation in m or range.
depthstringOptionalDepth in m or range.
coordinate_uncertaintystringOptionalCoordinate uncertainty in m or range.
facetstringOptionalCount by field(s): basisOfRecord, country, publishingCountry, continent, datasetKey, publishingOrg, institutionCode, year, month, kingdomKey ... speciesKey, taxonKey, iucnRedListCategory, establishmentMeans, license, mediaType, issue, stateProvince, occurrenceStatus, protocol.
facet_limitintegerOptionalValues per facet, 1-200 (default 20).
limitintegerOptionalRecords per page, 0-20 (default 10; 0 for counts and facets only).
offsetintegerOptionalRecords to skip.
rawstringOptionalUse 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1.
fieldsstringOptionalOptional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained.
freshstringOptionalUse 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1.
outputstringOptionalResponse format for this product: json. Omit this parameter to use JSON. Allowed values: json.
recordsstringOptionalSource export selector for CSV or NDJSON. It has no effect on this JSON-only product.

Using OpenAny

Send this request to the OpenAny gateway with your OpenAny API key in the Authorization header. The query values below match the paired request example.

OpenAny request example

bash
curl "https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences?scientific_name=Puma+concolor&country=US&limit=1&output=json&raw=0" \
  -H "Authorization: Bearer <OPENANY_API_KEY>"

This command illustrates the OpenAny request format. The response example below retains its stated provenance; it is not evidence that this gateway request was executed.

Response example

Recorded source response for the exact request shown above. Filters, field selectors and page choices in that request define the returned scope.

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

Usage and price

The price is USD 0.002 per actual credit reported in credits_used, with no fixed per-call fee. A response reporting zero credits has zero usage cost. Up to USD 0.002 is reserved for this request; the final price follows reported usage within the configured upper limit. A valid empty result or an unsuccessful lookup can still consume source credits. Cache hits also consume credits.

Coverage and limits

Coverage and update times follow the source. Use the documented field definitions when interpreting the selected result. Requests have a 120-second time budget and a 8 MiB response limit.

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

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

Response result

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

Sellers

SellerPricingRequests · 30dPerformanceAccess
apishCurrent
GBIF occurrence search API · GET · View API reference
$0.002 / billing credit—
—successP50—
Loading...
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: 2. 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
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'

Input parameters

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

ParameterLocationTypeRequiredDescription
scientific_nameURL query parametersquerystringNoScientific name.
taxon_keyURL query parametersquerystringNoGBIF taxon key(s).
qURL query parametersquerystringNoFree text.
countryURL query parametersquerystringNoCountry code(s) where recorded (ISO 2-letter).
publishing_countryURL query parametersquerystringNoPublisher's country code(s).
continentURL query parametersquerystringNoContinent(s): africa, antarctica, asia, oceania, europe, north_america, south_america.
state_provinceURL query parametersquerystringNoState or province name(s).
gadm_gidURL query parametersquerystringNoGADM area id(s), e.g. USA.5_1.
latURL query parametersquerynumberNoCentre latitude (with lon and radius_km).
lonURL query parametersquerynumberNoCentre longitude.
radius_kmURL query parametersquerynumberNoRadius in km, up to 1000 (default 10).
geometryURL query parametersquerystringNoWKT POLYGON (counter-clockwise).
yearURL query parametersquerystringNoYear or range, e.g. 2020 or 2000,2020.
monthURL query parametersquerystringNoMonth or range.
event_dateURL query parametersquerystringNoDate or range, YYYY[-MM[-DD]][,YYYY...].
basis_of_recordURL query parametersquerystringNopreserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence.
dataset_keyURL query parametersquerystringNoDataset key(s).
publishing_orgURL query parametersquerystringNoPublisher key(s).
institution_codeURL query parametersquerystringNoInstitution code(s).
catalog_numberURL query parametersquerystringNoCatalogue number(s).
iucn_categoryURL query parametersquerystringNoIUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE.
establishment_meansURL query parametersquerystringNonative, introduced, vagrant, uncertain...
occurrence_statusURL query parametersquerystringNopresent or absent.
media_typeURL query parametersquerystringNoHas media: stillimage, movingimage, sound.
licenseURL query parametersquerystringNocc0_1_0, cc_by_4_0, cc_by_nc_4_0.
has_coordinateURL query parametersquerybooleanNoHas coordinates.
has_geospatial_issueURL query parametersquerybooleanNoHas (or has no) coordinate issues.
elevationURL query parametersquerystringNoElevation in m or range.
depthURL query parametersquerystringNoDepth in m or range.
coordinate_uncertaintyURL query parametersquerystringNoCoordinate uncertainty in m or range.
facetURL query parametersquerystringNoCount 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 parametersqueryintegerNoValues per facet, 1-200 (default 20).
limitURL query parametersqueryintegerNoRecords per page, 0-20 (default 10; 0 for counts and facets only).
offsetURL query parametersqueryintegerNoRecords to skip.
rawURL query parametersquerystringNo0 leaves out the bulky `raw` source blocks (often 10-30x smaller).

enum: "0", "1"

fieldsURL query parametersquerystringNoComma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
freshURL query parametersquerystringNo1 skips the 24-hour cache and fetches live.

enum: "1"

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

enum: "json"

recordsURL query parametersquerystringNoWith 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.

Sample response

Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.

Official example · Live API.SH response · Minimal request
{
  "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
}

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.

View API Markdown
API Markdown
# GBIF occurrence search API

Use the GBIF occurrence search API to retrieve biodiversity records, species records, filter and option values, model identification, geographic position and licence information as structured JSON from GBIF. Choose taxon identifier, search words and country as optional query conditions to select the source records or view required for your request. Use these results to study recorded species observations by place or period and inspect supporting observation details. GBIF serves the first 100,000 records of a query. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
## Available implementations
apish · GBIF occurrence search API: https://openany.si/markets/apis/capabilities/gbif-occurrence-search-api?offering=d7752e04-5243-458c-b38f-3f3fbbe0ac25 · $0.002 / billing credit

## Selected API contract
Documentation: https://openany.si/apis/d7752e04-5243-458c-b38f-3f3fbbe0ac25
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences
Price: $0.002 / billing credit
Provider: apish
Contract revision: 2
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared 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'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "GBIF occurrence search API",
  "endpoint": "https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Scientific name.",
      "location": "query",
      "name": "scientific_name",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "GBIF taxon key(s).",
      "location": "query",
      "name": "taxon_key",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Free text.",
      "location": "query",
      "name": "q",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Country code(s) where recorded (ISO 2-letter).",
      "location": "query",
      "name": "country",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Publisher's country code(s).",
      "location": "query",
      "name": "publishing_country",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Continent(s): africa, antarctica, asia, oceania, europe, north_america, south_america.",
      "location": "query",
      "name": "continent",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "State or province name(s).",
      "location": "query",
      "name": "state_province",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "GADM area id(s), e.g. USA.5_1.",
      "location": "query",
      "name": "gadm_gid",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Centre latitude (with lon and radius_km).",
      "location": "query",
      "name": "lat",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Centre longitude.",
      "location": "query",
      "name": "lon",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Radius in km, up to 1000 (default 10).",
      "location": "query",
      "name": "radius_km",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "WKT POLYGON (counter-clockwise).",
      "location": "query",
      "name": "geometry",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Year or range, e.g. 2020 or 2000,2020.",
      "location": "query",
      "name": "year",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Month or range.",
      "location": "query",
      "name": "month",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Date or range, YYYY[-MM[-DD]][,YYYY...].",
      "location": "query",
      "name": "event_date",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "preserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence.",
      "location": "query",
      "name": "basis_of_record",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Dataset key(s).",
      "location": "query",
      "name": "dataset_key",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Publisher key(s).",
      "location": "query",
      "name": "publishing_org",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Institution code(s).",
      "location": "query",
      "name": "institution_code",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Catalogue number(s).",
      "location": "query",
      "name": "catalog_number",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "IUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE.",
      "location": "query",
      "name": "iucn_category",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "native, introduced, vagrant, uncertain...",
      "location": "query",
      "name": "establishment_means",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "present or absent.",
      "location": "query",
      "name": "occurrence_status",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Has media: stillimage, movingimage, sound.",
      "location": "query",
      "name": "media_type",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "cc0_1_0, cc_by_4_0, cc_by_nc_4_0.",
      "location": "query",
      "name": "license",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Has coordinates.",
      "location": "query",
      "name": "has_coordinate",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Has (or has no) coordinate issues.",
      "location": "query",
      "name": "has_geospatial_issue",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Elevation in m or range.",
      "location": "query",
      "name": "elevation",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Depth in m or range.",
      "location": "query",
      "name": "depth",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Coordinate uncertainty in m or range.",
      "location": "query",
      "name": "coordinate_uncertainty",
      "nullable": false,
      "required": false,
      "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.",
      "location": "query",
      "name": "facet",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Values per facet, 1-200 (default 20).",
      "location": "query",
      "name": "facet_limit",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Records per page, 0-20 (default 10; 0 for counts and facets only).",
      "location": "query",
      "name": "limit",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Records to skip.",
      "location": "query",
      "name": "offset",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
      "enum_values": [
        "0",
        "1"
      ],
      "location": "query",
      "name": "raw",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.",
      "location": "query",
      "name": "fields",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "1 skips the 24-hour cache and fetches live.",
      "enum_values": [
        "1"
      ],
      "location": "query",
      "name": "fresh",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
      "enum_values": [
        "json"
      ],
      "location": "query",
      "name": "output",
      "nullable": false,
      "required": false,
      "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.",
      "location": "query",
      "name": "records",
      "nullable": false,
      "required": false,
      "type": "string"
    }
  ],
  "billing": {
    "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": []
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example · Live API.SH response · Minimal request",
      "request": {
        "body": null,
        "headers": {},
        "path": {},
        "query": {
          "country": "US",
          "limit": "1",
          "output": "json",
          "raw": "0",
          "scientific_name": "Puma concolor"
        }
      },
      "response_body": {
        "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

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

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use GBIF occurrence search API with your agent

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