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.

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.

GBIF Occurrence Search: species and area filters, published coordinates and license attribution, CSV and JSON export

Run it now: open the prefilled input form and search 50 species records in seconds, no coding

Table of contents

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.

๐Ÿ‘‰ Try it now: open the input form

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

  1. The Actor reads your filters and resolves the scientific name through the public GBIF species match, or takes your taxon key.
  2. It searches GBIF occurrences page by page, then reads the current dataset and publisher details for each new dataset it meets.
  3. It saves one Dataset item per unique occurrence and writes RUN_SUMMARY with the status and counts. The run's status line tells you in one sentence how it ended.

๐Ÿ‘‰ Try it now: open the input form

Quick start

Input form: box 1 the scientific name, box 2 the year range, box 3 the maximum number of results

  1. Open the Input tab. The form is prefilled with Panthera leo (box 1 in the picture).

  2. Keep the years 2020โ€“2025 (box 2) and the coordinate filter, or change them.

  3. Keep Maximum results at 50 (box 3). Set a maximum run cost in Apify if you want a money limit.

  4. Click Start.

  5. 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.

    Output table: box 1 the run status line, box 2 species, country and coordinates, box 3 coordinate uncertainty

  6. 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.

๐Ÿ‘‰ Try it now: open the input form

Use cases

TaskInputFields to use
Explore species recordstaxonName or taxonKeygbifID, taxonomy, eventDate
Prepare a map inputcountry, bbox, hasCoordinate:trueWGS84 coordinates and uncertainty
Check reuse licensescommercialUseOnly or licenseslicense, publisher, dataset citation

๐Ÿ‘‰ Try it now: open the input form

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

FieldTypeDefault / form exampleAllowed values and effectRecommendation
taxonNamestringNo field default; form: Panthera leo1โ€“200 characters; exact scientific-name matchUse a known name. Clear it if you use taxonKey.
taxonKeyintegerNone1โ€“2147483647; GBIF backbone key, including childrenUse a key for an ambiguous name.
countrystringNoneISO alpha-2, such as KE; case is normalizedUse the observation country.
bboxnumber arrayNone[west, south, east, north]; longitude โˆ’180โ€ฆ180, latitude โˆ’90โ€ฆ90; west<east and south<northUse a WGS84 box. Split boxes at the antimeridian yourself.
yearFromintegerNo default; form: 2020Inclusive year, 1โ€“9999; missing lower bound is 1Set with yearTo for a fixed period.
yearTointegerNo default; form: 2025Inclusive year, 1โ€“9999; missing upper bound is 9999Must be at least yearFrom.
hasCoordinatebooleanOmitted = both; form: truetrue = both coordinates present; false = records without bothOmit it for all records. Clear the box before requesting false.
licensesstring array[]CC0_1_0, CC_BY_4_0, CC_BY_NC_4_0; empty = allUse exact codes. Duplicates are ignored.
commercialUseOnlybooleanfalseRestricts record licenses to CC0 and CC BYCheck attribution and the full terms before reuse.
maxResultsinteger501โ€“1000 unique saved occurrencesStart small. This is a result limit, not all source matches.
offsetinteger00โ€“99999; offset + maxResults must be โ‰ค100000Use 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

  • taxonName and taxonKey together cause an input error.
  • country and bbox select their intersection. bbox with hasCoordinate:false is an error.
  • commercialUseOnly:true intersects your license list with CC0 and CC BY. A list containing only CC BY-NC is an error in this mode.
  • maxResults counts 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.

๐Ÿ‘‰ Try it now: open the input form

Output

Output fields

All listed keys are present. Nullable fields use null when the source has no value.

FieldTypeNull?MeaningExample
gbifIDstringnoStable GBIF occurrence ID as text."5006926565"
providerstringnoData provider: GBIF."GBIF"
sourceUrlstringnoGBIF occurrence API record URL."https://api.gbif.org/v1/occurrence/5006926565"
occurrenceUrlstringnoGBIF occurrence page URL."https://www.gbif.org/occurrence/5006926565"
fetchedAtstringnoUTC time when this row was normalized."2026-10-13T12:35:00.202Z"
keynumbernoStable GBIF occurrence ID as a safe integer.5006926565
scientificNamestringyesInterpreted scientific name including authorship."Panthera leo melanochaita (C.E.H.Smith, 1858)"
rankstringyesInterpreted taxon rank."SUBSPECIES"
eventDatestringyesObservation date as supplied by GBIF; may include time or a date interval."2025-01-02T13:53:58"
countrystringyesCountry name of the observation."Tanzania, United Republic of"
countryCodestringyesISO alpha-2 country code."TZ"
basisOfRecordstringyesRecord type, for example HUMAN_OBSERVATION or PRESERVED_SPECIMEN."HUMAN_OBSERVATION"
occurrenceStatusstringyesPRESENT or ABSENT if the source supplies it; neither is inferred."PRESENT"
datasetKeystringyesUUID of the source dataset."50c9509d-22c7-4a22-a47d-8c48425ef4a7"
datasetTitlestringyesCurrent title from the GBIF dataset registry."iNaturalist Research-grade Observations"
datasetUrlstringyesGBIF dataset page for attribution."https://www.gbif.org/dataset/50c9509d-22c7-4a22-a47d-8c48425ef4a7"
datasetDoistringyesDataset DOI where available; not a DOI for this search."10.15468/ab3s5x"
datasetCitationstringyesCitation provided by the dataset registry."iNaturalist contributors, iNaturalist (2026). iNaturalist Research-grade Obsโ€ฆ
publisherstringyesPublishing organization title from the GBIF registry."iNaturalist.org"
publishingOrgKeystringyesUUID of the publishing organization."28eb1a3f-1c15-4a95-931a-4af90ecb574d"
licensestringyesLicense URL of this record, which can differ from the dataset license."http://creativecommons.org/licenses/by-nc/4.0/legalcode"
recordedBystringyesObserver/collector exactly as published; no personal enrichment.as published
sourceUpdatedAtstringyesGBIF lastInterpreted timestamp; not the date of the observation."2026-10-07T01:29:48.970+00:00"
informationWithheldstringyesSource notice about hidden sensitive information."Coordinate uncertainty increased to 31434m to protect threatened taxon"
dataGeneralizationsstringyesSource notice about generalization of sensitive data.null
kingdomstringyesInterpreted kingdom name; null when missing."Animalia"
phylumstringyesInterpreted phylum name; null when missing."Chordata"
classstringyesInterpreted class name; null when missing."Mammalia"
orderstringyesInterpreted order name; null when missing."Carnivora"
familystringyesInterpreted family name; null when missing."Felidae"
genusstringyesInterpreted genus name; null when missing."Panthera"
speciesstringyesInterpreted species name; null when missing."Panthera leo"
taxonKeynumberyesGBIF backbone taxon key assigned to this record.5219411
decimalLatitudenumberyesPublished WGS84 latitude in degrees; null when unavailable.-2.637562
decimalLongitudenumberyesPublished WGS84 longitude in degrees; null when unavailable.34.715044
coordinateUncertaintyInMetersnumberyesPublished horizontal uncertainty in metres; zero is preserved.31434
yearnumberyesObservation year as an integer when supplied.2025
issuesarraynoGBIF quality/interpretation flags.[]
latitudenumberyesSame published WGS84 latitude as decimalLatitude; compatibility alias.-2.637562
longitudenumberyesSame published WGS84 longitude as decimalLongitude; compatibility alias.34.715044
taxonRankstringyesSame interpreted rank as rank; compatibility alias."SUBSPECIES"
urlstringyesSame GBIF record page as occurrenceUrl; compatibility alias."https://www.gbif.org/occurrence/5006926565"
datasetNamestringyesDataset name published on the occurrence record; may differ from the current datasetTitle."iNaturalist research-grade observations"
acceptedScientificNamestringyesAccepted 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:

OutcomeRun statusStatus message starts withNext action
Requested result limit reached, or the source has no more matchesSUCCEEDEDโœ… N occurrences saved and a rating linkUse the returned records, or continue from nextOffset.
Valid empty search or unmatched nameSUCCEEDEDโ„น๏ธ 0 occurrences: no records match these filters, or taxon not found in GBIFCheck your filters or scientific name.
Money limit reachedSUCCEEDEDโš ๏ธ N occurrences saved, stopped at your spending limitUse 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,000Use saved records or narrow your search.
Run time ran out after records were savedSUCCEEDEDโš ๏ธ N occurrences saved, the run time ran out, with a rating linkUse saved records, set a longer Timeout or lower Maximum results.
Run Timeout below 300 s ended before the first recordSUCCEEDEDโš ๏ธ 0 occurrences saved: the run Timeout (N s) ended before the first recordSet Timeout to 300 seconds or more. Only the start fee.
Run aborted by youAbortedโš ๏ธ Run aborted, with the number saved; it can also show โŒ Run failed: the run was cancelledSaved 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 linkKeep saved rows and read the reason before retrying.
Invalid input (your fields)SUCCEEDEDInput error: <field> ..., with an example and the Issues linkFix 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"
}

๐Ÿ‘‰ Try it now: open the input form

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 tierPrice 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 recordsRecord chargeStart feeTotal
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

๐Ÿ‘‰ Try it now: open the input form

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-After support. 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.

๐Ÿ‘‰ Try it now: open the input form

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 gbifID to join records, and check license before 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, onlyNew mode, change detection or deduplication across runs. Deduplicate exports using gbifID. 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.

๐Ÿ‘‰ Try it now: open the input form

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.

๐Ÿ‘‰ Try it now: open the input form

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.

๐Ÿ‘‰ Try it now: open the input form

Related Actors

๐Ÿ‘‰ Try it now: open the input form

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.

Run it now: open the prefilled input form and search 50 species records in seconds, no coding

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