GBIF Occurrence Search API
Search GBIF Occurrence via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as country, limit, output, and retrieve structured data including GBIF occurrence identifier, reported scientific name, type of occurrence evidence, recorded event date, and requested facet counts to map bounded evidence, compare aggregate coverage, and filter data quality.
- Selected price
- $0.002 / billing creditPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 1Selected implementation · last 30 days
- Success rate · 30d
- 100.00%Selected implementation · last 30 days
GBIF Occurrence Search API
Prepare your request, then continue with your agent.
Pricing
$0.002 / billing credit
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
GBIF Occurrence Search API
Use taxon_key or scientific_name with optional spatial, date and provenance filters. limit accepts 0–20 (default 10); limit=0 requests counts and facets without occurrence rows.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | No required query parameters. Optional: scientific_name, taxon_key, q, country, publishing_country, continent, state_province, gadm_gid, lat, lon, radius_km, geometry, year, month, event_date, basis_of_record, dataset_key, publishing_org, institution_code, catalog_number, iucn_category, establishment_means, occurrence_status, media_type, license, has_coordinate, has_geospatial_issue, elevation, depth, coordinate_uncertainty, facet, facet_limit, limit, offset. JSON output only; fresh=1 bypasses cache and raw=0 trims raw blocks. |
| Selected implementation | apish · GBIF occurrence search API |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Map bounded evidence: Combine lat, lon and radius_km or use geometry.
- Compare aggregate coverage: Use limit=0 and facet for counts.
- Filter data quality: Use has_coordinate and has_geospatial_issue with the intended scope.
Returned Data
| Field | Meaning |
|---|---|
items[].key |
GBIF occurrence identifier |
items[].scientific_name |
Reported scientific name |
items[].basis_of_record |
Type of occurrence evidence |
items[].event_date |
Recorded event date |
facets |
Requested facet counts |
next_offset |
Continuation offset |
total |
Total matching occurrences |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
--data-urlencode country=US \
--data-urlencode limit=1 \
--data-urlencode output=json \
--data-urlencode raw=0 \
--data-urlencode 'scientific_name=Puma concolor'
Request and Response Examples
The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.
Published GBIF Occurrence Search API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
apishCurrent GBIF occurrence search API · GET · View API reference | $0.002 / billing credit | 1 | 100.00%successP506.05s |
- Pricing
- $0.002
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/apish/gbif/v1/occurrences- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
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.
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
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.
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 }