iNaturalist Web Widget?

Hello

Is there a web widget somewhere that I can drop on my website that shows observations seen by my iNaturalist project?

Thanks Gary

Hello

I found widget for “My Observations”, is there a widget for “Project Observations”? Or has anyone tweaked the existing “My Observations” to look at “Project Observations” instead?

https://www.inaturalist.org/observations/widget?logo=logo-small.png&limit=7&order_by=created_at&order=desc&layout=large&commit=Configure+»

Thanks Gary

Find the project you would like to create a widget for, and there is a very small link on the right if you scroll down past the project description.
Screen Shot 2020-07-14 at 3.29.57 PM

You can also navigate there by manually editing a URL, as described here.

6 Likes

that link definitely exists on traditional projects, but i don’t see the link on newer collection project pages. however, the url for such a link can be modified for use by a collection project by simply changing the project id (ex. https://www.inaturalist.org/observations/widget?project_id=78118).

probably the easiest way to find the numeric ID of a project is to open one of your own observations in a collection project that you’re a member of (ex. for @coloradobirder, https://www.inaturalist.org/observations/53079902), using the website. then you can look in the projects section of the observation detail page, and mouseover or copy the link of the project that you’re interested in. that link will contain the numerical id (although when you actually click on it, it will be translated into the non-numerical “slug”).

@coloradobirder, i think you may have also asked more specifically for only observations made by you in that project, and i think the way to do that is to slightly modify the code that the project widget page gives you. that code will include a script tag that looks something like this:

<script type="text/javascript" charset="utf-8" src="https://www.inaturalist.org/observations/project/78118.widget?layout=large&limit=5&order=desc&order_by=observed_on"></script>

just take the code and add &user_id=coloradobirder to the end of the URL in the src="..." part of the script tag. for example:

<script type="text/javascript" charset="utf-8" src="https://www.inaturalist.org/observations/project/78118.widget?layout=large&limit=5&order=desc&order_by=observed_on&user_id=coloradobirder"></script>

1 Like

Awesome, got what I was looking for, many thanks! Gary

Is there method/widget to extract Project Overview data for external website view:
2,176 observations
626 species
564 Identifiers
240 Observers
?
Thanks Gary

i’m not aware of anything existing that would pull in the data, but it should not be too terribly difficult to get that information from the API (https://api.inaturalist.org/v1/docs/#/), if you know how.

here are examples of the request URLs that you could use to get the info:
observations: https://api.inaturalist.org/v1/observations?project_id=78118&per_page=0
species: https://api.inaturalist.org/v1/observations/species_counts?project_id=78118&per_page=0
identifiers: https://api.inaturalist.org/v1/observations/identifiers?project_id=78118&per_page=0
observers: https://api.inaturalist.org/v1/observations/observers?project_id=78118&per_page=0

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