Allow Taxon Search API endpoint to count total results higher than 10,000

The Taxon Search API endpoint seems to return a maximum value of 10,000 in the total_results field. Would it be possible to let it return the actual number of taxon records that match the input parameters?

So for example, if I wanted to know how many bird species iNaturalist had in its taxonomy, I’d like to be able to get that number from total_results from the request below. (Right now, it returns 10,000.)

https://api.inaturalist.org/v1/taxa?taxon_id=3&rank=species&per_page=1&only_id=true

{
  "total_results": 10000,
  "page": 1,
  "per_page": 1,
  "results": [
    {
      "id": 6930
    }
  ]
}

this is might be related to https://forum.inaturalist.org/t/v1-taxa-endpoints-cap-observations-count-at-10-000/7373.

1 Like

I agree. So really, it should be a bug report, not feature request since this is not by design. Incidentally, Dronefly bot doesn’t use this endpoint, but uses /v1/taxa/autocomplete instead, and that seems to work for >10,000 results.

it looks like this has been implemented: https://github.com/inaturalist/iNaturalistAPI/commit/5266ea8f6aa1911da982342eb2187ad3ee5fc6a3.

this resolves the problem for the thing i was trying to build over here: https://forum.inaturalist.org/t/1-000-000th-taxa-record-added-to-inat-database/9308/6

(if moderator sees this, this can be closed now.)