I am trying to learn to use the Explore Search, thanks to this tutorial.
I have now successfully searched for all obs from two Places, and I’m trying to narrow that down to the obs from those 2 places with a Field (not a Value, yet).
I also tried using the Field number, using commas instead of %20 for the spaces in the Field name, and using + instead of the spaces, because that’s how the Field appears in another Search, I think it was in finding “Observations with this Field”.
I had “Grid view” in the url because it was created when I added the first place, in order to create a Search…should that always be removed? If not, when can it be left in, or added?
Or maybe it was the “=yes” that was the problem. I got that from the Tutorial. Maybe it is for whe a Value is to be added.
apologies if this has already been mentioned but I couldn’t find it: is there a function similar to ident_user_id , but for searching for obs that a particular user hasn’t identified?
I think someone once told me how to search for a group of obs using these modified urls, and then bulk edig them. I couldnt try it at the time as I had to learn to create custom searches.
Can someone please tell me again?
For example, i would like to bulk edit to add or remove a field, change a field value, or change coordinates.
I can do this in “Edit observations”, but I dont know how to get an Explore search result into that page.
On that “Edit observations” page there is a “search” button next to the “batch edit” button. If the search filter you are looking for is not available on that page, you can try adding it manually to the URL eg &field:Sex=female (or precede it with a “?” instead of an “&” if it is the first search parameter (eg https://inaturalist.nz/observations/kaipatiki_naturewatch?field:Sex=male).
You can then “batch edit” the results, remembering you have to open the drop-down “batch operations” if you want to easily apply the same change to the whole group that you have selected.
**On that “Edit observations” page there is a “search” button next to the “batch edit” button. If the search filter you are looking for is not available on that page, you can try adding it manually to the URL eg &field:Sex=female (or precede it with a “?” instead of an “&” if it is the first search parameter (eg https://inaturalist.nz/observations/kaipatiki_naturewatch?field:Sex=male).
**
Does anyone know if there is a list somewhere of the rules for creating these Searches, with what code is used for place, field, etc, and their negatives and plurals?
I’m finding it impossible to locate the answers in this thread which I think has the answers somewhere but I can’t remember them all and find them when needed.
One problem slowing down my search attempts is that neither the Edit Observations page nor Explore find my Projects,
Could that be because they were created in error on the global portal?
so i have to add the Project ID, or the Place ID (which is not offered in Edit my Observations) as well as the Field.
which means there are multple ways my searches can be wrong.
I think I have just accidentally added the Field Endemic to a batch of obs in Witheford Reserve, but can’t find them to remove it. I don’t know what the Search was that produced those I added the Field to, so i can’t replicate that. My browser doesn’t show me the page with the Search results I edited.
It is not now urgent, as I have manually removed the field from each of the non-endemic species among my 100 most recent observations. So the “Search result” I accidentally edited must have just been my most recent obs.
Thank goodness it is limited to 100 obs!!!
I still need to learn to use the Search urls though.
It is written with a technical / IT oriented audience in mind, so approach it knowing that, but the best place to see what is available and how to fill it in is here : https://api.inaturalist.org/v1/docs/
notes
typically what you want is to look at one marked ‘get’ as that means it is the search function
so for exampe to look at what can be searched for on observations you would look at Observations/get/observations
under that section is a list of all the parameters that can be searched on. It will include a description, in relevant cases a dropdown with a list of accepted values or a box to enter something, such as a user id
at the bottom of the section is a ‘try it out button’ which if you have filled in anything in the 30-40 options above will generate a series of things
if you manage to put together a search that is invalid, typically you will just get every record on the site returned
I cant guarantee the documentation there is 100 percent updated, only site staff can do that, but they would not be making frequent changes to their api as that is a major endeavour with site wide implications.
Thank you very much for that cmcheatle. As you accurately assessed I am not IT oriented, so I was hoping there would be a collation of the example parameters given in the thread, as I have trouble re-locating them. I suppose I could put them in a sticky on my desktop as I find them.
However I will look at that page and see how far I get. I really appreciate your spelling out how to use it. I will put that in a sticky right now.
Also suggest you bookmark searches that you use often. A search I use often is for Lepidoptera excluding the butterflies, for all three quality grades for a particular locality. I have this saved as a bookmark. One click instead of trying to find all the ids and parameters again.
Gosh, I never use that view! But, yes, you can add all the parameters to the URL. And there are some suggestions for filters on the right-hand side of that page.