flickr.galleries.getListForPhoto

Return the list of galleries to which a photo has been added. Galleries are returned sorted by date which the photo was added to the gallery.

Authentication

This method does not require authentication.

Arguments

api_key (Required)
Your API application key. See here for more details.
photo_id (Required)
The ID of the photo to fetch a list of galleries for.
per_page (Optional)
Number of galleries to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500.
page (Optional)
The page of results to return. If this argument is omitted, it defaults to 1.

Example Response

<galleries total="7" page="1" pages="1" per_page="100">
  <gallery id="9634-72157621980433950" url="http://www.flickr.com/photos/revdancatt/galleries/72157621980433950" owner="35468159852@N01" date_create="1249748647" date_update="1260486168" primary_photo_id="2080242123" primary_photo_server="2209" primary_photo_farm="3" primary_photo_secret="55c9" count_photos="18" count_videos="0">
    <title>Vivitar Ultra Wide &amp; Slim Selection</title>
    <description>The cheap and cheerful camera that isn't quite as cheap as it used to be.</description>
  </gallery>
  <gallery id="22342631-72157622254010831" url="http://www.flickr.com/photos/22365685@N03/galleries/72157622254010831" owner="22365685@N03" date_create="1253035020" date_update="1260431618" primary_photo_id="3182914049" primary_photo_server="3319" primary_photo_farm="4" primary_photo_secret="b94fb" count_photos="13" count_videos="0">
    <title>Awesome Pics</title>
    <description />
  </gallery>
</galleries>

Error Codes

100: Invalid API Key
The API key passed was not valid or has expired.
105: Service currently unavailable
The requested service is temporarily unavailable.
106: Write operation failed
The requested operation failed due to a temporary issue.
111: Format "xxx" not found
The requested response format was not found.
112: Method "xxx" not found
The requested method was not found.
114: Invalid SOAP envelope
The SOAP envelope send in the request could not be parsed.
115: Invalid XML-RPC Method Call
The XML-RPC request document could not be parsed.
116: Bad URL found
One or more arguments contained a URL that has been used for abuse on Flickr.

API Explorer

API Explorer : flickr.galleries.getListForPhoto