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 / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent GBIF occurrence search API · GET · View API reference | $0.002 / billing credit | — | —successP50— |
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;
};- 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/markets/apis/capabilities/gbif-occurrence-search-api
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. |
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 }
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.