{
  "openapi": "3.0.1",
  "info": {
    "title": "GBIF Scraper: Species & Wildlife Occurrence Data",
    "description": "Scrape GBIF biodiversity data: species search with full taxonomy and threat status, plus wildlife occurrence records with GPS coordinates, dates, observers and photos. Filter by country, year, record type. Export CSV, Excel, JSON. No login or API key. 96,549 jaguar records in Brazil.",
    "version": "0.1",
    "x-build-id": "ZGN4AGU9ZQewO2eYt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~gbif-biodiversity-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-gbif-biodiversity-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/recordsdata~gbif-biodiversity-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-gbif-biodiversity-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/recordsdata~gbif-biodiversity-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-gbif-biodiversity-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "scientificNames": {
            "title": "Scientific names (for sightings)",
            "type": "array",
            "description": "Species to pull sightings and specimens for, for example Panthera onca. One row per record with coordinates, date, observer, dataset and photo. Empty list = skip occurrences (run species or dataset search only).",
            "default": [
              "Panthera onca"
            ],
            "items": {
              "type": "string"
            }
          },
          "taxonKeys": {
            "title": "GBIF taxon keys (optional)",
            "type": "array",
            "description": "Numeric keys instead of names, for example 5219426 (Panthera onca). A genus or family key includes all species below it. Runs in addition to the names above.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country (2-letter code, optional)",
            "type": "string",
            "description": "ISO country code, for example BR, US or CO. Empty means worldwide. Any other format stops the run before charging.",
            "default": ""
          },
          "continent": {
            "title": "Continent (optional)",
            "enum": [
              "",
              "AFRICA",
              "ANTARCTICA",
              "ASIA",
              "EUROPE",
              "NORTH_AMERICA",
              "OCEANIA",
              "SOUTH_AMERICA"
            ],
            "type": "string",
            "description": "Keep only sightings on one continent. Any keeps all.",
            "default": ""
          },
          "boundingBox": {
            "title": "Map rectangle (optional)",
            "type": "string",
            "description": "Four numbers south,west,north,east, for example -20,-58,-17,-55 for the northern Pantanal. With no names or keys, returns every species inside it. For areas crossing longitude 180 use the polygon field.",
            "default": ""
          },
          "geometryWkt": {
            "title": "Map polygon in WKT (optional)",
            "type": "array",
            "description": "One or more closed polygons, longitude first, for example POLYGON((-58 -20, -55 -20, -55 -17, -58 -17, -58 -20)). Keep each under about 140 vertices.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "From year (optional)",
            "minimum": 1700,
            "type": "integer",
            "description": "Sightings observed in this year or later, for example 2020. Empty means no lower bound."
          },
          "yearTo": {
            "title": "To year (optional)",
            "minimum": 1700,
            "type": "integer",
            "description": "Sightings observed up to and including this year, for example 2025. Empty means no upper bound."
          },
          "updatedSince": {
            "title": "Updated since (optional)",
            "type": "string",
            "description": "Only records GBIF indexed or re-processed on or after this day: a date such as 2026-09-01 or a window such as 7d, 4w, 3m, today. Empty means no date filter.",
            "default": ""
          },
          "onlyWithCoordinates": {
            "title": "Only records with coordinates (map-ready)",
            "type": "boolean",
            "description": "On (default): keep only sightings with latitude and longitude.",
            "default": true
          },
          "onlyWithPhotos": {
            "title": "Only records with photos",
            "type": "boolean",
            "description": "On: keep only sightings with at least one image.",
            "default": false
          },
          "excludeGeospatialIssues": {
            "title": "Drop records with coordinate problems",
            "type": "boolean",
            "description": "On: drop sightings GBIF flagged (zero coordinates, country mismatch, out of range). Off: every flag is listed in the issues column.",
            "default": false
          },
          "basisOfRecord": {
            "title": "Record type (optional)",
            "enum": [
              "",
              "HUMAN_OBSERVATION",
              "PRESERVED_SPECIMEN",
              "MACHINE_OBSERVATION",
              "FOSSIL_SPECIMEN",
              "LIVING_SPECIMEN",
              "MATERIAL_SAMPLE",
              "OCCURRENCE",
              "OBSERVATION",
              "MATERIAL_CITATION",
              "LITERATURE",
              "UNKNOWN"
            ],
            "type": "string",
            "description": "For example human observation (iNaturalist, eBird) or preserved specimen (museum). Any keeps all.",
            "default": ""
          },
          "occurrenceStatus": {
            "title": "Seen or not found (optional)",
            "enum": [
              "",
              "PRESENT",
              "ABSENT"
            ],
            "type": "string",
            "description": "Present = the organism was seen, Absent = it was reported as not found. Any keeps both.",
            "default": ""
          },
          "iucnRedListCategory": {
            "title": "Threat status, IUCN Red List (optional)",
            "enum": [
              "",
              "THREATENED",
              "CR",
              "EN",
              "VU",
              "NT",
              "LC",
              "DD",
              "EX",
              "EW",
              "NE"
            ],
            "type": "string",
            "description": "Threatened covers CR, EN and VU together. Any keeps all.",
            "default": ""
          },
          "datasetKeys": {
            "title": "Only these datasets (optional)",
            "type": "array",
            "description": "GBIF dataset keys (UUIDs), for example 50c9509d-22c7-4a22-a47d-8c48425ef4a7. Dataset search returns them. Empty means all datasets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "institutionCode": {
            "title": "Institution or collection code (optional)",
            "type": "string",
            "description": "For example iNaturalist, NHMUK or MNHN. Empty means all.",
            "default": ""
          },
          "speciesQuery": {
            "title": "Species search text (optional)",
            "type": "string",
            "description": "Common or scientific name, for example jaguar, Quercus or hummingbird. One taxonomy row per taxon. Empty skips species search.",
            "default": ""
          },
          "speciesRank": {
            "title": "Taxonomic rank (optional)",
            "enum": [
              "",
              "DOMAIN",
              "SUPERKINGDOM",
              "KINGDOM",
              "SUBKINGDOM",
              "INFRAKINGDOM",
              "SUPERPHYLUM",
              "PHYLUM",
              "SUBPHYLUM",
              "INFRAPHYLUM",
              "SUPERCLASS",
              "CLASS",
              "SUBCLASS",
              "INFRACLASS",
              "PARVCLASS",
              "SUPERLEGION",
              "LEGION",
              "SUBLEGION",
              "INFRALEGION",
              "SUPERCOHORT",
              "COHORT",
              "SUBCOHORT",
              "INFRACOHORT",
              "MAGNORDER",
              "SUPERORDER",
              "GRANDORDER",
              "ORDER",
              "SUBORDER",
              "INFRAORDER",
              "PARVORDER",
              "SUPERFAMILY",
              "FAMILY",
              "SUBFAMILY",
              "INFRAFAMILY",
              "SUPERTRIBE",
              "TRIBE",
              "SUBTRIBE",
              "INFRATRIBE",
              "SUPRAGENERIC_NAME",
              "GENUS",
              "SUBGENUS",
              "INFRAGENUS",
              "SECTION",
              "SUBSECTION",
              "SERIES",
              "SUBSERIES",
              "INFRAGENERIC_NAME",
              "SPECIES_AGGREGATE",
              "SPECIES",
              "INFRASPECIFIC_NAME",
              "GREX",
              "SUBSPECIES",
              "CULTIVAR_GROUP",
              "CONVARIETY",
              "INFRASUBSPECIFIC_NAME",
              "PROLES",
              "RACE",
              "NATIO",
              "ABERRATION",
              "MORPH",
              "VARIETY",
              "SUBVARIETY",
              "FORM",
              "SUBFORM",
              "PATHOVAR",
              "BIOVAR",
              "CHEMOVAR",
              "MORPHOVAR",
              "PHAGOVAR",
              "SEROVAR",
              "CHEMOFORM",
              "FORMA_SPECIALIS",
              "CULTIVAR",
              "STRAIN",
              "OTHER",
              "UNRANKED"
            ],
            "type": "string",
            "description": "For example SPECIES to skip genera, families and subspecies. Any keeps every rank.",
            "default": ""
          },
          "speciesBackboneOnly": {
            "title": "Species: reconciled GBIF Backbone names only",
            "type": "boolean",
            "description": "On: one reconciled name per taxon instead of every checklist (the same species can appear many times). Off keeps all checklists.",
            "default": false
          },
          "datasetQuery": {
            "title": "Dataset search text (optional)",
            "type": "string",
            "description": "Title, keyword or description, for example camera trap, herbarium or bird atlas. One row per dataset. Empty skips dataset search.",
            "default": ""
          },
          "datasetType": {
            "title": "Dataset type (optional)",
            "enum": [
              "",
              "OCCURRENCE",
              "CHECKLIST",
              "SAMPLING_EVENT",
              "METADATA"
            ],
            "type": "string",
            "description": "Keep one kind of dataset. A type without search text lists every dataset of that type, up to the item limit. Any keeps all.",
            "default": ""
          },
          "datasetPublishingCountry": {
            "title": "Publisher country (2-letter code, optional)",
            "type": "string",
            "description": "ISO code of the organisation that publishes the dataset, for example BR, US or CO. Empty means worldwide.",
            "default": ""
          },
          "maxItems": {
            "title": "Max items to collect",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total rows across species, dataset and occurrence records, for example 100. Free Apify users get at most 10 rows (preview); paid users up to 1,000,000.",
            "default": 10
          },
          "onlyNew": {
            "title": "Only records not seen before",
            "type": "boolean",
            "description": "On: deliver only species, sightings and datasets that an earlier run of the same search did not deliver. Seen rows are skipped before the item limit and are not charged.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "A short name so two schedules with identical inputs keep separate memories, for example jaguar-brazil. Empty shares by inputs only.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget seen records before this run",
            "type": "boolean",
            "description": "On: clears the monitor memory so every match counts as new again, up to the item limit.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}