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...
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
On this page
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.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
scientific_name | string | Optional | Scientific name. |
taxon_key | string | Optional | GBIF taxon key(s). |
q | string | Optional | Free text. |
country | string | Optional | Country code(s) where recorded (ISO 2-letter). |
publishing_country | string | Optional | Publisher's country code(s). |
continent | string | Optional | Continent(s): africa, antarctica, asia, oceania, europe, north_america, south_america. |
state_province | string | Optional | State or province name(s). |
gadm_gid | string | Optional | GADM area id(s), e.g. USA.5_1. |
lat | number | Optional | Centre latitude (with lon and radius_km). |
lon | number | Optional | Centre longitude. |
radius_km | number | Optional | Radius in km, up to 1000 (default 10). |
geometry | string | Optional | WKT POLYGON (counter-clockwise). |
year | string | Optional | Year or range, e.g. 2020 or 2000,2020. |
month | string | Optional | Month or range. |
event_date | string | Optional | Date or range, YYYY[-MM[-DD]][,YYYY...]. |
basis_of_record | string | Optional | preserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence. |
dataset_key | string | Optional | Dataset key(s). |
publishing_org | string | Optional | Publisher key(s). |
institution_code | string | Optional | Institution code(s). |
catalog_number | string | Optional | Catalogue number(s). |
iucn_category | string | Optional | IUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE. |
establishment_means | string | Optional | native, introduced, vagrant, uncertain... |
occurrence_status | string | Optional | present or absent. |
media_type | string | Optional | Has media: stillimage, movingimage, sound. |
license | string | Optional | cc0_1_0, cc_by_4_0, cc_by_nc_4_0. |
has_coordinate | boolean | Optional | Has coordinates. |
has_geospatial_issue | boolean | Optional | Has (or has no) coordinate issues. |
elevation | string | Optional | Elevation in m or range. |
depth | string | Optional | Depth in m or range. |
coordinate_uncertainty | string | Optional | Coordinate uncertainty in m or range. |
facet | string | Optional | 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 | integer | Optional | Values per facet, 1-200 (default 20). |
limit | integer | Optional | Records per page, 0-20 (default 10; 0 for counts and facets only). |
offset | integer | Optional | Records to skip. |
raw | string | Optional | Use 0 to leave out the source raw blocks. This controls raw source payloads, not the normalized result records. Allowed values: 0, 1. |
fields | string | Optional | Optional comma-separated output fields; nested paths follow the source field-selection syntax. Call metadata is retained. |
fresh | string | Optional | Use 1 to bypass the source response cache. Cache hits are also billed according to reported credits. Allowed values: 1. |
output | string | Optional | Response format for this product: json. Omit this parameter to use JSON. Allowed values: json. |
records | string | Optional | Source 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
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.
{
"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.
Response structure
cachedbooleancountintegercredits_usedintegerfacetsunknown[]fetched_atstringitemsobject[]accepted_scientific_namestringbasis_of_recordstringcatalog_numberstringclassstringcollection_codestringcommon_namenullcontinentstringcountrystringcountry_codestringdataset_keystringdataset_namestringdate_identifiedstringdayintegerdepth_mnullelevation_mnullestablishment_meansnullevent_datestringfamilystringgbif_idstringgenusstringidentified_bystringidentified_by_idsunknown[]individual_countnullinstitution_codestringissuesstring[]iucn_red_liststringkeyintegerkingdomstringlatnumberlicensestringlife_stagestringlocalitystringlonnumbermediaobject[]createdstringformatstringlicensestringtypestringurlstring
monthintegeroccurrence_idstringoccurrence_statusstringorderstringphylumstringpublishing_org_keystringrankstringrecorded_bystringrecorded_by_idsunknown[]recorded_by_usernamestringreferencesstringrights_holderstringscientific_namestringsexnullspeciesstringspecies_keyintegerstate_provincestringtaxon_keyintegeruncertainty_mnullurlstringyearinteger
next_offsetintegeroffsetintegertotalinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cached?: boolean;
count?: number;
credits_used?: number;
facets?: Array<unknown>;
fetched_at?: string;
items?: Array<{
accepted_scientific_name?: string;
basis_of_record?: string;
catalog_number?: string;
class?: string;
collection_code?: string;
common_name?: null;
continent?: string;
country?: string;
country_code?: string;
dataset_key?: string;
dataset_name?: string;
date_identified?: string;
day?: number;
depth_m?: null;
elevation_m?: null;
establishment_means?: null;
event_date?: string;
family?: string;
gbif_id?: string;
genus?: string;
identified_by?: string;
identified_by_ids?: Array<unknown>;
individual_count?: null;
institution_code?: string;
issues?: Array<string>;
iucn_red_list?: string;
key?: number;
kingdom?: string;
lat?: number;
license?: string;
life_stage?: string;
locality?: string;
lon?: number;
media?: Array<{
created?: string;
format?: string;
license?: string;
type?: string;
url?: string;
}>;
month?: number;
occurrence_id?: string;
occurrence_status?: string;
order?: string;
phylum?: string;
publishing_org_key?: string;
rank?: string;
recorded_by?: string;
recorded_by_ids?: Array<unknown>;
recorded_by_username?: string;
references?: string;
rights_holder?: string;
scientific_name?: string;
sex?: null;
species?: string;
species_key?: number;
state_province?: string;
taxon_key?: number;
uncertainty_m?: null;
url?: string;
year?: number;
}>;
next_offset?: number;
offset?: number;
total?: number;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent GBIF occurrence search API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
- 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.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
scientific_name | URL query parametersquery | string | No | Scientific name. |
taxon_key | URL query parametersquery | string | No | GBIF taxon key(s). |
q | URL query parametersquery | string | No | Free text. |
country | URL query parametersquery | string | No | Country code(s) where recorded (ISO 2-letter). |
publishing_country | URL query parametersquery | string | No | Publisher's country code(s). |
continent | URL query parametersquery | string | No | Continent(s): africa, antarctica, asia, oceania, europe, north_america, south_america. |
state_province | URL query parametersquery | string | No | State or province name(s). |
gadm_gid | URL query parametersquery | string | No | GADM area id(s), e.g. USA.5_1. |
lat | URL query parametersquery | number | No | Centre latitude (with lon and radius_km). |
lon | URL query parametersquery | number | No | Centre longitude. |
radius_km | URL query parametersquery | number | No | Radius in km, up to 1000 (default 10). |
geometry | URL query parametersquery | string | No | WKT POLYGON (counter-clockwise). |
year | URL query parametersquery | string | No | Year or range, e.g. 2020 or 2000,2020. |
month | URL query parametersquery | string | No | Month or range. |
event_date | URL query parametersquery | string | No | Date or range, YYYY[-MM[-DD]][,YYYY...]. |
basis_of_record | URL query parametersquery | string | No | preserved_specimen, fossil_specimen, living_specimen, observation, human_observation, machine_observation, material_sample, material_citation, occurrence. |
dataset_key | URL query parametersquery | string | No | Dataset key(s). |
publishing_org | URL query parametersquery | string | No | Publisher key(s). |
institution_code | URL query parametersquery | string | No | Institution code(s). |
catalog_number | URL query parametersquery | string | No | Catalogue number(s). |
iucn_category | URL query parametersquery | string | No | IUCN category code(s): EX, EW, CR, EN, VU, NT, LC, DD, NE. |
establishment_means | URL query parametersquery | string | No | native, introduced, vagrant, uncertain... |
occurrence_status | URL query parametersquery | string | No | present or absent. |
media_type | URL query parametersquery | string | No | Has media: stillimage, movingimage, sound. |
license | URL query parametersquery | string | No | cc0_1_0, cc_by_4_0, cc_by_nc_4_0. |
has_coordinate | URL query parametersquery | boolean | No | Has coordinates. |
has_geospatial_issue | URL query parametersquery | boolean | No | Has (or has no) coordinate issues. |
elevation | URL query parametersquery | string | No | Elevation in m or range. |
depth | URL query parametersquery | string | No | Depth in m or range. |
coordinate_uncertainty | URL query parametersquery | string | No | Coordinate uncertainty in m or range. |
facet | URL query parametersquery | string | No | 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 | URL query parametersquery | integer | No | Values per facet, 1-200 (default 20). |
limit | URL query parametersquery | integer | No | Records per page, 0-20 (default 10; 0 for counts and facets only). |
offset | URL query parametersquery | integer | No | Records to skip. |
raw | URL query parametersquery | string | No | 0 leaves out the bulky `raw` source blocks (often 10-30x smaller). enum: "0", "1" |
fields | URL query parametersquery | string | No | Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included. |
fresh | URL query parametersquery | string | No | 1 skips the 24-hour cache and fetches live. enum: "1" |
output | URL query parametersquery | string | No | JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported. enum: "json" |
records | URL query parametersquery | string | No | 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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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 item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| Actual API.SH credits consumed | $0.002000 / billing credit | Response · /credits_used · Numeric value | Always | 1 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
# 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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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 }