Skip to content

Data freshness

Freshness is a companion system for source-backed datasets. It does not scrape by itself. It tracks whether the source set tied to an entity is fresh, aging, stale, expired, or errored.

Register sources

Register a source

```bash curl https://api.faircompany.ai/v1/freshness/sources \ -X POST \ -H "Authorization: Bearer fc_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "entity_id": "company_stripe", "entity_type": "company", "source_key": "pricing_page", "source_url": "https://stripe.com/pricing", "refresh_cadence": "7 days", "priority": 90 }' ```

Inspect one entity

Check entity freshness

```bash curl https://api.faircompany.ai/v1/freshness/entities/company_stripe \ -H "Authorization: Bearer fc_live_xxx" ```

Read the aggregate dashboard

Read dashboard state

```bash curl https://api.faircompany.ai/v1/freshness/dashboard \ -H "Authorization: Bearer fc_live_xxx" ```
  1. Register stable, canonical sources like pricing pages, docs roots, or product changelogs.
  2. Use short cadences only for sources that materially affect downstream decisions.
  3. Let freshness tell you what is due before you schedule expensive scrape or research jobs.