Skip to main content

How to get a user’s email address with the Flickr API

The flickr.profile.getProfile API returns somebody’s email address, but only if you’re allowed to see it.

Flickr members can control who can see their email address in the “Who can see what” part of the Privacy & Permissions settings. The default is “nobody”.

When I’m signed in and I call this API against my own account, my email address is an attribute on the profile element:

<profile id="199258389@N04" email="alex@alexwlchan.net" />

This attribute is omitted if I try to look up somebody else’s email address and I don’t have permission to see it.