Skip to contents

Retrieves the most recently uploaded artworks for an artist. Use this to populate "Recent Works" grids on profile pages or homepage features.

Returns lightweight artwork metadata (no stats or analytics). For full artwork data including performance metrics, use getAppdata() or query individual artwork functions.

Usage

get_artist_recent_works(artist_uuid, limit = 6, cn = NULL)

Arguments

artist_uuid

Artist UUID (validated with artcore::validate_uuid)

limit

Maximum number of artworks to return. Default 6 is optimized for a 2x3 grid layout. Use 9 for 3x3 grids.

cn

Optional database connection. Pass an existing connection to avoid connection overhead when making multiple queries.

Value

data.table with columns:

art_uuid

Artwork identifier

art_name

URL-friendly name

art_title

Display title

collection_uuid

Parent collection

created_utc

Upload timestamp

Examples

if (FALSE) { # \dontrun{
recent <- get_artist_recent_works(artist, limit = 9)
# Build thumbnail URLs
recent[, thumb := pathArtworkThumb(artist, art_uuid)]
} # }