Hi all,
from the iNat widget, I know, that the species Spatula cyanoptera
has been observed at this location. This is the place:
https://www.inaturalist.org/places/rio-lluta-desembocadura-ap-cl
This is the widget:
https://www.inaturalist.org/places/guide_widget/rio-lluta-desembocadura-ap-cl
The place_id is 131950:
https://api.inaturalist.org/v1/places/autocomplete?q=rio-lluta
Now, I am querying the INat API to search for this species Spatula cyanoptera
at a couple of given locations, including this said place and have these findings:
-
When searching for observations only at this specific place_id, the results return a reference to the place_id (in the subobject “place_ids” of the returned json)
https://api.inaturalist.org/v1/observations?q=spatula&place_id=131950
-
When searching for observations on multiple place ids, the results do not (or might not) return a reference to this specific place id (in the subobject “place_ids” of the returned json)
https://api.inaturalist.org/v1/observations?q=spatula&place_id=132018,132012,132011,143905,132009,131951,132005,132007,131950,142057,142056,146617,146619,132008,132006,143903,132014,132014,132013,132024,132022,132020,132028,132027,132026,132025,141616,141560,141558,141557,141703,141702,141700,141699,141794,141793,141814,141792,137412,141790,141705,141819,141825,141817,141820,141818,141828,141827,141824,141823,141821,141815,141832,141831,141829,141842,141841,141840,141839,141838,141836,141834,141847,141846,141845,141843,141844,141848,141858,141857,141854,141874,141860,141876,141880,141883,141886,141892,142026,141900,141895,132019,142055,132031,131949,131937,132033,132032,142054,132035,142053,142052,132036,142016,142015,142017,141986,142031,142027,142025,142043,142042,142041,142039,142038,142037,142035,142032,141906,141974,141973,141970,141977,141982,141902,141984,142022,142020,142044
(I am not posting the JSON responses here as they are very long but you can easily query those urls from the browser and search for 131950 in the resulting json response)
Is anyone able to explain, what is happening here? Are my queries wrong or is my latter query something that is not understood by the API or is this an API internal issue?
(Earlier I had posted about whether the GET query might fail with a lot of place ids. Maybe this is kind of this issue that the iNat server only receives part of my place ids?
https://forum.inaturalist.org/t/inat-api-search-species-occurrences-on-a-set-of-places/31866/2)
Many thanks for any suggestions.