{
  "api": "The Ration Data API",
  "version": "v1",
  "docs": "https://the-ration.com/api",
  "data_as_of": "2026-11-02",
  "data_as_of_label": "Nov 2, 2026",
  "data_pulled_at": "2026-11-12T19:00:08.244Z",
  "generated_at": "2026-11-12T19:04:28.593Z",
  "attribution": "Credit The Ration (the-ration.com) with a visible link to the page the figure came from; every record carries its page_url.",
  "name": "The Ration Data API",
  "description": "Free JSON for every number published on The Ration (the-ration.com): leaderboard, ingredients, regions. The feedstuffs board.",
  "publisher": {
    "name": "The Ration",
    "url": "https://the-ration.com"
  },
  "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; The Ration 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": 28,
    "stats": 13
  },
  "sections": [
    {
      "key": "leaderboard",
      "label": "Leaderboard",
      "series": 2,
      "example": "https://the-ration.com/api/v1/series/leaderboard/cheapest-protein.json"
    },
    {
      "key": "ingredient",
      "label": "Ingredients",
      "series": 25,
      "example": "https://the-ration.com/api/v1/series/ingredient/alfalfa-meal.json"
    },
    {
      "key": "region",
      "label": "Regions",
      "series": 1,
      "example": "https://the-ration.com/api/v1/series/region/index.json"
    }
  ],
  "endpoints": [
    {
      "method": "GET",
      "path": "/api/v1/index.json",
      "url": "https://the-ration.com/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://the-ration.com/api/v1/latest.json",
      "description": "The newest reading of every data page on The Ration (28 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/stats.json",
      "url": "https://the-ration.com/api/v1/stats.json",
      "description": "The 13 headline numbers on the the-ration.com/stats page, each as a quotable sentence with its data date and a ready-made citation."
    },
    {
      "method": "GET",
      "path": "/api/v1/series/{section}/{slug}.json",
      "url": "https://the-ration.com/api/v1/series/leaderboard/cheapest-protein.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://the-ration.com/api/v1/openapi.json",
      "description": "A machine-readable OpenAPI 3.1 description of these endpoints."
    }
  ]
}
