Skip to contents

Retrieves aggregate counts for an artist's portfolio. Use this for profile headers and stat badges where you need artwork/collection totals without loading the full artwork list.

This is more efficient than counting results from get_artist_recent_works() or get_artist_collections_summary() when you only need the counts.

For detailed per-artwork statistics, use getAppdata() instead.

Usage

get_artist_stats(artist_uuid, cn = NULL)

Arguments

artist_uuid

Artist UUID (validated with artcore::validate_uuid)

cn

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

Value

Named list with:

artworks

Total artwork count

collections

Total collection count

member_since

Artist registration date (POSIXct)

Examples

if (FALSE) { # \dontrun{
stats <- get_artist_stats(artist)
cat(stats$artworks, "artworks in", stats$collections, "collections\n")
cat("Member since", format(stats$member_since, "%B %Y"), "\n")
} # }