Abbreviation of top photos in users search and user endpoints
For performance reasons we are removing some of the deeply-nested photo objects returned in the search/users
and users/:username
endpoints.
Previously, the user object contained an array of the top 3 photos, which included a full photo response for each photo:
{
"id": "s6-TQxOxDSA",
"created_at": "2016-01-27T07:55:40-05:00",
"width": 2448,
"height": 2448,
"color": "#E8F4F9",
"likes": 0,
"liked_by_user": false,
"description": "A man drinking a coffee.",
"current_user_collections": [],
"urls": {
"raw": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8",
"full": "https://hd.unsplash.com/photo-1453899242646-c74d86b5b8e8",
"regular": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&s=05993ddfa31268c29b2e7e253d9b112b",
"small": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&s=2d0bd4cef8c2955243273764ca953dcf",
"thumb": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=a1d5d225a733ed19574b97b701d9e20f"
},
"links": {
"self": "https://api.unsplash.com/photos/s6-TQxOxDSA",
"html": "http://unsplash.com/photos/s6-TQxOxDSA",
"download": "http://unsplash.com/photos/s6-TQxOxDSA/download"
}
}
Going forward, the new shape of these top 3 photos will be abbreviated to:
{
"id": "s6-TQxOxDSA",
"urls": {
"raw": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8",
"full": "https://hd.unsplash.com/photo-1453899242646-c74d86b5b8e8",
"regular": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&s=05993ddfa31268c29b2e7e253d9b112b",
"small": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=400&fit=max&s=2d0bd4cef8c2955243273764ca953dcf",
"thumb": "https://images.unsplash.com/photo-1453899242646-c74d86b5b8e8?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=200&fit=max&s=a1d5d225a733ed19574b97b701d9e20f"
}
}
To get a list of full photo objects for a user, instead hit the users/:username/photos
endpoint.