Get data freshness
get_freshnessCheck data freshness for a Rivalize project: when its report was made and when each competitor was last observed and how.
Instructions
How current your Rivalize data is for one project: the date of its latest report, and for EACH tracked competitor the date Rivalize last actually observed it and how. Reading is free; this never fetches anything.
Args:
project_id (string, required): the project's UUID. Call list_projects first for the id.
Returns JSON: { data: { project_id, project_name, latest_report: { id, created_at, depth } | null, competitors: Competitor[], observation_kinds } }. Each Competitor: competitor_id, name, website, status ("observed" or "never_observed"), last_observed_at, last_observed_by, and observations with the newest date of each kind:
report_run: a report you can read analysed it and its crawl read the site (report_id names the report)
site_crawl: a stored crawl of its site
monitoring_page_capture: a monitoring check fetched one of its pages (page_type, url)
search_check: a monitoring search asked whether anything changed. It does not read the site, so it never sets last_observed_at. last_observed_at is the newest of report_run, site_crawl and monitoring_page_capture, and last_observed_by names which. A competitor nothing has observed is "never_observed" with null dates: no date is ever estimated or filled in, and a record's edit time is never used as an observation date. A failed crawl, a rejected report and a baseline copied from stored data are not observations.
Returns a 404 error if the project is not in your account.
Use when: "how fresh is this data?", "when did we last look at ?", or before relying on a figure, to say how old it is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project UUID from list_projects |