How to use iNaturalist's Search URLs - wiki part 1 of 2

NOTE: this is in part cross-posted from this discussion: https://forum.inaturalist.org/t/any-way-to-bulk-edit-native-introduced-status-for-a-species/677

Here’s a bit more complicated query that I found to solve a problem I had – a query identifying all Counties within a State that have a species on their checklists. For example, this can be done for Berberis aquifolium in Idaho (place_id=22) with this:
https://www.inaturalist.org/places.json?taxon=berberis+aquifolium&per_page=200&ancestor_id=22&place_type=County
( ancestor_id is the upper-level place to search within, and per_page is needed because the default will give an incomplete list for states with many counties.)

To figure this out, I consulted the iNaturalist API docs. The newer alternative API docs are also a great source for hints.

2 Likes