If you are getting the photo from community search, the list of tags associated with that photo will be listed in the media:keywords element of the media:group.
With the Java api, you can access these as follows: URL baseSearchUrl = new URL("https://picasaweb.google.com/data/feed/ api/all"); Query myQuery = new Query(baseSearchUrl); myQuery.setStringCustomParameter("kind", "photo"); myQuery.setMaxResults(10); myQuery.setFullTextQuery("puppy"); AlbumFeed searchResultsFeed = myService.query(myQuery, AlbumFeed.class); for (PhotoEntry photo : searchResultsFeed.getPhotoEntries()) { MediaKeywords tags = photo.getMediaKeywords()); if (tags != null) { for (String tag : tags.getKeywords(); System.out.println(tag); } } } Hope that helps. -Mike On Mar 17, 10:08 am, Michael Francalanci <francalanc...@gmail.com> wrote: > Hi, > i want to get the list of tag from a photo that i get from the > comunity search.I read this: > > URL feedUrl = new > URL("https://picasaweb.google.com/data/feed/api/user/username/albumid/ > albumid/photoid/photoid?kind=tag"); > > AlbumFeed searchResultsFeed = myService.query(feedUrl, > AlbumFeed.class); > > for (TagEntry tag : searchResultsFeed.getTagEntries()) { > System.out.println(tag.getTitle().getPlainText()); > > } > > but the photo is not mine and i don't know how to get the username. > From the photo i con get the id and albumid but not the username. > I don't know if this is the right way or if i can get the tags > directly. > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to google-picasa-data-api@googlegroups.com. To unsubscribe from this group, send email to google-picasa-data-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-picasa-data-api?hl=en.