{
  "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": "Stats will be returned for this date. This should be in either be in YYYY-MM-DD or unix timestamp format.\n\nA day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day.\n\nIf no date is provided, all time view counts will be returned.",
        "name": "date",
        "optional": "1"
      },
      {
        "_content": "The order in which to sort returned photos. Defaults to views. The possible values are views, comments and favorites.\n\nOther sort options are available through <a href=\"/services/api/flickr.photos.search.html\">flickr.photos.search</a>.",
        "name": "sort",
        "optional": "1"
      },
      {
        "_content": "Number of referrers to return per page. If this argument is omitted, it defaults to 25. The maximum allowed value is 100.",
        "name": "per_page",
        "optional": "1"
      },
      {
        "_content": "The page of results to return. If this argument is omitted, it defaults to 1.",
        "name": "page",
        "optional": "1"
      }
    ]
  },
  "errors": {
    "error": [
      {
        "_content": "The user you have requested stats has not enabled stats on their account.",
        "code": "1",
        "message": "User does not have stats"
      },
      {
        "_content": "No stats are available for the date requested. Flickr only keeps stats data for the last 28 days.",
        "code": "2",
        "message": "No stats for that date"
      },
      {
        "_content": "The date provided could not be parsed",
        "code": "3",
        "message": "Invalid date"
      },
      {
        "_content": "The sort provided is not valid",
        "code": "5",
        "message": "Invalid sort"
      },
      {
        "_content": "SSL is required to access the Flickr API.",
        "code": 95,
        "message": "SSL is required"
      },
      {
        "_content": "The passed signature was invalid.",
        "code": 96,
        "message": "Invalid signature"
      },
      {
        "_content": "The call required signing but no signature was sent.",
        "code": 97,
        "message": "Missing signature"
      },
      {
        "_content": "The login details or auth token passed were invalid.",
        "code": 98,
        "message": "Login failed / Invalid auth token"
      },
      {
        "_content": "The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.",
        "code": 99,
        "message": "User not logged in / Insufficient permissions"
      },
      {
        "_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": "List the photos with the most views, comments or favorites"
    },
    "explanation": {
      "_content": "<p>This method returns the standard photo list xml.</p>\n\n<p>In addition each photo element contains a <code>&lt;stats&gt;</code> element. This has attributes for the view, comment and favorite counts for the requested day.</p>\n\n<p>To map <code>&lt;photo&gt;</code> elements to urls, please read the <a href=\"misc.urls.html\">url documentation</a>.</p>\n"
    },
    "name": "flickr.stats.getPopularPhotos",
    "needslogin": 1,
    "needssigning": 1,
    "requiredperms": "1",
    "response": {
      "_content": "<photos page=\"2\" pages=\"89\" perpage=\"10\" total=\"881\">\n\t<photo id=\"2636\" owner=\"47058503995@N01\" \n\t\tsecret=\"a123456\" server=\"2\" title=\"test_04\"\n\t\tispublic=\"1\" isfriend=\"0\" isfamily=\"0\">\n\t\t<stats views=\"941\" comments=\"18\" favorites=\"2\"/>\n\t</photo>\n\t<photo id=\"2635\" owner=\"47058503995@N01\"\n\t\tsecret=\"b123456\" server=\"2\" title=\"test_03\"\n\t\tispublic=\"0\" isfriend=\"1\" isfamily=\"1\">\n\t\t<stats views=\"141\" comments=\"1\" favorites=\"2\"/>\n\t</photo>\n</photos>"
    }
  },
  "stat": "ok"
}