Bug for the species count

When counting the species of two locations, it seems to be pulling species count from “The World”, instead of just the two areas.

Example and screenshots here: https://forum.inaturalist.org/t/how-to-use-inaturalists-search-urls-wiki/63/164

You need to provide links or information on the locations for anyone to examine this.

EDIT - sorry, I misread the link information.

It is broken across the board, any combination of locations generates the same species count.

strange. it seems to be the combination of multiple place ids and other parameters that causes a problem.

ok:
https://api.inaturalist.org/v1/observations/species_counts?place_id=7613&place_id=10301

bad:
https://api.inaturalist.org/v1/observations/species_counts?verifiable=true&place_id=7613&place_id=10301

ok:
https://api.inaturalist.org/v1/observations/species_counts?verifiable=any&place_id=7613&place_id=10301

bad:
https://api.inaturalist.org/v1/observations/species_counts?verifiable=any&spam=false&place_id=7613&place_id=10301

Thanks for reporting. I just deployed a fix for this and hopefully the counts are accurate again. The bug was in how the data was being cached when multiple place_ids were provided.

FYI a better way to search on multiple values of a parameter is to provide them all in a comma-delimited list rather than repeating the parameter multiple times, e.g. https://api.inaturalist.org/v1/observations/species_counts?verifiable=true&place_id=7613,10301

3 Likes

Looks correct now, thanks @pleary!