# iNaturalist species counts API

Get iNaturalist Species Counts data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as iconic_taxa, limit, output, and retrieve structured data including count, source taxon identifier, source taxonomic rank, and observations count for species summaries, and taxon links, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/inaturalist/inaturalist-species-counts-api/ab337c13-6237-4b01-8915-26ea51052d8b/
API ID: ab337c13-6237-4b01-8915-26ea51052d8b
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/inaturalist/v1/species-counts
Page update time: 2026-12-03T02:48:12.128Z
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:48:11.454Z. 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
## iNaturalist Species Counts API

Use supported taxon, place, observer, date, quality and geographic filters. bbox is min\_lng,min\_lat,max\_lng,max\_lat and radius uses kilometres. limit is 1–500, default 100; next\_page continues taxa.

## What You Can Build

- **Species summaries**: Present recorded diversity within a clearly labelled filter scope.
- **Taxon links**: Connect counted taxa to Taxon Details by source ID.

## Returned Data

| Field | Meaning |
| --- | --- |
| `items[].count` | Observation count within the selected filter scope |
| `items[].taxon.id` | Source taxon identifier |
| `items[].taxon.rank` | Source taxonomic rank |
| `items[].taxon.observations_count` | Separate source-wide taxon observation count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "iNaturalist species counts 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": {
        "place_id": {
          "type": "string",
          "description": "iNaturalist place id(s)."
        },
        "iconic_taxa": {
          "type": "string",
          "description": "Iconic group(s), e.g. Aves."
        },
        "taxon_id": {
          "type": "string",
          "description": "Within these taxa."
        },
        "taxon_name": {
          "type": "string",
          "description": "Within this taxon name."
        },
        "project_id": {
          "type": "string",
          "description": "Project id(s)."
        },
        "user": {
          "type": "string",
          "description": "Observer username(s)."
        },
        "quality_grade": {
          "type": "string",
          "description": "research, needs_id or casual."
        },
        "observed_from": {
          "type": "string",
          "description": "Observed on or after (YYYY-MM-DD)."
        },
        "observed_to": {
          "type": "string",
          "description": "Observed on or before."
        },
        "year": {
          "type": "string",
          "description": "Year(s)."
        },
        "month": {
          "type": "string",
          "description": "Month(s)."
        },
        "lat": {
          "type": "number",
          "description": "Centre latitude (with lng and radius)."
        },
        "lng": {
          "type": "number",
          "description": "Centre longitude."
        },
        "radius": {
          "type": "number",
          "description": "Radius in km."
        },
        "bbox": {
          "type": "string",
          "description": "min_lng,min_lat,max_lng,max_lat."
        },
        "threatened": {
          "type": "boolean",
          "description": "Threatened taxa only."
        },
        "introduced": {
          "type": "boolean",
          "description": "Introduced taxa only."
        },
        "native": {
          "type": "boolean",
          "description": "Native taxa only."
        },
        "endemic": {
          "type": "boolean",
          "description": "Endemic taxa only."
        },
        "limit": {
          "type": "integer",
          "description": "Species per page, 1-500 (default 100)."
        },
        "page": {
          "type": "integer",
          "description": "Page number."
        },
        "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": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "iconic_taxa": {
          "type": "string"
        },
        "page": {
          "type": "string"
        },
        "per_page": {
          "type": "string"
        },
        "place_id": {
          "type": "string"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "taxon": {
            "type": "object",
            "properties": {
              "common_name": {
                "type": "string"
              },
              "conservation_status": {
                "type": "null"
              },
              "endemic": {
                "type": "null"
              },
              "establishment": {
                "type": "string"
              },
              "iconic_taxon": {
                "type": "string"
              },
              "id": {
                "type": "integer"
              },
              "introduced": {
                "type": "null"
              },
              "name": {
                "type": "string"
              },
              "native": {
                "type": "null"
              },
              "observations_count": {
                "type": "integer"
              },
              "photo": {
                "type": "string"
              },
              "rank": {
                "type": "string"
              },
              "threatened": {
                "type": "null"
              },
              "url": {
                "type": "string"
              },
              "wikipedia_url": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH recording · HTTP 200
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/inaturalist/v1/species-counts?iconic_taxa=Aves&limit=1&output=json&place_id=14&raw=0' \
  -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
{
  "applied_filters": {
    "iconic_taxa": "Aves",
    "page": "1",
    "per_page": "1",
    "place_id": "14"
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T09:09:18.094Z",
  "items": [
    {
      "count": 109996,
      "taxon": {
        "common_name": "Red-tailed Hawk",
        "conservation_status": null,
        "endemic": null,
        "establishment": "native",
        "iconic_taxon": "Aves",
        "id": 5212,
        "introduced": null,
        "name": "Buteo jamaicensis",
        "native": null,
        "observations_count": 372601,
        "photo": "https://inaturalist-open-data.s3.amazonaws.com/photos/101327658/medium.jpg",
        "rank": "species",
        "threatened": null,
        "url": "https://www.inaturalist.org/taxa/5212",
        "wikipedia_url": "https://en.wikipedia.org/wiki/Red-tailed_hawk"
      }
    }
  ],
  "next_page": 2,
  "page": 1,
  "total": 1470
}
```

## 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
### Is items[].count the same as taxon.observations_count?
No. Keep the filtered observation count separate from the taxon’s source-wide count.

### Does a species count estimate organism abundance?
It counts source observation records, not individual organisms or a complete ecological census.

### How do I continue taxa?
Use next_page as page; limit is 1–500, default 100.

### Which geographic formats are supported?
lat/lng with radius in kilometres, or bbox=min_lng,min_lat,max_lng,max_lat.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

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

## Available implementations
- apish: https://openany.si/inaturalist/inaturalist-species-counts-api/ab337c13-6237-4b01-8915-26ea51052d8b/

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