# Species



The biodiversity backbone — a name resolved to its place in taxonomy, and where it has been recorded.



## Species Match

A name resolved against the taxonomic backbone — kingdom to genus, with a confidence score.

- Method: `GET`
- Path: `/v1/science/species`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `name` | string | required | A scientific name, fuzzy spelling tolerated. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/science/species \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "usage_key": 2435099,
    "scientific_name": "Puma concolor (Linnaeus, 1771)",
    "canonical_name": "Puma concolor",
    "rank": "SPECIES",
    "classification": { "kingdom": "Animalia", "phylum": "Chordata", "class": "Mammalia", "family": "Felidae", "genus": "Puma" },
    "confidence_pct": 98,
    "url": "https://www.gbif.org/species/2435099"
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-22T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-23T04:05:00.000Z"
  }
}
```

## Species Occurrences

Where a species has actually been recorded — specimen and observation records with coordinates, from a thousand institutions.

- Method: `GET`
- Path: `/v1/science/occurrences`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `name` | string | required | A scientific name. |
| `limit` | integer | optional | 1 to 100 records. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/science/occurrences \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "species": "Puma concolor",
    "total": 24105,
    "occurrences": [
      {
        "key": 4983772219,
        "scientific_name": "Puma concolor",
        "recordedBy": "iNaturalist",
        "eventDate": "2026-07-14",
        "latitude": -34.6,
        "longitude": -58.4,
        "country": "Argentina",
        "url": "https://www.gbif.org/occurrence/4983772219"
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-22T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-23T04:05:00.000Z"
  }
}
```