{
  "openapi": "3.0.1",
  "info": {
    "title": "GBIF Occurrence Search Scraper",
    "description": "Search 1.5B+ species occurrence records from the Global Biodiversity Information Facility. Filter by taxon, country, year, dataset, basis of record. Pulls coordinates, taxonomy, dates, recorder, IUCN status, license per record.",
    "version": "1.0",
    "x-build-id": "w7DkP4gjsbiSIbeie"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~gbif-occurrence-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-gbif-occurrence-search-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/parseforge~gbif-occurrence-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-gbif-occurrence-search-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/parseforge~gbif-occurrence-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-gbif-occurrence-search-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": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000"
          },
          "taxonKey": {
            "title": "Taxon Key",
            "type": "integer",
            "description": "GBIF taxon key. Example: 212 = Aves (birds), 359 = Mammalia, 6 = Plantae."
          },
          "scientificName": {
            "title": "Scientific Name",
            "type": "string",
            "description": "Filter by scientific name. Example: Anas platyrhynchos."
          },
          "datasetKey": {
            "title": "Dataset Key",
            "type": "string",
            "description": "GBIF dataset UUID. Restricts results to a single publishing dataset."
          },
          "country": {
            "title": "Country",
            "uniqueItems": true,
            "type": "array",
            "description": "ISO 3166-1 alpha-2 country codes. Leave empty for worldwide.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "MX",
                "BR",
                "AR",
                "CL",
                "CO",
                "PE",
                "VE",
                "UY",
                "PY",
                "BO",
                "EC",
                "GY",
                "SR",
                "CR",
                "PA",
                "GT",
                "HN",
                "NI",
                "SV",
                "BZ",
                "CU",
                "DO",
                "HT",
                "JM",
                "BS",
                "BB",
                "TT",
                "GB",
                "IE",
                "FR",
                "DE",
                "ES",
                "PT",
                "IT",
                "NL",
                "BE",
                "LU",
                "CH",
                "AT",
                "DK",
                "SE",
                "NO",
                "FI",
                "IS",
                "PL",
                "CZ",
                "SK",
                "HU",
                "RO",
                "BG",
                "GR",
                "HR",
                "SI",
                "RS",
                "BA",
                "ME",
                "MK",
                "AL",
                "UA",
                "BY",
                "RU",
                "TR",
                "CY",
                "MT",
                "EE",
                "LV",
                "LT",
                "CN",
                "JP",
                "KR",
                "KP",
                "TW",
                "HK",
                "MO",
                "MN",
                "IN",
                "PK",
                "BD",
                "LK",
                "NP",
                "BT",
                "MV",
                "AF",
                "ID",
                "MY",
                "SG",
                "TH",
                "VN",
                "PH",
                "KH",
                "LA",
                "MM",
                "BN",
                "TL",
                "AU",
                "NZ",
                "FJ",
                "PG",
                "SB",
                "VU",
                "NC",
                "PF",
                "WS",
                "TO",
                "KI",
                "TV",
                "NR",
                "MH",
                "FM",
                "PW",
                "SA",
                "AE",
                "QA",
                "KW",
                "BH",
                "OM",
                "YE",
                "IQ",
                "IR",
                "JO",
                "LB",
                "SY",
                "IL",
                "PS",
                "EG",
                "LY",
                "TN",
                "DZ",
                "MA",
                "SD",
                "SS",
                "ET",
                "ER",
                "DJ",
                "SO",
                "KE",
                "UG",
                "TZ",
                "RW",
                "BI",
                "CD",
                "CG",
                "CF",
                "CM",
                "GA",
                "GQ",
                "TD",
                "NE",
                "NG",
                "BJ",
                "TG",
                "GH",
                "CI",
                "LR",
                "SL",
                "GN",
                "GW",
                "SN",
                "GM",
                "MR",
                "ML",
                "BF",
                "CV",
                "ST",
                "AO",
                "ZM",
                "ZW",
                "MZ",
                "MW",
                "MG",
                "MU",
                "SC",
                "KM",
                "ZA",
                "NA",
                "BW",
                "SZ",
                "LS",
                "RE",
                "YT",
                "GL",
                "FO",
                "AX",
                "GE",
                "AM",
                "AZ",
                "KZ",
                "UZ",
                "TM",
                "TJ",
                "KG",
                "AD",
                "MC",
                "SM",
                "VA",
                "LI",
                "XK"
              ]
            }
          },
          "yearFrom": {
            "title": "Year From",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest event year (inclusive). Example: 2010."
          },
          "yearTo": {
            "title": "Year To",
            "minimum": 1700,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest event year (inclusive). Example: 2024."
          },
          "hasCoordinate": {
            "title": "Has Coordinates",
            "type": "boolean",
            "description": "Only include records with decimal latitude/longitude.",
            "default": false
          },
          "basisOfRecord": {
            "title": "Basis Of Record",
            "uniqueItems": true,
            "type": "array",
            "description": "Type of evidence backing the occurrence record.",
            "items": {
              "type": "string",
              "enum": [
                "HUMAN_OBSERVATION",
                "MACHINE_OBSERVATION",
                "OBSERVATION",
                "PRESERVED_SPECIMEN",
                "FOSSIL_SPECIMEN",
                "LIVING_SPECIMEN",
                "MATERIAL_SAMPLE",
                "MATERIAL_CITATION",
                "OCCURRENCE",
                "LITERATURE"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}