get_nua_media_links: Retrieve and Extract Media URLs from Nordic Microalgae

View source: R/nua_api_functions.R

get_nua_media_linksR Documentation

Description

This function retrieves media information from the Nordic Microalgae API and extracts slugs and URLs for different renditions (large, original, small, medium) for each media item.

Usage

get_nua_media_links(unparsed = FALSE)

Arguments

unparsed

Logical. If TRUE, complete API response is returned as an unparsed list. Default is FALSE.

Value

When unparsed = FALSE: a data frame with the following columns:

  • slug: The slug of the related taxon.

  • l_url: The URL for the "large" rendition.

  • o_url: The URL for the "original" rendition.

  • s_url: The URL for the "small" rendition.

  • m_url: The URL for the "medium" rendition.

Examples

## Not run: 
# Retrieve media information
media_info <- get_nua_media_links(unparsed = FALSE)

# Preview the extracted data
head(media_info)

## End(Not run)

sharksmhi/SHARK4R documentation built on Jan. 9, 2025, 5:15 p.m.