Tell me more ×
SmugMug Stack Exchange is a question and answer site for SmugMug developers and end users. It's 100% free, no registration required.

I'd like to retrieve the bio photo for a user given their nickname. Is there an API or a standard URL to do this? Thanks.

share|improve this question

1 Answer

up vote 5 down vote accepted

There isn't a dedicated API or standard URL for this currently. But there is an undocumented hack using Extras parameter on any response that returns a User object (including Friend or Family).

Adding &Extras=BioImage,SmallURL to your request will return the info you are looking for...

{
  "stat": "ok",
  "method": "smugmug.users.getInfo",
  "User": {
    "Bio": {
      "Image": {
        "id": 137355545,
        "Key": "sNs2k",
        "SmallURL": "http://devbobo.smugmug.com/photos/137355545_sNs2k-S.jpg"
      }
    },
    "Name": "David Parry",
    "NickName": "devbobo",
    "URL": "http://devbobo.smugmug.com"
  }
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.