% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/meta.R
\name{ato_meta}
\alias{ato_meta}
\title{Fetch CKAN metadata for an ATO dataset}
\usage{
ato_meta(x)
}
\arguments{
\item{x}{Either an \code{ato_tbl} (as returned by any \verb{ato_*} data
function) or a character CKAN package ID / slug (e.g.
\code{"taxation-statistics-2022-23"}, \code{"corporate-transparency"}).}
}
\value{
A list with elements:
\itemize{
\item \code{id}: CKAN package slug
\item \code{title}: human-readable title
\item \code{notes}: dataset description (truncated to 400 chars)
\item \code{licence}: licence title
\item \code{metadata_modified}: ISO timestamp of last CKAN update
\item \code{n_resources}: number of downloadable files
\item \code{resource_urls}: character vector of all resource URLs
}
}
\description{
Returns structured metadata for any ATO dataset on data.gov.au:
title, notes, licence, last-modified timestamp, resource count,
and all resource URLs. Useful for detecting silent updates before
clearing the cache, or for auditing what version of data you have.
}
\examples{
\donttest{
op <- options(ato.cache_dir = tempdir())
try({
  # By package ID
  m <- ato_meta("taxation-statistics-2022-23")
  m$metadata_modified

  # From an ato_tbl
  tbl <- ato_individuals(year = "2022-23")
  ato_meta(tbl)
})
options(op)
}
}
\seealso{
Other configuration: 
\code{\link{ato_cache_info}()},
\code{\link{ato_clear_cache}()}
}
\concept{configuration}
