{
  "api": "Know Your Onions Data API",
  "version": "v1",
  "docs": "https://knowyouronions.news/api",
  "data_as_of": "2026-11-10",
  "data_as_of_label": "Nov 10, 2026",
  "data_pulled_at": "2026-11-11T00:22:24.975Z",
  "generated_at": "2026-11-11T08:28:10.921Z",
  "attribution": "Credit Know Your Onions (knowyouronions.news) with a visible link to the page the figure came from; every record carries its page_url.",
  "name": "Know Your Onions Data API",
  "description": "Free JSON for every number published on Know Your Onions (knowyouronions.news): origins, varieties, packs, price trend, exports, the Board, why prices are moving, current price. The onion market page produce buyers actually need.",
  "publisher": {
    "name": "Know Your Onions",
    "url": "https://knowyouronions.news"
  },
  "auth": "none",
  "cors": "*",
  "format": "application/json; charset=utf-8",
  "license": "Free to use and republish with attribution; no key or sign-up. The underlying figures are public records from the agencies named in each series' provenance; Know Your Onions collects, checks and publishes them.",
  "update_policy": "Static files rebuilt every time the site rebuilds with new data. data_as_of in each response is the newest observation it holds; data_pulled_at is when the site last pulled its sources.",
  "counts": {
    "series": 23,
    "stats": 0
  },
  "sections": [
    {
      "key": "origin",
      "label": "Origins",
      "series": 12,
      "example": "https://knowyouronions.news/api/v1/series/origin/california.json"
    },
    {
      "key": "variety",
      "label": "Varieties",
      "series": 4,
      "example": "https://knowyouronions.news/api/v1/series/variety/red.json"
    },
    {
      "key": "pack",
      "label": "Packs",
      "series": 2,
      "example": "https://knowyouronions.news/api/v1/series/pack/50-lb-sacks.json"
    },
    {
      "key": "trend",
      "label": "Price trend",
      "series": 1,
      "example": "https://knowyouronions.news/api/v1/series/trend/onion-prices.json"
    },
    {
      "key": "export",
      "label": "Exports",
      "series": 1,
      "example": "https://knowyouronions.news/api/v1/series/export/benelux.json"
    },
    {
      "key": "board",
      "label": "The Board",
      "series": 1,
      "example": "https://knowyouronions.news/api/v1/series/board/weekly-movers.json"
    },
    {
      "key": "why",
      "label": "Why prices are moving",
      "series": 1,
      "example": "https://knowyouronions.news/api/v1/series/why/onion-prices-falling.json"
    },
    {
      "key": "current-price",
      "label": "Current price",
      "series": 1,
      "example": "https://knowyouronions.news/api/v1/series/current-price/onions.json"
    }
  ],
  "endpoints": [
    {
      "method": "GET",
      "path": "/api/v1/index.json",
      "url": "https://knowyouronions.news/api/v1/index.json",
      "description": "What this API is, its license and attribution, the sections it covers, and every endpoint."
    },
    {
      "method": "GET",
      "path": "/api/v1/latest.json",
      "url": "https://knowyouronions.news/api/v1/latest.json",
      "description": "The newest reading of every data page on Know Your Onions (23 series): the headline value as the site shows it, the newest point of each charted line with its date, whether it is current, and links to its page and full history."
    },
    {
      "method": "GET",
      "path": "/api/v1/series/{section}/{slug}.json",
      "url": "https://knowyouronions.news/api/v1/series/origin/california.json",
      "description": "Everything behind one data page: every charted point (date + value), the historical band where the page draws one, the page's tables exactly as shown, its source and citation. Find each series_url in latest.json."
    },
    {
      "method": "GET",
      "path": "/api/v1/openapi.json",
      "url": "https://knowyouronions.news/api/v1/openapi.json",
      "description": "A machine-readable OpenAPI 3.1 description of these endpoints."
    }
  ]
}
