# Import Flickr Photos to Website

**URL:** <https://forum.kirupa.com/t/import-flickr-photos-to-website/265955>\
**Category:** web dev\
**Created:** [July 14, 2008, 10:28pm UTC](https://forum.kirupa.com/t/import-flickr-photos-to-website/265955 "2008-07-14T22:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![heathermorin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/heathermorin/32/3284_2.png) [@heathermorin](https://forum.kirupa.com/u/heathermorin)\
**Post date:** [July 14, 2008, 10:28pm UTC](https://forum.kirupa.com/t/import-flickr-photos-to-website/265955/1 "2008-07-14T22:28:43Z")

</div>

Hello,

Does anyone have experience with importing images from a Flickr account, to a website photo gallery?

Thanks :stare:

---

<div class="post-metadata">

**Author:** ![actionAction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/actionaction/32/3987_2.png) [@actionAction](https://forum.kirupa.com/u/actionAction)\
**Post date:** [July 15, 2008, 5:50am UTC](https://forum.kirupa.com/t/import-flickr-photos-to-website/265955/2 "2008-07-15T05:50:39Z")

</div>

Using the Flickr API? PHP? This could be accomplished pretty easily with static absolute image embedding:

```auto
<img src="http://farm4.static.flickr.com/2342343/2_23423ader.jpg" />

```

You probably mean embedding from the rss feed from the website, as this is dynamic and makes a lot more sense. Here is an example that pulls the first 20 fotos from a strangers flickr account and writes them to your page. To obtain this url, click the rss icon at the bottom of the page so that you get to view your rss feed, change the end of the url from rss\_200 to json, copy and paste the link into the js include file:

```auto

<script type="text/javascript">
function jsonFlickrFeed(o)
{
	var i = 0;
	while(o.items*)
	{
    	document.write('<img src="' + o.items*.media.m + '" alt="' + o.items*.title +'">');
   		i++;
	}
}
</script>
<script src="http://api.flickr.com/services/feeds/photos_public.gne?id=28203925@N08&lang=en-us&format=json" type="text/javascript"></script>

```
