Skip to contents

Retrieves print store and OpenSea NFT URLs for all artworks by an artist. Returns a data.table with one row per artwork, NA for missing URLs.

This is the bulk version optimized for get_appdata(). For single-artwork lookups, use get_art_print_url() or get_art_opensea_url() instead.

Usage

get_art_purchase_urls(artist, cn = NULL)

Arguments

artist

Character. Artist UUID (format: "746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

data.table with columns:

art_uuid

Artwork identifier

url_print

Print store URL, or NA if not set

url_opensea

OpenSea listing URL, or NA if not listed

Examples

if (FALSE) { # \dontrun{
# Get all purchase URLs for an artist
urlsDT <- get_art_purchase_urls(artist)

# Filter to artworks with print URLs
urlsDT[!is.na(url_print)]

# Lookup URL for specific artwork
urlsDT[art_uuid == artwork]$url_opensea
} # }