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

Is there a way to exclude certain taxa? Say I want to see all the plant species that are NOT mosses or algae?

2 Likes

without_taxon_id parameter

multiple entries separated by comma, you just need to know the id

This does all plants in Ontario excluding mosses and cacti (Ontario has way too many cacti it gets boring looking at them all)
For instance https://www.inaturalist.org/observations?place_id=6883&subview=table&taxon_id=47126&view=species&without_taxon_id=311249,47903

7 Likes

Ontario has lots of cacti??

5 Likes

Nearly every windowsill you look at has one.

But amazingly we do have some native growing ones.

9 Likes

That’s exactly what I needed, thank you!

1 Like

This is very useful thanks…previously I have always “glazed over” when any sort of code or URL has been mentioned but atf least the first one or two examples sound feasible even to me…assuming the Url changes in the browser header with each filter.

Am i correct in my impression that it is not possible to bulk edit the results of such searches even using the filter to producd only kne’s own obs?

3 Likes

@kaipatiki_naturewatc Yes, the URL updates in the search box with each filter change. Anything you can filter through the user interface, you can copy/save/bookmark a URL that re-creates that filter each time you go there. After playing with the filter and seeing the resulting URL changes for a while, you should get a pretty good idea of how it works.

And then there are some other filter parameters NOT available through the regular user interface, such as the without_taxon_id= parameter mentioned earlier. This wiki will be especially helpful for documenting those, and I hope will eventually include a complete list of them. (I’ve been collecting a list as I learn about them, but it’s probably missing some things…)

If by “bulk edit” you mean edit the contents of your own observations, I think you would be limited to the capabilities of the Batch Edit functionality at https://www.inaturalist.org/observations/{{username}}, after applying an appropriate Search filter. And that search filter could include manually adding other URL parameters not available through the standard Search filter.

1 Like

Is there a parameter such as without_place_ID. I’m aiming to exclude certain locations from my search. I tried <> and - but this did not work.

To create the opposite search of my URL
https://www.inaturalist.org/observations/identify?place_id=130874,30464,30479,30481&quality_grade=needs_id&iconic_taxa=Plantae,Fungi,Insecta

1 Like

try not_in_place

1 Like

That appears to have worked.

https://www.inaturalist.org/observations/identify?page=5&iconic_taxa=Plantae%2CFungi%2CInsecta&not_in_place=130874%2C30464%2C30479%2C30481

So perhaps the wiki needs a few criteria ideas for IS and IS NOT. With that in place, I think this is a very powerful method to manage views in Inat. It is perhaps not for everyone, but for some, this would certainly give much greater flexibility.

3 Likes

Thank you jdmore. Very useful.
Re bulk editing search results, I am not sure if I understand, but in Edit my observations there are not the same filter options I think?

1 Like

Is there a way to search for an obs that has comments, or even better, comments by a particular member?

1 Like

I think I did not absorb this fully. I eill try using that url and see where I find myself. Thanks again.

1 Like

So in the case of my observations, I would go to https://www.inaturalist.org/observations/jdmore, then use Search to filter the set of observations I want to edit (including any manual additions to the filter URL, if necessary). Then when I have the desired set, I would click “Batch Edit.” Empty check boxes will appear next to each observation, along with several batch options along the top, including “Select All” which will check all the check boxes. Then click “Edit Selected.” There will be further batch options at the top, but for some kinds of edits you may have to visit each observation individually. Hope that helps…

I’m not aware of a way to filter observations by comment presence or comment author, but maybe someone above my “pay grade” is…?

3 Likes

You can search using the URL for comments on all observation like this (for “robin”): https://www.inaturalist.org/comments?commit=Search&q=robin

I feel like that’s not what you’re asking for though.

5 Likes

Good to know though, thanks

1 Like

Thank you jdmore that’s very clear. Will experiment as soon as time permits

1 Like

A most useful topic!

I am trying to see all comments for a particular taxon (species or subspecies). Is that possible? I have played around with urls for both the ~/taxa and ~/comments pages with no luck.

At present I have to go to the ~/observations page grid view and look for those with the most comments icon and open them at random. it would be also nice to on this page, only see those with comments, or order them descending with the most comments.

10 Likes

I would like to be able to find comments based on user id. E.g. I can remember that a comment was made by a particular person, but I can’t remember where. So it’ll be a parameter like the one for identification by a particular user (ident_user_id) but for comments. I tried various permutations of comment_user_id but couldn’t find the right syntax.

5 Likes

@karoopixie - there is no hack you are missing, this functionality does not exist.

2 Likes