GBIF Occurrence Search: Species, Coordinates & Licenses (Apify Actor)
Search GBIF species observations by taxon, country, bounding box, year and license. Export coordinates, dates, full taxonomy, basis of record, dataset titles and publisher attribution for research and biodiversity maps. No GBIF account or key needed. JSON or CSV. Price: $0.36 per 1,000 occurrence records, plus $0.012 per run start. Runs as an Apify Actor, callable from MCP clients via the Apify MCP server (https://mcp.apify.com/?tools=cliqtomedia/gbif-occurrence-search).
Hosted MCP Server
npx add-mcp 'https://mcp.apify.com/?tools=cliqtomedia/gbif-occurrence-search'Installs into Claude Code, Codex, Cursor and more
Documentation
GBIF Occurrence Search: Species, Coordinates & Licenses (cliqtomedia/gbif-occurrence-search) Actor
Search GBIF species observations by taxon, country, bounding box, year and license. Export coordinates, taxonomy, dataset titles and publisher attribution. No GBIF key needed.
- URL: https://apify.com/cliqtomedia/gbif-occurrence-search.md
- Developed by: Cliqto Media (community)
- Categories: Developer tools, Other
- Features: Limited permissions
- Stats: 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- User rating: No ratings yet
Pricing
from $0.25 / 1,000 occurrence records
This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events. Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.
Learn more: https://docs.apify.com/actors/store.md#pay-per-event
What's an Apify Actor?
An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes. In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours, and optionally produces a well-defined JSON output, datasets with results, or files in key-value store. In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.
How to integrate an Actor?
If asked about integration, you help developers integrate Actors into their projects. You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.
For examples already wired to this Actor's own input schema, see the API section below.
Each client library has reference documentation the quickstart does not restate: JavaScript/TypeScript (npm install apify-client) and Python (pip install apify-client).
README
Search biodiversity observations from GBIF by species, country, area, year and record license, and export them as a Dataset with coordinates, taxonomy, dataset titles and publisher attribution. No GBIF account or API key is needed.
Use it if you need a small research export, a map input or a license check. The smallest run is Panthera leo with 50 records: it takes seconds and costs about $0.030 on the Free tier, including the $0.012 start fee.

Table of contents
- What it does
- How it works
- Quick start
- Use cases
- Input
- Output
- Pricing
- Limits
- API, export and integrations
- Troubleshooting
- FAQ
- Related Actors
- Support
What it does
The Actor searches the public GBIF API. It resolves an exact scientific name, or uses your numeric taxon key. A parent taxon includes child taxa. For example, a lion search can return lion subspecies.
Country, area, years and coordinate filters are combined using AND. Record licenses in a list are combined using OR. The Actor gets the current dataset title and publishing organization for each record. Duplicate GBIF IDs within a run are saved once.
Each Dataset item is one occurrence. It has a GBIF ID, taxonomy, observation date, record type, license and attribution. Coordinates use WGS84. Uncertainty is in metres. Missing values stay null; they do not become zero. Sensitive coordinates stay as published. The Actor includes informationWithheld and dataGeneralizations notices. It does not infer a hidden location or add personal information about observers.
Good fit
- Small research exports of species observations, with the dataset DOI and citation when available.
- Map inputs for a country or a bounding box, using published WGS84 coordinates and uncertainty.
- License checks: filter by record license, or keep only CC0 and CC BY records.
For a full scientific download with a download DOI, use the GBIF download service. This Actor returns a limited live search.
How it works
- The Actor reads your filters and resolves the scientific name through the public GBIF species match, or takes your taxon key.
- It searches GBIF occurrences page by page, then reads the current dataset and publisher details for each new dataset it meets.
- It saves one Dataset item per unique occurrence and writes
RUN_SUMMARYwith the status and counts. The run's status line tells you in one sentence how it ended.
Quick start
-
Open the Input tab. The form is prefilled with
Panthera leo(box 1 in the picture). -
Keep the years 2020โ2025 (box 2) and the coordinate filter, or change them.
-
Keep Maximum results at 50 (box 3). Set a maximum run cost in Apify if you want a money limit.
-
Click Start.
-
Open the Output tab. The status line (box 1) shows how the run ended. In Occurrences, check the species, country and coordinates (box 2) and the uncertainty (box 3). Use Attribution to check the dataset, publisher and license.
-
Open Key-value store โ RUN_SUMMARY to check the status and counts.
Expected result: 50 occurrences with taxonomy, coordinates and license attribution. You can export the Dataset as JSON or CSV. The source may change between runs.
Use cases
| Task | Input | Fields to use |
|---|---|---|
| Explore species records | taxonName or taxonKey | gbifID, taxonomy, eventDate |
| Prepare a map input | country, bbox, hasCoordinate:true | WGS84 coordinates and uncertainty |
| Check reuse licenses | commercialUseOnly or licenses | license, publisher, dataset citation |
Input
All fields are optional on their own, but a search needs at least one of taxonName, taxonKey, country or bbox. The API input {} is an error. A run with no INPUT record uses the small lion example. The form example and Restore example use that same example.
Input fields
| Field | Type | Default / form example | Allowed values and effect | Recommendation |
|---|---|---|---|---|
taxonName | string | No field default; form: Panthera leo | 1โ200 characters; exact scientific-name match | Use a known name. Clear it if you use taxonKey. |
taxonKey | integer | None | 1โ2147483647; GBIF backbone key, including children | Use a key for an ambiguous name. |
country | string | None | ISO alpha-2, such as KE; case is normalized | Use the observation country. |
bbox | number array | None | [west, south, east, north]; longitude โ180โฆ180, latitude โ90โฆ90; west<east and south<north | Use a WGS84 box. Split boxes at the antimeridian yourself. |
yearFrom | integer | No default; form: 2020 | Inclusive year, 1โ9999; missing lower bound is 1 | Set with yearTo for a fixed period. |
yearTo | integer | No default; form: 2025 | Inclusive year, 1โ9999; missing upper bound is 9999 | Must be at least yearFrom. |
hasCoordinate | boolean | Omitted = both; form: true | true = both coordinates present; false = records without both | Omit it for all records. Clear the box before requesting false. |
licenses | string array | [] | CC0_1_0, CC_BY_4_0, CC_BY_NC_4_0; empty = all | Use exact codes. Duplicates are ignored. |
commercialUseOnly | boolean | false | Restricts record licenses to CC0 and CC BY | Check attribution and the full terms before reuse. |
maxResults | integer | 50 | 1โ1000 unique saved occurrences | Start small. This is a result limit, not all source matches. |
offset | integer | 0 | 0โ99999; offset + maxResults must be โค100000 | Use summary nextOffset to continue a live search. |
Empty names, null field values, unknown fields and invalid values are rejected before search work: the run ends without failure, with no results, and a message names the field. Numbers must be numbers, and booleans must be true or false.
Interacting settings
taxonNameandtaxonKeytogether cause an input error.countryandbboxselect their intersection.bboxwithhasCoordinate:falseis an error.commercialUseOnly:trueintersects your license list with CC0 and CC BY. A list containing only CC BY-NC is an error in this mode.maxResultscounts unique records. A money limit can stop the run before this number.
Input examples
Lion observations with coordinates
{ "taxonName": "Panthera leo", "yearFrom": 2020, "yearTo": 2025, "hasCoordinate": true, "maxResults": 50 }
Get up to 50 records, with taxonomy, coordinates and license attribution. This is the form example.
A country and area search
{
"taxonKey": 5219404,
"country": "TZ",
"bbox": [30, -5, 40, 0],
"yearFrom": 2020,
"yearTo": 2025,
"maxResults": 10
}
Get lion records in Tanzania within this box and period. A narrow region can return no records.
Record licenses that allow commercial use
{ "taxonKey": 5219404, "commercialUseOnly": true, "maxResults": 10 }
Get records with CC0 or CC BY licenses. A record license can differ from the dataset's overall license. The Actor uses the record license.
Output
Output fields
All listed keys are present. Nullable fields use null when the source has no value.
| Field | Type | Null? | Meaning | Example |
|---|---|---|---|---|
gbifID | string | no | Stable GBIF occurrence ID as text. | "5006926565" |
provider | string | no | Data provider: GBIF. | "GBIF" |
sourceUrl | string | no | GBIF occurrence API record URL. | "https://api.gbif.org/v1/occurrence/5006926565" |
occurrenceUrl | string | no | GBIF occurrence page URL. | "https://www.gbif.org/occurrence/5006926565" |
fetchedAt | string | no | UTC time when this row was normalized. | "2026-10-13T12:35:00.202Z" |
key | number | no | Stable GBIF occurrence ID as a safe integer. | 5006926565 |
scientificName | string | yes | Interpreted scientific name including authorship. | "Panthera leo melanochaita (C.E.H.Smith, 1858)" |
rank | string | yes | Interpreted taxon rank. | "SUBSPECIES" |
eventDate | string | yes | Observation date as supplied by GBIF; may include time or a date interval. | "2025-01-02T13:53:58" |
country | string | yes | Country name of the observation. | "Tanzania, United Republic of" |
countryCode | string | yes | ISO alpha-2 country code. | "TZ" |
basisOfRecord | string | yes | Record type, for example HUMAN_OBSERVATION or PRESERVED_SPECIMEN. | "HUMAN_OBSERVATION" |
occurrenceStatus | string | yes | PRESENT or ABSENT if the source supplies it; neither is inferred. | "PRESENT" |
datasetKey | string | yes | UUID of the source dataset. | "50c9509d-22c7-4a22-a47d-8c48425ef4a7" |
datasetTitle | string | yes | Current title from the GBIF dataset registry. | "iNaturalist Research-grade Observations" |
datasetUrl | string | yes | GBIF dataset page for attribution. | "https://www.gbif.org/dataset/50c9509d-22c7-4a22-a47d-8c48425ef4a7" |
datasetDoi | string | yes | Dataset DOI where available; not a DOI for this search. | "10.15468/ab3s5x" |
datasetCitation | string | yes | Citation provided by the dataset registry. | "iNaturalist contributors, iNaturalist (2026). iNaturalist Research-grade Obsโฆ |
publisher | string | yes | Publishing organization title from the GBIF registry. | "iNaturalist.org" |
publishingOrgKey | string | yes | UUID of the publishing organization. | "28eb1a3f-1c15-4a95-931a-4af90ecb574d" |
license | string | yes | License URL of this record, which can differ from the dataset license. | "http://creativecommons.org/licenses/by-nc/4.0/legalcode" |
recordedBy | string | yes | Observer/collector exactly as published; no personal enrichment. | as published |
sourceUpdatedAt | string | yes | GBIF lastInterpreted timestamp; not the date of the observation. | "2026-10-07T01:29:48.970+00:00" |
informationWithheld | string | yes | Source notice about hidden sensitive information. | "Coordinate uncertainty increased to 31434m to protect threatened taxon" |
dataGeneralizations | string | yes | Source notice about generalization of sensitive data. | null |
kingdom | string | yes | Interpreted kingdom name; null when missing. | "Animalia" |
phylum | string | yes | Interpreted phylum name; null when missing. | "Chordata" |
class | string | yes | Interpreted class name; null when missing. | "Mammalia" |
order | string | yes | Interpreted order name; null when missing. | "Carnivora" |
family | string | yes | Interpreted family name; null when missing. | "Felidae" |
genus | string | yes | Interpreted genus name; null when missing. | "Panthera" |
species | string | yes | Interpreted species name; null when missing. | "Panthera leo" |
taxonKey | number | yes | GBIF backbone taxon key assigned to this record. | 5219411 |
decimalLatitude | number | yes | Published WGS84 latitude in degrees; null when unavailable. | -2.637562 |
decimalLongitude | number | yes | Published WGS84 longitude in degrees; null when unavailable. | 34.715044 |
coordinateUncertaintyInMeters | number | yes | Published horizontal uncertainty in metres; zero is preserved. | 31434 |
year | number | yes | Observation year as an integer when supplied. | 2025 |
issues | array | no | GBIF quality/interpretation flags. | [] |
latitude | number | yes | Same published WGS84 latitude as decimalLatitude; compatibility alias. | -2.637562 |
longitude | number | yes | Same published WGS84 longitude as decimalLongitude; compatibility alias. | 34.715044 |
taxonRank | string | yes | Same interpreted rank as rank; compatibility alias. | "SUBSPECIES" |
url | string | yes | Same GBIF record page as occurrenceUrl; compatibility alias. | "https://www.gbif.org/occurrence/5006926565" |
datasetName | string | yes | Dataset name published on the occurrence record; may differ from the current datasetTitle. | "iNaturalist research-grade observations" |
acceptedScientificName | string | yes | Accepted scientific name assigned by GBIF; may differ for synonyms. | "Panthera leo melanochaita (C.E.H.Smith, 1858)" |
Output surfaces and run status
The Occurrences Dataset view shows the scientific name, country, coordinates, date, record type, dataset, publisher and license. Attribution shows dataset DOI/citation, license and sensitive-data notices. Output links lead to these views and RUN_SUMMARY.
RUN_SUMMARY includes provider, license, status, reason, rowsSaved, rowsCharged, sourceCount, recordsScanned, duplicatesSkipped, requests, retries, bytesDownloaded, startOffset, nextOffset, maxResults, truncated, taxonMatch, datasetCount, publisherCount, runTimeoutSecs (the Timeout of this run, or null if unknown), startedAt and finishedAt. An invalid_input run also has message and inputErrors (each with field, message and example; the Timeout error also has code). taxonMatch includes exact match details or candidates for an ambiguous name. sourceCount is the current source match count, not the number exported.
The last line of the run's status message always shows how the run ended. These are all the endings:
| Outcome | Run status | Status message starts with | Next action |
|---|---|---|---|
| Requested result limit reached, or the source has no more matches | SUCCEEDED | โ
N occurrences saved and a rating link | Use the returned records, or continue from nextOffset. |
| Valid empty search or unmatched name | SUCCEEDED | โน๏ธ 0 occurrences: no records match these filters, or taxon not found in GBIF | Check your filters or scientific name. |
| Money limit reached | SUCCEEDED | โ ๏ธ N occurrences saved, stopped at your spending limit | Use saved records or start a bounded follow-up run. |
| GBIF paging limit reached (offset plus limit above 100000) | SUCCEEDED | โ ๏ธ N occurrences saved, stopped at the GBIF paging limit of 100,000 | Use saved records or narrow your search. |
| Run time ran out after records were saved | SUCCEEDED | โ ๏ธ N occurrences saved, the run time ran out, with a rating link | Use saved records, set a longer Timeout or lower Maximum results. |
| Run Timeout below 300 s ended before the first record | SUCCEEDED | โ ๏ธ 0 occurrences saved: the run Timeout (N s) ended before the first record | Set Timeout to 300 seconds or more. Only the start fee. |
| Run aborted by you | Aborted | โ ๏ธ Run aborted, with the number saved; it can also show โ Run failed: the run was cancelled | Saved records stay in the Dataset. |
Source error, time limit with nothing saved (Timeout of 300 s or more), size limit, ambiguous name, memory below 128 MB, or an unexpected error (something went wrong) | FAILED | โ Run failed: <plain reason>, then the Issues link and the run link | Keep saved rows and read the reason before retrying. |
| Invalid input (your fields) | SUCCEEDED | Input error: <field> ..., with an example and the Issues link | Fix the named field and run again. Only the start fee. |
A rating link appears only when records were saved and the run did not fail. A failed run shows the โ line and never asks for a rating. In RUN_SUMMARY, complete means this limited request completed. It does not mean all GBIF records were exported. A null coordinate is missing data, not a technical failure.
Output example
This example is trimmed and contains one occurrence. It is a real record from a Panthera leo, year 2025 search. Observer information is omitted from this example. A subspecies is a valid child of the searched species.
{
"gbifID": "5006926565",
"scientificName": "Panthera leo melanochaita (C.E.H.Smith, 1858)",
"taxonKey": 5219411,
"rank": "SUBSPECIES",
"decimalLatitude": -2.637562,
"decimalLongitude": 34.715044,
"coordinateUncertaintyInMeters": 31434,
"eventDate": "2025-01-02T13:53:58",
"country": "Tanzania, United Republic of",
"countryCode": "TZ",
"basisOfRecord": "HUMAN_OBSERVATION",
"datasetTitle": "iNaturalist Research-grade Observations",
"publisher": "iNaturalist.org",
"license": "http://creativecommons.org/licenses/by-nc/4.0/legalcode",
"informationWithheld": "Coordinate uncertainty increased to 31434m to protect threatened taxon",
"occurrenceUrl": "https://www.gbif.org/occurrence/5006926565"
}
Pricing
Pay per event. One occurrence event is charged for each unique record saved. There is also an automatic Actor Start fee of $0.012. At 128 or 256 MB, it counts as one start event; the start fee scales with run memory (per GB). Platform usage is included in this price model; it is paid by the developer.
Pricing unit
| Your Apify tier | Price per 1000 saved records |
|---|---|
| Free | $0.36 |
| Bronze | $0.324 |
| Silver | $0.288 |
| Gold, Platinum, Diamond | $0.252 |
A valid empty search or a filter with no matches pays only the start fee. A run whose Timeout ended before the first record was saved also pays only the start fee, because only saved records are charged. A repeat search charges again for records saved in that run. On failed or partial runs, the start fee and saved-record events still apply. Unsaved records have no occurrence event. Dataset storage and charging are separate platform operations; if a platform write acknowledgement fails, check the Dataset and charge counts before a retry.
Set Apify's maximum run cost to control spending. The Actor stops with a spending-limit status when another record cannot fit. It does not start a new source page after this limit.
Cost examples
The following examples use the Free tier and one start event:
| Saved records | Record charge | Start fee | Total |
|---|---|---|---|
| 0 | $0 | $0.012 | $0.012 |
| 1 | $0.00036 | $0.012 | $0.01236 |
| 10 | $0.0036 | $0.012 | $0.0156 |
| 50 | $0.018 | $0.012 | $0.030 |
| 100 | $0.036 | $0.012 | $0.048 |
| 1000 | $0.36 | $0.012 | $0.372 |
Limits
- Maximum 1000 records and 8 search pages per run. GBIF search allows an offset plus result limit up to 100000.
- Each new dataset and publisher in the results needs metadata requests. A broad search whose records come from many dozens of datasets can reach the 100-request limit before 1000 records; the run then fails with a "too many requests" message and keeps the records already saved. Narrow the taxon, area or years, or continue with
nextOffset. - The source can change between pages or runs. An offset continuation is not a frozen snapshot.
- At most 100 source requests including metadata and retries, 8 MiB per response, 24 MiB of downloaded responses, and 2 MiB of normalized output per run.
- Source work stops after 120 seconds, or max(45 seconds, 10% of the run Timeout) before the platform deadline, whichever comes first. This margin keeps time to save the results and the summary. A larger Apify timeout does not increase the 120-second source-work budget. If records were saved, the run ends SUCCEEDED with a โ ๏ธ message. If none were saved, a Timeout below 300 s ends SUCCEEDED with a short-Timeout message. A longer Timeout, or a slow source that used up the 120-second budget first, ends FAILED with the time-limit message.
- Requests are sequential, about one per second, with limited retries and
Retry-Aftersupport. GBIF has no guaranteed search query rate. - Invalid metadata, schema changes, rate-limit exhaustion and source outages fail honestly. Records saved before a later error remain available.
- Country and bounding box use published, interpreted locations. Null or generalized coordinates can limit map use. The Actor does not recover hidden coordinates.
- All three record license types are allowed by default. CC BY requires attribution. CC BY-NC is for non-commercial use. Read the GBIF data user agreement and each record's license. This service is independent of GBIF.
- The Actor does not read Apify's platform cap on paid Dataset items. Use Maximum results and Apify's maximum run cost to limit a run.
API, export and integrations
- API: run this Actor through the Apify API with the same JSON input. Read items from the run's default Dataset and the summary from its default key-value store. Use
gbifIDto join records, and checklicensebefore reuse. - Export: use Apify's Dataset export to get CSV or JSON.
- Scheduling: you can create your own Apify schedule using these inputs. Each run is a new live search. There is no automatic baseline,
onlyNewmode, change detection or deduplication across runs. Deduplicate exports usinggbifID. An observation year filter does not select the date GBIF indexed a record. - Webhooks / no-code: connect the completed run to your own Make, Zapier, n8n or webhook flow. The Actor does not create a schedule or integration for you.
The API example below uses a token from your environment; do not put tokens in saved input or URLs.
curl --request POST \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"taxonName":"Panthera leo","yearFrom":2020,"yearTo":2025,"hasCoordinate":true,"maxResults":50}' \
'https://api.apify.com/v2/acts/cliqtomedia~gbif-occurrence-search/runs?timeout=300&memory=256&maxTotalChargeUsd=0.1'
Use with AI agents (MCP)
MCP server for this Actor: https://mcp.apify.com?tools=cliqtomedia/gbif-occurrence-search.
Small public input:
{ "taxonName": "Panthera leo", "yearFrom": 2020, "yearTo": 2025, "hasCoordinate": true, "maxResults": 50 }
Use gbifID for record identity, scientificName for the matched taxon, decimalLatitude/decimalLongitude for published location, and license for reuse terms. Small searches normally take seconds; metadata from many datasets can take longer. The 50-record example costs $0.030 on the Free tier. Respect the 1000-record limit and check the summary for errors or partial output.
Troubleshooting
The status line says the name matches several taxa or no exact taxon
Symptom: the run is FAILED with a โ line about the name.
Likely reason: one name has several exact matches, or the match is fuzzy or at a higher rank.
Check: read taxonMatch.candidates in RUN_SUMMARY.
Action: clear taxonName and set the right taxonKey, or use a precise scientific name.
The status line says 0 occurrences
Symptom: a โน๏ธ line: no records match these filters, or taxon not found in GBIF. Likely reason: the name is not in GBIF, or valid filters have no records. Check: the name, year, country and license filters. Action: widen the filters or fix the name. Only the start fee is charged.
The status line says it stopped at your spending limit
Symptom: a โ ๏ธ line with fewer records than requested. Likely reason: the next record does not fit your maximum run cost. Check: the saved rows in the Dataset. Action: use them, or raise the cost limit or request fewer records.
The status line says it stopped at the GBIF paging limit
Symptom: a โ ๏ธ line mentioning 100,000.
Likely reason: offset plus requested limit exceeds 100000.
Action: reduce offset or narrow your search.
The run ran out of time
Symptom: a โ ๏ธ line saying "the run time ran out" or "the 120-second source time limit was reached", with the number of records saved. Likely reason: the run Timeout in Run options is too short for the number of records, or the source was slow. Action: the run is SUCCEEDED and the saved records stay in the Dataset. Set a longer Timeout (the default is 300 seconds) or lower Maximum results. If the Timeout is below 300 seconds and nothing was saved before it ran out, the run is also SUCCEEDED, with a โ ๏ธ line about a short Timeout and only the start fee charged. Set Timeout to 300 seconds or more and run again.
The run failed with a time, size or request limit
Symptom: a โ line saying the time limit was reached, or that there were too many pages, requests or too much output. A time-limit โ line with 0 records saved happens with a Timeout of 300 seconds or more, or when a slow source used up the 120-second source budget first. Likely reason: the work exceeds the run's fixed safety budget. Action: narrow the search or request fewer records. Records saved before the failure stay in the Dataset.
The run failed because memory is too small
Symptom: a โ line saying the run memory or timeout is too small. Likely reason: the run was started with less than 128 MB of memory. Action: start the run again with 256 MB (the default). A Timeout that is too short is a separate โ ๏ธ message (see above).
The run failed with a GBIF answer problem
Symptom: a โ line saying GBIF returned an unusable answer. Likely reason: provider failure or an unexpected response. Action: keep saved rows. Retry later with a small request.
Coordinates are null
Symptom: decimalLatitude and decimalLongitude are null.
Likely reason: coordinates are absent in the public record.
Action: set hasCoordinate:true; check uncertainty and withheld notices.
An input error message
Symptom: the run finished with no results and a message naming a field. Action: fix the named field and run again.
Do not treat a โ line as an empty result: a failed run is not a search with no matches.
FAQ
Do I need a GBIF account?
No. This Actor uses public search and metadata endpoints. It does not use the account-based download API.
Does a lion search include subspecies?
Yes. A taxon key includes child taxa in GBIF search. Check rank and species in the output.
Can I use every record commercially?
No. The default allows CC BY-NC too. Use commercialUseOnly:true for CC0 and CC BY, and follow attribution and source terms.
Why are coordinates missing or less precise?
Publishers may omit or generalize sensitive locations. Check coordinateUncertaintyInMeters, informationWithheld and dataGeneralizations.
Is this a full download or a live monitor?
It is a limited live search. It has no download DOI, baseline or only-new mode. Dataset DOI and citation are included when available.
Related Actors
- NASA POWER Weather & Solar Data: Coordinates Export โ add daily or monthly climate data for the coordinates of your observations.
- USGS Water Data Export โ Rivers & Streams โ river and stream readings for US habitats.
- Weather Forecast & Alerts Export (NWS + MET Norway) โ forecasts for the same points.
- DOI Metadata Lookup: Crossref, DataCite & JaLC Bibliography โ turn the dataset DOIs from your results into citation metadata.
Support
Use the Actor's Issues tab for questions, bugs or feature requests. Include the run ID, non-sensitive filters and the status message. Do not send API tokens, cookies or private data.
โญ Found it useful? Rate this Actor. Something wrong? Report a problem โ we fix reported problems.
Changelog
This Actor's version history is a separate document: https://apify.com/cliqtomedia/gbif-occurrence-search/changelog.md
Actor input Schema
taxonName (type: string):
Exact scientific name to resolve with GBIF species match. Do not set with taxonKey. Ambiguous names fail with candidates in the summary.
taxonKey (type: integer):
Numeric GBIF backbone key. Includes child taxa. Use this to select an ambiguous name.
country (type: string):
ISO alpha-2 country of the observation, such as KE. Combined with other filters using AND.
bbox (type: array):
WGS84 [west, south, east, north]. Longitude first. Values must increase; boxes crossing the antimeridian are not supported.
yearFrom (type: integer):
Inclusive observation year, 1โ9999. If only yearTo is set, the lower bound is 1.
yearTo (type: integer):
Inclusive observation year, 1โ9999. If only yearFrom is set, the upper bound is 9999.
hasCoordinate (type: boolean):
True returns records with both coordinates; false returns records without both. Omit to allow both. Bounding boxes cannot be combined with false.
licenses (type: array):
Allowed record licenses, combined using OR. Use the codes CC0_1_0, CC_BY_4_0 or CC_BY_NC_4_0. Empty means all. commercialUseOnly further restricts this list to CC0 and CC BY.
commercialUseOnly (type: boolean):
Restrict record licenses to CC0 and CC BY. Attribution still applies to CC BY. Conflicting licenses cause an input error.
maxResults (type: integer):
Maximum unique occurrences saved, 1โ1000. A result limit is not an export of every source match.
offset (type: integer):
Source pagination offset, 0โ99999. offset + maxResults must not exceed 100000. The live source may change between runs.
Actor input object example
{
"taxonName": "Panthera leo",
"yearFrom": 2020,
"yearTo": 2025,
"hasCoordinate": true,
"licenses": [],
"commercialUseOnly": false,
"maxResults": 50,
"offset": 0
}
Actor output Schema
occurrences (type: string):
Occurrence rows and coordinates.
attribution (type: string):
Dataset titles, publisher and record licenses.
runSummary (type: string):
Status, reason, match candidates and request/row counts.
API
You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.
JavaScript example
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
token: '<YOUR_API_TOKEN>',
});
// Prepare Actor input
const input = {
"taxonName": "Panthera leo",
"yearFrom": 2020,
"yearTo": 2025,
"hasCoordinate": true,
"maxResults": 50
};
// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/gbif-occurrence-search").call(input);
// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
console.dir(item);
});
// ๐ Want to learn more ๐? Go to โ https://docs.apify.com/api/client/js/docs
Python example
from apify_client import ApifyClient
# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")
# Prepare the Actor input
run_input = {
"taxonName": "Panthera leo",
"yearFrom": 2020,
"yearTo": 2025,
"hasCoordinate": True,
"maxResults": 50,
}
# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/gbif-occurrence-search").call(run_input=run_input)
# Fetch and print Actor results from the run's dataset (if there are any)
print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item)
# ๐ Want to learn more ๐? Go to โ https://docs.apify.com/api/client/python/docs/quick-start
CLI example
echo '{
"taxonName": "Panthera leo",
"yearFrom": 2020,
"yearTo": 2025,
"hasCoordinate": true,
"maxResults": 50
}' |
apify call cliqtomedia/gbif-occurrence-search --silent --output-dataset
MCP server setup
{
"mcpServers": {
"apify": {
"type": "http",
"url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/gbif-occurrence-search"
}
}
}
The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an Authorization: Bearer <APIFY_API_TOKEN> header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).
OpenAPI specification
Download the OpenAPI definition: https://api.apify.com/v2/actors/DN9hhCGXdcQneDbHf/builds/3FX3EghvYPJcsLEay/openapi.json


