Skip to content

Instantly share code, notes, and snippets.

@smugmug-api-docs
Last active Aug 29, 2015
Embed
What would you like to do?
Expansion example (new)
GET /api/v2/folder/user/cmac!folders?_verbosity=1&_pretty=&_expand=HighlightImage&count=2 HTTP/1.1
Host: www.smugmug.com
Accept: application/json
{
"Response": {
"Uri": "/api/v2/folder/user/cmac!folders?_pretty=&count=2",
"Locator": "Folder",
"LocatorType": "Objects",
"Folder": [
{
"ResponseLevel": "Public",
"Uri": "/api/v2/folder/user/cmac/Family",
"WebUri": "http://cmac.smugmug.com/Family",
"Name": "Family",
"UrlName": "Family",
"SecurityType": "None",
"SortMethod": "SortIndex",
"SortDirection": "Ascending",
"Description": "",
"Keywords": "",
"PasswordHint": "",
"DateAdded": "2013-07-13T22:44:35+00:00",
"DateModified": "2015-04-08T14:51:41+00:00",
"UrlPath": "/Family",
"IsEmpty": false,
"Uris": {
"FolderByID": "/api/v2/folder/id/c4jv4",
"Node": "/api/v2/node/c4jv4",
"User": "/api/v2/user/cmac",
"ParentFolders": "/api/v2/folder/user/cmac!parents",
"ParentFolder": "/api/v2/folder/user/cmac/Family!parent",
"HighlightImage": "/api/v2/highlight/node/c4jv4",
"FolderHighlightImage": "/api/v2/folder/user/cmac/Family!highlightimage",
"Folders": "/api/v2/folder/user/cmac/Family!folders",
"FolderList": "/api/v2/folder/user/cmac/Family!folderlist",
"FolderAlbums": "/api/v2/folder/user/cmac/Family!albums",
"AlbumList": "/api/v2/folder/user/cmac/Family!albumlist",
"FolderPages": "/api/v2/folder/user/cmac/Family!pages",
"Size": "/api/v2/folder/user/cmac/Family!size"
}
},
{
"ResponseLevel": "Public",
"Uri": "/api/v2/folder/user/cmac/SmugMug",
"WebUri": "http://cmac.smugmug.com/SmugMug",
"Name": "SmugMug",
"UrlName": "SmugMug",
"SecurityType": "None",
"SortMethod": "SortIndex",
"SortDirection": "Ascending",
"Description": "",
"Keywords": "",
"PasswordHint": "",
"DateAdded": "2013-07-13T22:44:11+00:00",
"DateModified": "2015-03-26T02:04:49+00:00",
"UrlPath": "/SmugMug",
"IsEmpty": false,
"Uris": {
"FolderByID": "/api/v2/folder/id/XWx8t",
"Node": "/api/v2/node/XWx8t",
"User": "/api/v2/user/cmac",
"ParentFolders": "/api/v2/folder/user/cmac!parents",
"ParentFolder": "/api/v2/folder/user/cmac/SmugMug!parent",
"HighlightImage": "/api/v2/highlight/node/XWx8t",
"FolderHighlightImage": "/api/v2/folder/user/cmac/SmugMug!highlightimage",
"Folders": "/api/v2/folder/user/cmac/SmugMug!folders",
"FolderList": "/api/v2/folder/user/cmac/SmugMug!folderlist",
"FolderAlbums": "/api/v2/folder/user/cmac/SmugMug!albums",
"AlbumList": "/api/v2/folder/user/cmac/SmugMug!albumlist",
"FolderPages": "/api/v2/folder/user/cmac/SmugMug!pages",
"Size": "/api/v2/folder/user/cmac/SmugMug!size"
}
}
],
"Pages": {
"Total": 17,
"Start": 1,
"Count": 2,
"RequestedCount": 2,
"FirstPage": "/api/v2/folder/user/cmac!folders?_pretty=&count=2&start=1",
"NextPage": "/api/v2/folder/user/cmac!folders?_pretty=&count=2&start=3",
"LastPage": "/api/v2/folder/user/cmac!folders?_pretty=&count=2&start=17"
}
},
"Expansions": {
"/api/v2/highlight/node/c4jv4": {
"Uri": "/api/v2/highlight/node/c4jv4",
"Locator": "Image",
"LocatorType": "Object",
"Image": {
"Uri": "/api/v2/image/Wdtd6f7-0",
"WebUri": "http://cmac.smugmug.com/Family/Photos/2015-JanMar/i-Wdtd6f7",
"Title": "",
"Caption": "",
"Keywords": "Aulani; 1957",
"KeywordArray": [
"Aulani",
"1957"
],
"Watermark": "No",
"Latitude": "0.00000000000000",
"Longitude": "0.00000000000000",
"Altitude": 0,
"Hidden": false,
"ThumbnailUrl": "http://photos.smugmug.com/Family/Photos/2015-JanMar/i-Wdtd6f7/0/Th/Aulani-1957-Th.jpg",
"FileName": "Aulani-1957.jpg",
"Processing": false,
"UploadKey": "3892710333",
"Date": "2015-02-22T18:35:06+00:00",
"Format": "JPG",
"OriginalHeight": 2572,
"OriginalWidth": 3455,
"OriginalSize": 8129430,
"LastUpdated": "2015-02-22T18:35:09+00:00",
"Collectable": true,
"IsArchive": false,
"IsVideo": false,
"CanEdit": false,
"Protected": false,
"Watermarked": false,
"Uris": {
"LargestImage": "/api/v2/image/Wdtd6f7-0!largestimage",
"ImageSizes": "/api/v2/image/Wdtd6f7-0!sizes",
"ImageSizeDetails": "/api/v2/image/Wdtd6f7-0!sizedetails",
"ImageAlbum": "/api/v2/album/7xzg3K",
"ImageOwner": "/api/v2/user/cmac",
"ImageComments": "/api/v2/image/Wdtd6f7!comments",
"ImageMetadata": "/api/v2/image/Wdtd6f7!metadata",
"ImagePrices": "/api/v2/image/Wdtd6f7!prices"
}
}
},
"/api/v2/highlight/node/XWx8t": {
"Uri": "/api/v2/highlight/node/XWx8t",
"Locator": "Image",
"LocatorType": "Object",
"Image": {
"Uri": "/api/v2/image/7NBSB2t-0",
"WebUri": "http://cmac.smugmug.com/SmugMug/Heroes/Von-Wongs-INSANE-rooftop/i-7NBSB2t",
"Title": "",
"Caption": "",
"Keywords": "smugmug; rooftop; 0244",
"KeywordArray": [
"smugmug",
"rooftop",
"0244"
],
"Watermark": "No",
"Latitude": "0.00000000000000",
"Longitude": "0.00000000000000",
"Altitude": 0,
"Hidden": false,
"ThumbnailUrl": "http://photos.smugmug.com/SmugMug/Heroes/Von-Wongs-INSANE-rooftop/i-7NBSB2t/0/Th/smugmug_rooftop_0244-Th.jpg",
"FileName": "smugmug_rooftop_0244.jpg",
"Processing": false,
"UploadKey": "3903431943",
"Date": "2015-02-28T18:57:05+00:00",
"Format": "JPG",
"OriginalHeight": 4912,
"OriginalWidth": 7360,
"OriginalSize": 24964876,
"LastUpdated": "2015-02-28T18:57:13+00:00",
"Collectable": true,
"IsArchive": false,
"IsVideo": false,
"CanEdit": false,
"Protected": false,
"Watermarked": false,
"Uris": {
"LargestImage": "/api/v2/image/7NBSB2t-0!largestimage",
"ImageSizes": "/api/v2/image/7NBSB2t-0!sizes",
"ImageSizeDetails": "/api/v2/image/7NBSB2t-0!sizedetails",
"ImageAlbum": "/api/v2/album/RJHXVN",
"ImageOwner": "/api/v2/user/cmac",
"ImageComments": "/api/v2/image/7NBSB2t!comments",
"ImageMetadata": "/api/v2/image/7NBSB2t!metadata",
"ImagePrices": "/api/v2/image/7NBSB2t!prices"
}
}
}
},
"Code": 200,
"Message": "Ok"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment