有没有办法使用Unsplash API获取与照片相关的所有标签?
我知道我可以通过标签进行search,所以我可以find所有标记为包含术语“狗”的照片,但是有没有办法将照片及其相关标签(狗,小狗,后院等) 。)?
如果您使用端点GET /photos/:id
您可以检索照片的categories
。
"categories": [ { "id": 4, "title": "Nature", "photo_count": 24783, "links": { "self": "https://api.unsplash.com/categories/4", "photos": "https://api.unsplash.com/categories/4/photos" } }, // and so on ],