Embed iNat species pictures in iframes on external website?


Is it possible to embed iNat species profiles or pictures in iframes? I am working on a website that displays all occurrences of a species in a region and it would be really useful to be able to display pictures of the species selected. For example, if somebody selects Operophtera bruceata, it would be nice to be able to display either the species page or the species picture page: https://www.inaturalist.org/taxa/121236-Operophtera-bruceata/browse_photos

Using iNat for this would be ideal as there are good pictures for almost every species documented in occurrences database. Also, linking to iNat could also means the user could start using it, leading to even more occurrences because of a new user!


1 Like

Have you seen the observations widget maker on the page here?

That looks really interesting and it could become really useful for me in the future, but, I think it is a bit overkill for what I want to do which is mostly to show what a given species looks like with several images. The existence of these widget suggests to me that if iframes of iNat pages cannot be included in other website it is for reasons other than copyright issues?

Or perhaps, the widget can be hacked to obtain what I want without going through an iframe?

If you have the relevant knowledge, most of iNat is open-source and you can check it out on Github. I haven’t the foggiest clue whether that is even useful information, but here ya go

Thanks for the info. I’m slowly starting to understand how to hack the widget to get something that resembles what I want. It is just not as straightforward as embedding a webpage like I initially thought, but it might just work. Still, it would be useful to have easy access to all the RG pictures for a given species.

These API endpoints may also be useful:

with at least taxon_id and photo_license set

look for the ‘taxon_photos’ key in the json, you would need to filter for appropriate licences in your code.