getPhotoInfo {FlickrAPI}R Documentation

Get available information for a Flickr photo.

Description

R access to photo information of photos posted on Flickr via Flickr API.

Usage

getPhotoInfo(
  api_key = NULL,
  photo_id,
  output = c("location", "date", "url", "tags")
)

get_photo_info(
  api_key = NULL,
  photo_id,
  output = c("location", "date", "url", "tags")
)

Arguments

api_key

Flickr API key. If api_key is 'NULL', the function uses [getFlickrAPIKey()] to use the environment variable "FLICKR_API_KEY" as the key.

photo_id

The id of the photo to get information for.

output

Output data type. Supported options include "all", "location", "date", "url" or "tags". If output = "all", the function returns a list with all available data. Otherwise the function returns a data frame.

Value

This function returns data of specific photo's information.

See Also

https://www.flickr.com/services/api/flickr.photos.getInfo.html

Examples

## Not run: 
getPhotoInfo(
  api_key = "XXXXXXXXXX",
  photo_id = "30484882493",
  output = "location"
)

## End(Not run)

[Package FlickrAPI version 0.1.0.1 Index]