{
  "arguments": {
    "argument": [
      {
        "_content": "Your API application key. <a href=\"/services/api/misc.api_keys.html\">See here</a> for more details.",
        "name": "api_key",
        "optional": 0
      },
      {
        "_content": "The ID of the collection to fetch a tree for, or zero to fetch the root collection. Defaults to zero.",
        "name": "collection_id",
        "optional": "1"
      },
      {
        "_content": "The ID of the account to fetch the collection tree for. Defaults to the calling user.",
        "name": "user_id",
        "optional": "1"
      }
    ]
  },
  "errors": {
    "error": [
      {
        "_content": "The specified user could not be found.",
        "code": "1",
        "message": "User not found"
      },
      {
        "_content": "The specified collection does not exist.",
        "code": "2",
        "message": "Collection not found"
      },
      {
        "_content": "The API key passed was not valid or has expired.",
        "code": 100,
        "message": "Invalid API Key"
      },
      {
        "_content": "The requested service is temporarily unavailable.",
        "code": 105,
        "message": "Service currently unavailable"
      },
      {
        "_content": "The requested operation failed due to a temporary issue.",
        "code": 106,
        "message": "Write operation failed"
      },
      {
        "_content": "The requested response format was not found.",
        "code": 111,
        "message": "Format \"xxx\" not found"
      },
      {
        "_content": "The requested method was not found.",
        "code": 112,
        "message": "Method \"xxx\" not found"
      },
      {
        "_content": "The SOAP envelope send in the request could not be parsed.",
        "code": 114,
        "message": "Invalid SOAP envelope"
      },
      {
        "_content": "The XML-RPC request document could not be parsed.",
        "code": 115,
        "message": "Invalid XML-RPC Method Call"
      },
      {
        "_content": "One or more arguments contained a URL that has been used for abuse on Flickr.",
        "code": 116,
        "message": "Bad URL found"
      }
    ]
  },
  "method": {
    "description": {
      "_content": "Returns a tree (or sub tree) of collections belonging to a given user.\n\t\t\t\tNote that the response values of `iconlarge` and `iconsmall` are defunct and will now return empty mosaic grids. For more information on how to \n\t\t\t\tuse the new style of collection mosaics, go <a href=\"https://www.flickr.com/services/api/misc.collections.html\">here</a>."
    },
    "explanation": {
      "_content": "A nested tree of collections, and the collections and sets they contain."
    },
    "name": "flickr.collections.getTree",
    "needslogin": 0,
    "needssigning": 0,
    "requiredperms": 0,
    "response": {
      "_content": "<collections>\n<collection id=\"12-72157594586579649\" title=\"All My Photos\" description=\"a collection\" iconlarge=\"https://combo.staticflickr.com/pw/images/collection_default_l.gif\" \niconsmall=\"https://combo.staticflickr.com/pw/images/collection_default_s.gif\">\n<set id=\"92157594171298291\" title=\"kitesurfing\" description=\"a set\"/>\n<set id=\"72157594247596158\" title=\"faves\" description=\"some favorites.\"/>\n</collection>\n</collections>"
    }
  },
  "stat": "ok"
}