Hello.
this is my first post here.
My question: Is there anywhere a documentation for the observation widget? I am interested in the parameters, which you can pass to it.
BR,
Johannes
Hi, welcome to the forum @jzoom! I don’t know the answer to your question, but I know that someone will. Thank you for being a part of our community!
Welcome @jzoom!
You might want to check out this tutorial:
https://forum.inaturalist.org/t/how-to-use-inaturalists-search-urls-wiki/63
it might be helpful to know what you’re trying to do.
i’m not aware of any documentation for what i’ll call the widget builder, other than what’s on the page. there are four flavors of that page:
- your observations: https://www.inaturalist.org/observations/widget
- observations for a taxon: https://www.inaturalist.org/observations/widget?taxon_id=1
- observations for a place: https://www.inaturalist.org/observations/widget?place_id=1
- observations for a project: https://www.inaturalist.org/observations/widget?project_id=123
(note that the project version of this must have been an afterthought because the link to get to it is only on the project page, and you can otherwise only specify your project ID in the URL itself, not in a selector on the builder page.)
the original API also appears to provide a way to generate what looks like Javascript code that i guess can be used write elements onto a page. the documentation of parameters is here: https://www.inaturalist.org/pages/api+reference#get-observations. here’s an example of how to call it for your user id: https://www.inaturalist.org/observations.widget?user_id=jzoom.
the original API is pretty old. so if you’re a good enough coder to use those results, you might consider just doing some coding and displaying results from the latest API (http://api.inaturalist.org/v1/docs/). that’ll give you maximum flexibility, i think. here’s an example of a quick and dirty widget that i created just for grins:
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.