Free Web Services - Herong's Tutorial Examples - Version 2.01, by Dr. Herong Yang
Constructing Image Source URL on Flickr
This section provides a tutorial example on constructing the image source URL for a Flickr photo using farm ID, server ID, photo ID and secret code of the photo.
In the flickr.interestingness.getList response, we are only getting information about each Flickr photo. To get see the real photo, we need to construct an image source URL to get the photo from a Flickr server.
To contruct a Flickr photo image URL, we need to pickup the following information of the photo from the flickr.interestingness.getList response:
The URL to access a Flickr photo has the following format:
For example, this photo called "Sunset at Grande-Rivière" is listed in the flickr.interestingness.getList response.
<photo id="20678745065" owner="21692577@N02" secret="d12cdeb62f" server="5811" farm="6" title="Sunset at Grande-Rivière" ispublic="1" isfriend="0" isfamily="0" />
The constructed URL to access this photo should be:
If you load this URL into a browser, you should see a picture similar to this:
Last update: 2015.
Table of Contents