How to query a geographic range without a specific user ID and observation field?

I would like to query a geographic range (a rectangle) without my own observations, but the query runs forever.

The query of the rectangle is working:
https://www.inaturalist.org/observations?nelat=48.1885847&nelng=16.349777000000017&swlat=48.1548561&swlng=16.29185940000002&order_by=observed_on&verifiable=any

According to How to use iNaturalist’s Search URLs - Wiki i have added to the URL:

&not_user_id=geralda

but then the query runs forever:
https://www.inaturalist.org/observations?nelat=48.1885847&nelng=16.349777000000017&swlat=48.1548561&swlng=16.29185940000002&order_by=observed_on&verifiable=any&not_user_id=geralda

What am i doing wrong?

Try using your numeric id (1958129) instead of your username (geralda). Seems to run pretty fast for me that way.

To find your own user number, go to your profile page, and it will be in the URL. Example: https://www.inaturalist.org/people/1958129

To find any other user’s number, go to their profile page, and hover over the Follow / Stop Following button at top. Their user number will be the “friend_id” in the URL. Example:
https://www.inaturalist.org/users/1958129.json?friend_id=51061

4 Likes

Thank you @jdmore, but this works only for the profile URL at top right.

Since this is working now:

https://www.inaturalist.org/observations?nelat=48.1885847&nelng=16.349777000000017&swlat=48.1548561&swlng=16.29185940000002&order_by=observed_on&verifiable=any&place_id=any&not_user_id=1958129

I would like to exclude the observation field inMeidling of that query by adding to the URL:

&without_field:inMeidling

But it does not work:

https://www.inaturalist.org/observations?nelat=48.1885847&nelng=16.349777000000017&swlat=48.1548561&swlng=16.29185940000002&order_by=observed_on&verifiable=any&place_id=any&not_user_id=1958129&without_field:inMeidling

I have tried the field id instead of the name:

&without_field:10878

but this also did not work:

https://www.inaturalist.org/observations?nelat=48.1885847&nelng=16.349777000000017&swlat=48.1548561&swlng=16.29185940000002&order_by=observed_on&verifiable=any&place_id=any&not_user_id=1958129&without_field:10878

What am i doing wrong @jdmore?

Thank you!

Unfortunately it looks like &without_field has stopped working. See discussion from another thread starting here.

I have created a feature request.

1 Like

FYI I commented in the feature request thread - this API parameter has never been implemented. There may be a little bit of the Mandela Effect going on here. A user made a comment on a post reference the parameter, but it did not exist at that time, nor any time previously or since. We’d consider adding it though.

Unfortunately the API isn’t terribly consistent with naming around implied logical parameters as this (the nots or withouts). This is something we’d hope to change if we released a new version of the API and allow negation of any parameter if possible, in a consistent way.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.