# GBIF dataset search API

Search GBIF Dataset via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, q, and retrieve structured data including dataset UUID, dataset title, dataset type, dataset license, and reported record count to discover topic datasets, and compare source metadata, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/gbif/gbif-dataset-search-api/947a5c79-c965-4003-b1a7-682de9416ab8/
API ID: 947a5c79-c965-4003-b1a7-682de9416ab8
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/gbif/v1/datasets
Page update time: 2026-12-03T02:43:46.244Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:45.381Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## GBIF Dataset Search API

All search filters are optional. limit ranges from 1 to 100 (default 20); items\[\] contains dataset summaries and next\_offset provides continuation.

## What You Can Build

- **Discover topic datasets**: Combine q and type.
- **Compare source metadata**: Inspect license and publishing\_org\_key before detailed lookup.

## Returned Data

| Field | Meaning |
| --- | --- |
| `items[].key` | Dataset UUID |
| `items[].title` | Dataset title |
| `items[].type` | Dataset type |
| `items[].license` | Dataset license |
| `items[].record_count` | Reported record count |
| `next_offset` | Continuation offset |
| `total` | Total matching datasets |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GBIF dataset search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "Words."
        },
        "type": {
          "type": "string",
          "description": "Type(s): occurrence, checklist, metadata, sampling_event, material_entity."
        },
        "publishing_country": {
          "type": "string",
          "description": "Publisher country code(s)."
        },
        "hosting_country": {
          "type": "string",
          "description": "Host country code(s)."
        },
        "publishing_org": {
          "type": "string",
          "description": "Publisher key(s)."
        },
        "keyword": {
          "type": "string",
          "description": "Keyword(s)."
        },
        "license": {
          "type": "string",
          "description": "cc0_1_0, cc_by_4_0, cc_by_nc_4_0."
        },
        "taxon_key": {
          "type": "string",
          "description": "Datasets with this taxon."
        },
        "decade": {
          "type": "string",
          "description": "Covers this decade, e.g. 1990."
        },
        "limit": {
          "type": "integer",
          "description": "Results per page, 1-100 (default 20)."
        },
        "offset": {
          "type": "integer",
          "description": "Results to skip."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "created": {
            "type": "null"
          },
          "description": {
            "type": "string"
          },
          "doi": {
            "type": "string"
          },
          "homepage": {
            "type": "null"
          },
          "hosting_org": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "type": "null"
          },
          "license": {
            "type": "string"
          },
          "logo_url": {
            "type": "null"
          },
          "modified": {
            "type": "string"
          },
          "pub_date": {
            "type": "null"
          },
          "publishing_country": {
            "type": "string"
          },
          "publishing_org": {
            "type": "string"
          },
          "publishing_org_key": {
            "type": "string"
          },
          "record_count": {
            "type": "integer"
          },
          "subtype": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "next_offset": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/gbif/v1/datasets?limit=1&output=json&q=birds&raw=0&type=occurrence' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:26:16.772Z",
  "items": [
    {
      "created": null,
      "description": "<p>The Osteological Birds Collection as established in 1900. It numbers 4862 complete and partial skeletons and separate bones of the birds, mainly from Bulgaria, but also from Azerbaijan, Belgium, Belarus, Spain, Kazakhstan, China, USA, Antarctica, etc. Contains 19 complete mounted skeletons of birds. All remaining skeletons are kept unarticulated and unmounted.</p>",
      "doi": "10.15468/997k96",
      "homepage": null,
      "hosting_org": "GBIF Secretariat",
      "key": "1d0212a5-5c5e-4696-8114-f39b2b35de5f",
      "keywords": [
        "Metadata",
        "birds",
        "osteology",
        "Bulgaria",
        "Specimen"
      ],
      "language": null,
      "license": "http://creativecommons.org/licenses/by-nc/4.0/legalcode",
      "logo_url": null,
      "modified": "2026-11-16T12:01:22.778+00:00",
      "pub_date": null,
      "publishing_country": "BG",
      "publishing_org": "National Museum of Natural History, Bulgarian Academy of Sciences",
      "publishing_org_key": "826e5964-1925-48e4-a839-f4b418e75260",
      "record_count": 3394,
      "subtype": "SPECIMEN",
      "title": "Birds — Osteological Collection",
      "type": "occurrence",
      "url": "https://www.gbif.org/dataset/1d0212a5-5c5e-4696-8114-f39b2b35de5f"
    }
  ],
  "next_offset": 1,
  "offset": 0,
  "total": 1355
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I paginate?
Use limit from 1 to 100 (default 20) and offset. Pass a returned next_offset for continuation while retaining the same filters.

### How do publisher and hosting countries differ?
publishing_country filters the publisher location; hosting_country filters where the dataset is hosted.

### What license filters are supported?
The contract lists cc0_1_0, cc_by_4_0 and cc_by_nc_4_0.

### Can I find datasets containing a taxon?
Use taxon_key; it filters dataset coverage rather than returning occurrence rows.

### Where can I get a full dataset profile?
Pass items[].key to Dataset Details.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or use output=json.

## Available implementations
- apish: https://openany.si/gbif/gbif-dataset-search-api/947a5c79-c965-4003-b1a7-682de9416ab8/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
