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:

http://farm{farm-id}.static.flickr.com/{server-id}/{photo-id}_{secret}.jpg

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:

http://farm6.static.flickr.com/5811/20678745065_d12cdeb62f.jpg

If you load this URL into a browser, you should see a picture similar to this:

Flickr Photo: Old Faithful
Flickr Photo: Old Faithful

Last update: 2015.

Table of Contents

 About This Book

 SoapUI - Web Service Testing Tool

 SOAP Web Service and SoapUI

 REST Web Service and SoapUI

 GetCountries - Get All Countries and Territories

 GetCurrencies - Get Currencies from All Countries and Territories

 GetGMTbyCountry - Get GMT Information of a Given Country

 GetISD - Get ISD Phone Code of a Given Country

 GetCitiesByCountry - Get Cities by Country

 LatLonListCityNames - Return Latitudes and Longitudes of US Cities

 GetInfoByState - Get ZIP Codes of a Given US State

 GetAirportInformationByCountry - Get Airport Code by Country

 GetGeoIP - Get Country by IP Address

 ConvertTemp - Convert Temperature Unit

 ChangeLengthUnit - Convert Length Unit

 ConvertWeight - Convert Weight Unit

 ChangeAreaUnit - Convert Area Unit

 Code39 - Generate Bar Code Images in Code 39 Format

 GenerateBarCode - Generate Bar Code Images

 GetMortgagePayment - Calculate Mortgage Payment

 ConversionRate - Get Currency Exchange Rate

 GetQuote - Get Stock Quote

 getTime - Get the Current Time

 GetSunSetRiseTime - Get Sunrise and Sunset Time

 GetWeatherByZipCode - Get Weather by ZIP Code in US

 NDFDgenByDay - US Weather Forecast by Day

 NDFDgen - US-Weather Forecast for a Single Location

 questionSearch - Search Yahoo! Questions and Answers

flickr.interestingness.getList - Get Interesting Photos

 flickr.interestingness.getList - Usage Description

 flickr.interestingness.getList - HTTP Request Sample

 flickr.interestingness.getList - Response Message Sample

 flickr.interestingness.getList - Response in JSON Format

Constructing Image Source URL on Flickr

 Flickr Image Source URLs for Different Sizes

 Hotwire - Get Travel Ticker Deals

 Outdated Tutorials

 References

 PDF Printing Version