{
 "openapi": "3.1.0",
 "jsonSchemaDialect": "https://spec.openapis.org/oas/3.1/dialect/base",
 "info": {
  "title": "PaperWeb read-only API",
  "version": "1.1.0",
  "summary": "The six papers, their stories, sources, markets and feeds, as static JSON and feeds.",
  "description": "PaperWeb is a network of six newspapers built from public RSS feeds. Everything the papers publish is also available here as **plain, static, read-only JSON** and as **feeds** (RSS 2.0, Atom 1.0, JSON Feed 1.1, OPML). No key, no sign-up, no cookies.\n\n### How it is served\n- **GET (and HEAD) only.** Every endpoint is a static file; any other method gets `405`.\n- **HTTPS only.** `http://` answers `308 Permanent Redirect` to the same path over HTTPS, and `Strict-Transport-Security` is one year.\n- **Open to any origin:** every response here carries `Access-Control-Allow-Origin: *`. Preflights are not answered (`OPTIONS` gets `405`), so call it with simple requests: a plain `fetch(url)` works from any page.\n- **Revalidate, then reuse.** Responses carry `Cache-Control: no-cache` with an `ETag` and a `Last-Modified`, so a cache must ask again each time and gets **`304 Not Modified`** while the file is unchanged. Browsers do this on their own. From a server, send `If-None-Match` (or `If-Modified-Since`) with what you got last; from a browser on another site, leave it to the browser, since setting those headers yourself makes the request need a preflight.\n- **Compressed** with zstd or gzip when you send `Accept-Encoding` (the news pins: gzip, stored compressed).\n- Errors are short plain text (`404 Not Found`) and never cached.\n\n### How fresh\nThe JSON under `/api/v1/` is written by the build every walk tick (a few minutes apart: each run starts 5 minutes after the previous one ends) and carries its own `generated` time; it is rewritten each tick even when nothing else changed. The feeds and the news pins are rewritten only when their stories change, so their `ETag` holds until then. Market quotes are refreshed every 15 minutes. The papers keep stories for their own window (a few days; each feed's own pace for slow feeds) and the API holds what they hold now: no history is kept here.\n\n### Please\nCredit the publishers: every story carries its publisher's url (`external_url`) and source name, and the text and pictures remain theirs. Poll no more often than every 5 minutes, and use conditional requests. See the [Terms](/terms/), the [Privacy Policy](/privacy/) and [how the papers are made](/how/).",
  "contact": {
   "name": "PaperWeb",
   "url": "https://paperweb.news/api/",
   "email": "support@paperweb.news"
  },
  "termsOfService": "https://paperweb.news/terms/"
 },
 "servers": [
  {
   "url": "https://paperweb.news",
   "description": "PaperWeb (the same files answer on paperweb.wehack.net)"
  }
 ],
 "security": [],
 "tags": [
  {
   "name": "API",
   "description": "The index and this description."
  },
  {
   "name": "Papers",
   "description": "The six papers: HOME (world and national), GOOD, BAD, TECH, STRM (streaming and gaming) and HODL (crypto and markets)."
  },
  {
   "name": "Sources",
   "description": "The feeds the papers read, and how the ranking sees them."
  },
  {
   "name": "Map",
   "description": "Where the stories are."
  },
  {
   "name": "Sections",
   "description": "The sections beyond the papers: REVIEWS, the Recipe Book, the Comic Book and the Funny Pages, PLAY, the Backlog, THE RECORD, the Library and HUSH."
  },
  {
   "name": "Feeds",
   "description": "RSS, Atom, JSON Feed and OPML. Also listed on https://paperweb.news/rss/."
  }
 ],
 "externalDocs": {
  "description": "The API page",
  "url": "https://paperweb.news/api/"
 },
 "paths": {
  "/api/index.json": {
   "get": {
    "operationId": "getIndex",
    "tags": [
     "API"
    ],
    "summary": "API index",
    "description": "Every endpoint as an absolute url, and the paper ids.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The index.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Index"
        },
        "example": {
         "name": "PaperWeb read-only API",
         "version": 1,
         "generated": "2026-10-15T06:37:24+00:00",
         "docs": "https://paperweb.news/api/",
         "reference": "https://paperweb.news/api/docs/",
         "openapi": "https://paperweb.news/api/openapi.json",
         "feeds_hub": "https://paperweb.news/rss/",
         "endpoints": {
          "papers": "https://paperweb.news/api/v1/papers.json",
          "sources": "https://paperweb.news/api/v1/sources.json",
          "paper_articles": "https://paperweb.news/api/v1/papers/{id}/articles.json",
          "paper_markets": "https://paperweb.news/api/v1/papers/{id}/markets.json",
          "paper_sources": "https://paperweb.news/api/v1/papers/{id}/sources.json",
          "sources_detail": "https://paperweb.news/api/v1/sources-detail.json",
          "modes": "https://paperweb.news/api/v1/modes.json",
          "news_pins": "https://paperweb.news/api/v1/news-pins.json",
          "news_pins_days": "https://paperweb.news/api/v1/news-pins/index.json",
          "news_pins_day": "https://paperweb.news/api/v1/news-pins/{day}.json",
          "reviews": "https://paperweb.news/api/v1/reviews.json",
          "recipes": "https://paperweb.news/api/v1/recipes.json",
          "recipe": "https://paperweb.news/api/v1/recipes/{recipe}.json",
          "comics": "https://paperweb.news/api/v1/comics.json",
          "funnypages": "https://paperweb.news/api/v1/funnypages.json",
          "play": "https://paperweb.news/api/v1/play.json",
          "play_day": "https://paperweb.news/api/v1/play/{day}.json",
          "backlog": "https://paperweb.news/api/v1/backlog.json",
          "backlog_day": "https://paperweb.news/api/v1/backlog/{day}.json",
          "record": "https://paperweb.news/api/v1/record.json",
          "library": "https://paperweb.news/api/v1/library.json",
          "hush": "https://paperweb.news/api/v1/hush.json",
          "combined_feeds": {
           "rss": "https://paperweb.news/rss/all.xml",
           "atom": "https://paperweb.news/rss/all.atom.xml",
           "json": "https://paperweb.news/rss/all.json"
          }
         },
         "papers": [
          "home",
          "good",
          "bad",
          "tech",
          "strm",
          "hodl"
         ],
         "notes": "Static JSON regenerated every few minutes; GET only; CORS open. Articles credit their publishers - please keep the attribution."
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/openapi.json": {
   "get": {
    "operationId": "getOpenApi",
    "tags": [
     "API"
    ],
    "summary": "This description",
    "description": "This OpenAPI 3.1 document. It is generated from the code that writes the files (tools/openapi.py) and checked against them on every build.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "OpenAPI 3.1.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/OpenAPI"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/papers.json": {
   "get": {
    "operationId": "listPapers",
    "tags": [
     "Papers"
    ],
    "summary": "The six papers",
    "description": "Each paper with its feeds, its API files and how many sources and stories it has.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The papers.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaperList"
        },
        "example": {
         "generated": "2026-10-15T06:37:24+00:00",
         "papers": [
          {
           "id": "home",
           "title": "PaperWeb · World & National News",
           "description": "The complete daily. World affairs, national politics, business, technology, markets, science, and considered opinion — with signal, not noise.",
           "url": "https://paperweb.news/home/",
           "feeds": {
            "rss": "https://paperweb.news/home/feed.xml",
            "atom": "https://paperweb.news/home/atom.xml",
            "json": "https://paperweb.news/home/feed.json"
           },
           "api": {
            "articles": "https://paperweb.news/api/v1/papers/home/articles.json",
            "markets": "https://paperweb.news/api/v1/papers/home/markets.json",
            "sources": "https://paperweb.news/api/v1/papers/home/sources.json"
           },
           "sources": 178,
           "articles": 1200
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/papers/{paper}/articles.json": {
   "get": {
    "operationId": "getPaperArticles",
    "tags": [
     "Papers"
    ],
    "summary": "A paper's stories",
    "description": "Every story the paper holds now (a few hundred to 1,200, newest first), including other outlets' reports of the same story, as JSON Feed 1.1 items without the full text. The full text of distilled stories is in the paper's feeds and on its pages (`url`).",
    "parameters": [
     {
      "$ref": "#/components/parameters/Paper"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The stories.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaperArticles"
        },
        "example": {
         "paper": "home",
         "generated": "2026-10-15T06:37:24+00:00",
         "count": 1200,
         "items": [
          {
           "id": "https://www.deseret.com/sports/2026/10/14/high-school-football-provo-timpanogos/",
           "url": "https://paperweb.news/home/a/7b8ac50fc6957066",
           "external_url": "https://www.deseret.com/sports/2026/10/14/high-school-football-provo-timpanogos/",
           "title": "High school football: Provo wins Region 8 again as regular season comes to a close with victory over Timpanogos",
           "summary": "Little went wrong for Provo in its 47-15 victory over Timpanogos Wednesday night in Orem. The Bulldogs never trailed, taking a 21-point lead into halftime, and only built on that for a dominant victory in both teams’ final regular season game.",
           "image": "https://paperweb.news/home/img/cache/ced6b9a7453d3ce5bd9f.avif",
           "date_published": "2026-10-15T05:56:41+00:00",
           "authors": [
            {
             "name": "Tom Ripplinger"
            }
           ],
           "tags": [
            "national"
           ],
           "_paperweb": {
            "source": "Deseret News",
            "distilled": true,
            "via_distilled": false,
            "paywalled": false
           }
          },
          {
           "id": "https://www.cnbc.com/2026/10/15/india-starlink-musk-jio-ambani-ipo.html",
           "url": "https://www.cnbc.com/2026/10/15/india-starlink-musk-jio-ambani-ipo.html",
           "external_url": "https://www.cnbc.com/2026/10/15/india-starlink-musk-jio-ambani-ipo.html",
           "title": "Inside India newsletter: Billionaire Ambani’s mega-IPO faces a valuation reality check amid Musk spat",
           "summary": "Jio Platforms, the company at the center of Musk’s remarks, is launching an IPO later this month.",
           "content_text": "Jio Platforms, the company at the center of Musk’s remarks, is launching an IPO later this month.",
           "image": "https://paperweb.news/home/img/cache/fd671b71e0d6b91f87d7.webp",
           "date_published": "2026-10-15T06:22:45+00:00",
           "authors": [
            {
             "name": "CNBC Top Stories"
            }
           ],
           "tags": [
            "world"
           ],
           "_paperweb": {
            "source": "CNBC Top Stories",
            "distilled": false,
            "via_distilled": false,
            "paywalled": "soft"
           }
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/papers/{paper}/markets.json": {
   "get": {
    "operationId": "getPaperMarkets",
    "tags": [
     "Papers"
    ],
    "summary": "A paper's market bar",
    "description": "The quotes on the paper's ticker (each paper picks its own) and the NYSE movers bar. Each change is measured from the instrument's own trading day: a session instrument from the previous official close, futures, FX and crypto on TradingView's day.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Paper"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The market bar.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaperMarkets"
        },
        "example": {
         "paper": "tech",
         "generated": "2026-10-15T06:37:24+00:00",
         "markets": {
          "sp500": {
           "v": 7718.94,
           "c": -1.11,
           "h": [
            7805.450195,
            7775.950195,
            7781.709961,
            7718.94
           ],
           "s": "^GSPC",
           "x": "SNP",
           "t": "SP-SPX"
          },
          "nvda": {
           "v": 221.3,
           "c": -3.16,
           "h": [
            228.520004,
            224.904999,
            225.324005,
            221.3
           ],
           "s": "NVDA",
           "x": "NMS",
           "n": "NVIDIA",
           "t": "NASDAQ-NVDA"
          },
          "btc": {
           "v": 80602.0,
           "c": -1.19,
           "h": [
            81573.1,
            81713.671875,
            81631.8125,
            80602.01
           ],
           "s": "BTC-USD",
           "x": "CCC",
           "t": "CRYPTO-BTCUSD"
          },
          "_movers": {
           "up": [
            {
             "s": "DAO",
             "n": "Youdao, Inc.",
             "v": 19.5,
             "c": 7.62,
             "x": "NYQ",
             "t": "NYSE-DAO"
            }
           ],
           "down": [
            {
             "s": "SKYD",
             "n": "Skydance Corporation",
             "v": 7.06,
             "c": -22.22,
             "x": "NYQ",
             "t": "NYSE-SKYD"
            }
           ],
           "dow": [
            {
             "s": "UNH",
             "n": "UnitedHealth Group",
             "v": 395.62,
             "c": 4.73,
             "x": "NYQ",
             "t": "NYSE-UNH"
            }
           ],
           "at": "2026-10-15T05:52:43+00:00"
          }
         }
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/papers/{paper}/sources.json": {
   "get": {
    "operationId": "getPaperSources",
    "tags": [
     "Sources"
    ],
    "summary": "A paper's feeds",
    "description": "Every feed the paper reads, with its starting section.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Paper"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "Its feeds.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PaperSources"
        },
        "example": {
         "paper": "home",
         "generated": "2026-10-15T06:37:24+00:00",
         "count": 178,
         "sources": [
          {
           "name": "Modern Retail",
           "url": "https://www.modernretail.co/feed/",
           "category": "business"
          },
          {
           "name": "Retail Dive",
           "url": "https://www.retaildive.com/feeds/news/",
           "category": "business"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/sources.json": {
   "get": {
    "operationId": "listSources",
    "tags": [
     "Sources"
    ],
    "summary": "Every feed",
    "description": "Every feed the six papers read, once each.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The feeds.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SourceList"
        },
        "example": {
         "generated": "2026-10-15T06:37:24+00:00",
         "count": 588,
         "sources": [
          {
           "name": "404 Media",
           "url": "https://www.404media.co/rss/",
           "site": "https://www.404media.co/",
           "category": "tech"
          },
          {
           "name": "80.lv",
           "url": "https://80.lv/feed",
           "site": "https://80.lv/",
           "category": "tech"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/sources-detail.json": {
   "get": {
    "operationId": "getSourcesDetail",
    "tags": [
     "Sources"
    ],
    "summary": "Every feed, in detail",
    "description": "Every feed PaperWeb tracks, including benched ones, with its lifecycle status, its outlet's quality value and reputation stage, its paywall class, the last 7 days of polls and its stories on each paper now. The table on https://paperweb.news/sources/ is drawn from this file. Publisher facts only: nothing about readers.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The feeds in detail.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/SourcesDetail"
        },
        "example": {
         "generated": "2026-10-15T06:37:24+00:00",
         "count": 629,
         "modes": {
          "reputation": "shadow",
          "sections": {
           "home": "shadow",
           "good": "shadow",
           "bad": "shadow",
           "tech": "shadow",
           "strm": "shadow",
           "hodl": "shadow"
          },
          "lean": {
           "home": {
            "on": true,
            "top": 100,
            "rated": 50,
            "mean": -0.04,
            "left": 0.34,
            "right": 0.24,
            "stops": {
             "left": 2,
             "lean_left": 15,
             "center": 21,
             "lean_right": 7,
             "right": 5
            },
            "ok": true,
            "thin": null
           },
           "strm": {
            "on": true,
            "top": 100,
            "rated": 5,
            "mean": 0.4,
            "left": 0.4,
            "right": 0.4,
            "stops": {
             "left": 0,
             "lean_left": 2,
             "center": 1,
             "lean_right": 0,
             "right": 2
            },
            "ok": true,
            "thin": "left"
           }
          }
         },
         "statuses": {
          "active": 559,
          "probation": 29,
          "benched": 41
         },
         "outlets": 554,
         "notes": "Every feed PaperWeb tracks. quality: the 0-1 source value ranking uses (0.60 = unknown). reputation_stage: earned reputation, measured daily (in trial: ranking does not use it yet). polls_7d: feed checks in the last 7 days. stories/distilled: on that paper now. See https://paperweb.news/how/",
         "sources": [
          {
           "name": "ABC News",
           "feed": "https://abcnews.go.com/abcnews/topstories",
           "papers": [
            {
             "paper": "home",
             "section": "national",
             "stories": 3,
             "distilled": 0
            }
           ],
           "site": "https://abcnews.go.com/",
           "outlet": "abcnews.go.com",
           "status": "active",
           "since": "2026-10-08",
           "quality": 0.6,
           "paywall": "free",
           "polls_7d": {
            "ok": 68,
            "unchanged": 0,
            "failed": 0
           },
           "last_ok": "2026-10-15T05:04:41Z"
          },
          {
           "name": "Benedict Evans",
           "feed": "https://www.ben-evans.com/benedictevans?format=rss",
           "papers": [
            {
             "paper": "tech",
             "section": "opinion",
             "stories": 0,
             "distilled": 0
            }
           ],
           "benched_reason": "stale 23d",
           "site": "https://www.ben-evans.com/",
           "outlet": "ben-evans.com",
           "status": "benched",
           "since": "2026-09-27",
           "benched_times": 1,
           "quality": 0.6,
           "reputation_stage": "benched",
           "paywall": "soft"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/modes.json": {
   "get": {
    "operationId": "getModes",
    "tags": [
     "Sources"
    ],
    "summary": "Ranking switches",
    "description": "The switches the ranking ran with (earned reputation, learned sections) and each paper's left/center/right mix; https://paperweb.news/how/ words itself from it.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The switches.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Modes"
        },
        "example": {
         "generated": "2026-10-15T06:37:24+00:00",
         "reputation": "shadow",
         "sections": {
          "home": "shadow",
          "good": "shadow",
          "bad": "shadow",
          "tech": "shadow",
          "strm": "shadow",
          "hodl": "shadow"
         },
         "lean": {
          "home": {
           "on": true,
           "top": 100,
           "rated": 50,
           "mean": -0.04,
           "left": 0.34,
           "right": 0.24,
           "stops": {
            "left": 2,
            "lean_left": 15,
            "center": 21,
            "lean_right": 7,
            "right": 5
           },
           "ok": true,
           "thin": null
          },
          "strm": {
           "on": true,
           "top": 100,
           "rated": 5,
           "mean": 0.4,
           "left": 0.4,
           "right": 0.4,
           "stops": {
            "left": 0,
            "lean_left": 2,
            "center": 1,
            "lean_right": 0,
            "right": 2
           },
           "ok": true,
           "thin": "left"
          }
         }
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/news-pins.json": {
   "get": {
    "operationId": "getNewsPins",
    "tags": [
     "Map"
    ],
    "summary": "Where the stories are: the last 72 hours",
    "description": "**The last 72 hours only** (`window_hours`): every story whose time (published, else first seen) is that recent with a primary location (read from the publisher's own coordinates, its dateline or the places it names, against GeoNames), newest first. The last 30 days are in the day files (`days_index`). Rewritten only when its pins change; served gzip-compressed as stored.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The pins.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NewsPins"
        },
        "example": {
         "generated": "2026-10-15T06:37:17Z",
         "window_hours": 72,
         "days_index": "/api/v1/news-pins/index.json",
         "items": [
          {
           "id": "7b8ac50fc6957066",
           "title": "High school football: Provo wins Region 8 again as regular season comes to a close with victory over Timpanogos",
           "url": "https://paperweb.news/home/a/7b8ac50fc6957066",
           "lat": 40.2969,
           "lon": -111.6946,
           "time": "2026-10-15T05:56:41Z",
           "source": "Deseret News",
           "summary": "Little went wrong for Provo in its 47-15 victory over Timpanogos Wednesday night in Orem.",
           "precision": "city",
           "place": {
            "name": "Orem",
            "cc": "US"
           },
           "papers": [
            "news"
           ]
          },
          {
           "id": "5d925dfb32ca1fdd",
           "title": "UK economy grew 0.1% in August, beating expectations",
           "url": "https://www.cnbc.com/2026/10/15/uk-gdp-august-2026-economy.html",
           "lat": 52.54,
           "lon": -1.38,
           "time": "2026-10-15T06:12:36Z",
           "source": "CNBC Top Stories",
           "summary": "The U.K. economy grew by a better-than-expected 0.1% in the month to August.",
           "precision": "country",
           "place": {
            "name": "United Kingdom",
            "cc": "GB"
           },
           "papers": [
            "hodl",
            "news"
           ]
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/news-pins/index.json": {
   "get": {
    "operationId": "getNewsPinsIndex",
    "tags": [
     "Map"
    ],
    "summary": "The day files",
    "description": "The last 30 UTC days of pins, one file each: its url, how many pins, its size and a `sha` of its pins. Keep the shas you have and fetch a day again only when its sha changed: a past day seldom does. A day older than 30 days is removed.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The days.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NewsPinsIndex"
        },
        "example": {
         "generated": "2026-10-15T06:37:17Z",
         "days": [
          {
           "day": "2026-10-15",
           "url": "/api/v1/news-pins/2026-10-15.json",
           "items": 187,
           "bytes": 110302,
           "sha": "9c1e04b7a2f3"
          },
          {
           "day": "2026-10-14",
           "url": "/api/v1/news-pins/2026-10-14.json",
           "items": 532,
           "bytes": 316884,
           "sha": "41d0e6c58a7b"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/news-pins/{day}.json": {
   "get": {
    "operationId": "getNewsPinsDay",
    "tags": [
     "Map"
    ],
    "summary": "One day of pins",
    "description": "Every story with a primary location whose time (published, else first seen) falls on this UTC day, newest first (a story dated ahead of the clock is filed under today). Rewritten only when that day's pins change; served gzip-compressed as stored.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Day"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The day's pins.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/NewsPinsDay"
        },
        "example": {
         "generated": "2026-10-15T06:37:17Z",
         "day": "2026-10-15",
         "items": [
          {
           "id": "7b8ac50fc6957066",
           "title": "High school football: Provo wins Region 8 again as regular season comes to a close with victory over Timpanogos",
           "url": "https://paperweb.news/home/a/7b8ac50fc6957066",
           "lat": 40.2969,
           "lon": -111.6946,
           "time": "2026-10-15T05:56:41Z",
           "source": "Deseret News",
           "summary": "Little went wrong for Provo in its 47-15 victory over Timpanogos Wednesday night in Orem.",
           "precision": "city",
           "place": {
            "name": "Orem",
            "cc": "US"
           },
           "papers": [
            "news"
           ]
          },
          {
           "id": "5d925dfb32ca1fdd",
           "title": "UK economy grew 0.1% in August, beating expectations",
           "url": "https://www.cnbc.com/2026/10/15/uk-gdp-august-2026-economy.html",
           "lat": 52.54,
           "lon": -1.38,
           "time": "2026-10-15T06:12:36Z",
           "source": "CNBC Top Stories",
           "summary": "The U.K. economy grew by a better-than-expected 0.1% in the month to August.",
           "precision": "country",
           "place": {
            "name": "United Kingdom",
            "cc": "GB"
           },
           "papers": [
            "hodl",
            "news"
           ]
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/reviews.json": {
   "get": {
    "operationId": "getReviews",
    "tags": [
     "Sections"
    ],
    "summary": "REVIEWS: every work and its critics",
    "description": "Every work the reviews paper has reviewed, with PaperWeb's critics' score (the mean of the critics' own ratings, from two) and every critic's review at excerpt level: the publishers' own words stay on their pages, as everywhere on PaperWeb. Wikidata facts and the BBC Music aggregates are on each work's page.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The works.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ReviewsFile"
        },
        "example": {
         "generated": null,
         "works": [
          {
           "id": "195dd0dfb9c2",
           "name": "Other Mommy",
           "cat": "film",
           "type": null,
           "year": null,
           "series": false,
           "n": 2,
           "score": 65,
           "page": "/beta/plugins/reviews/t/195dd0dfb9c2.html",
           "reviews": [
            {
             "outlet": "We Live Entertainment",
             "critic": "A Critic",
             "published": "2026-10-10",
             "rating": "3.5/5",
             "score": 70,
             "verdict": null,
             "excerpt": "A finely made, exceptionally acted little horror…",
             "url": "https://weliveentertainment.com/welivefilm/mommy-review-whos-mommy-knows/",
             "paywalled": false
            },
            {
             "outlet": "TV Obsessive",
             "critic": "Another",
             "published": "2026-10-12",
             "rating": "6/10",
             "score": 60,
             "verdict": "See it",
             "excerpt": "…",
             "url": "https://example.com/mommy-review",
             "paywalled": false
            }
           ]
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/recipes.json": {
   "get": {
    "operationId": "getRecipes",
    "tags": [
     "Sections"
    ],
    "summary": "The Recipe Book",
    "description": "Every recipe the book shows: full recipes only (a Food feed's distilled text, held here, or an open-licence method), with its licence and credit where one applies. Each recipe's ingredients and method are its own file.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The recipes.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RecipesFile"
        },
        "example": {
         "generated": null,
         "recipes": [
          {
           "id": "cf80cf812fcd",
           "headline": "8 dinner recipes that get better with a can of beans",
           "author": "Lulu Grimes",
           "site": "BBC Good Food",
           "source_url": "https://www.bbcgoodfood.com/howto/guide/bang-in-some-beans",
           "summary": "Most of us fa…",
           "origin": "food:bbcgoodfood",
           "licence": null,
           "credit": null,
           "page": "/beta/plugins/recipebook/a/cf80cf812fcd.html"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/recipes/{recipe}.json": {
   "get": {
    "operationId": "getRecipe",
    "tags": [
     "Sections"
    ],
    "summary": "A recipe, in full",
    "description": "One recipe: its ingredients, servings and times as its own text tells them, and its method. The {id} is in the catalog.",
    "parameters": [
     {
      "name": "recipe",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "The recipe id (the {id} of the catalog)."
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The recipe.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RecipeDetail"
        },
        "example": {
         "id": "nhlbi-20-minute-chicken-creole",
         "headline": "20 Minute Chicken Creole",
         "author": null,
         "site": "NHLBI",
         "source_url": "https://www.nhlbi.nih.gov/health/heart-healthy-living/healthy-foods/healthy-eating-recipes/20-minute-chicken-creole",
         "summary": "A quick Creole dish.",
         "origin": "nhlbi",
         "licence": "public domain",
         "credit": "NHLBI",
         "facts": {
          "servings": 4
         },
         "method": "1. Warm the oil…"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/comics.json": {
   "get": {
    "operationId": "getComics",
    "tags": [
     "Sections"
    ],
    "summary": "The Comic Book",
    "description": "Every open-licence and public-domain series the book holds (webcomics, historical strips), with its strip count and its newest strip. Each strip's picture and its source's licence evidence are on the series' page.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The series.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ComicsFile"
        },
        "example": {
         "generated": null,
         "series": [
          {
           "series": "xkcd",
           "strips": 3311,
           "latest": "3310",
           "latest_date": "2026-10-16",
           "page": "/beta/plugins/comicbook/s/xkcd.html"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/funnypages.json": {
   "get": {
    "operationId": "getFunnypages",
    "tags": [
     "Sections"
    ],
    "summary": "The Funny Pages",
    "description": "Each paper's edition of the funny pages: its day, the strips it chose (each paper leans to its own subjects) and its puzzles. The editions are the pages' own data files.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The editions.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/FunnypagesFile"
        },
        "example": {
         "generated": null,
         "editions": {
          "news": {
           "day": "2026-10-16",
           "paper": "news",
           "rows": [
            [
             0
            ],
            [
             1,
             2
            ]
           ]
          }
         }
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/play.json": {
   "get": {
    "operationId": "getPlay",
    "tags": [
     "Sections"
    ],
    "summary": "PLAY: the daily puzzles",
    "description": "The day index of the daily sudoku, word search, scramble, five-letter word game, acrostic, trivia, news quiz and crossword (answers included: these are the pages' own data files).",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The days.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PlayIndex"
        },
        "example": {
         "generated": null,
         "today": "2026-10-14",
         "days": [
          "2026-10-14"
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/play/{day}.json": {
   "get": {
    "operationId": "getPlayDay",
    "tags": [
     "Sections"
    ],
    "summary": "PLAY: one day",
    "description": "One day's puzzles and answers, exactly as the pages read them.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Day"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The puzzles.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PlayDay"
        },
        "example": {
         "day": "2026-10-14",
         "v": 1,
         "sudoku": {
          "easy": "…"
         },
         "trivia": []
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/backlog.json": {
   "get": {
    "operationId": "getBacklog",
    "tags": [
     "Sections"
    ],
    "summary": "The Backlog: the days",
    "description": "The day-by-day catalogue of every story the six papers have offered, kept 366 days: each day with its story and distilled counts, per paper. A day's file lists every story with its outlets, its distilled copy when there is one, and its thumbnail. The backlog page reads the same data.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The days.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BacklogIndex"
        },
        "example": {
         "generated": null,
         "days": [
          {
           "day": "2026-10-14",
           "url": "/api/v1/backlog/2026-10-14.json",
           "stories": 1520,
           "distilled": 412,
           "papers": {
            "home": [
             497,
             146
            ]
           },
           "page": "/backlog/day/2026-10-14"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/backlog/{day}.json": {
   "get": {
    "operationId": "getBacklogDay",
    "tags": [
     "Sections"
    ],
    "summary": "The Backlog: one day",
    "description": "Every story each paper offered that UTC day: its url, title, source, summary, its outlets (`also`) and, when one exists, our distilled copy of it. The stories' fields are the backlog page's own.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Day"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The stories.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/BacklogDay"
        },
        "example": {
         "day": "2026-10-14",
         "stories": []
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/record.json": {
   "get": {
    "operationId": "getRecord",
    "tags": [
     "Sections"
    ],
    "summary": "THE RECORD: the documents",
    "description": "The primary sources behind the news, kept in full (Federal Register, Supreme Court slip opinions, CRS and GAO reports, bills that moved) and the Research section's CC BY / CC0 articles: every document with its identifiers and its official copy. The full text is on each document's page; its official copy is canonical.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The documents.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/RecordFile"
        },
        "example": {
         "generated": null,
         "documents": [
          {
           "id": "fr-2026-20818",
           "section": "rules",
           "title": "Airworthiness Directives; Elixir Aircraft",
           "summary": "The FAA is adopting a new airworthiness directive…",
           "date": "2026-10-14",
           "url": "https://www.federalregister.gov/documents/2026/10/14/2026-20818/",
           "ids": {
            "fr": "2026-20818"
           },
           "agencies": [
            "Federal Aviation Administration"
           ],
           "page": "/beta/plugins/record/a/fr-2026-20818.html"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/library.json": {
   "get": {
    "operationId": "getLibrary",
    "tags": [
     "Sections"
    ],
    "summary": "The Library",
    "description": "The 10,000 classic books: Standard Ebooks editions and Project Gutenberg's most-downloaded public domain texts, each with its gzipped JSON parts (`parts_path`, part 0 the facts and contents; inflated in the browser), its word count and where it also lives. The PG licence and references are stripped from the texts we hold; copyright takedowns leave at once.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The books.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/LibraryFile"
        },
        "example": {
         "generated": null,
         "books": [
          {
           "key": "henry-seton-merriman_the-sowers",
           "source": "se",
           "title": "The Sowers",
           "author": "Henry Seton Merriman",
           "lang": "en",
           "subjects": [
            "Novels",
            "Russian Literature"
           ],
           "downloads": 560,
           "words": 105791,
           "chapters": 44,
           "parts": 4,
           "parts_path": "/beta/plugins/library/data/b/se-h/henry-seton-merriman_the-sowers-{n}.json.gz",
           "urls": [
            "https://standardebooks.org/ebooks/henry-seton-merriman/the-sowers"
           ]
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/api/v1/hush.json": {
   "get": {
    "operationId": "getHush",
    "tags": [
     "Sections"
    ],
    "summary": "HUSH: the distilled stories",
    "description": "The day's edition of HUSH (\"Headlines Unlocked, Stories Hosted\"): the distilled stories of the six papers, filed under the paper that ranks them highest (or under its tone, when only GOOD or BAD carries it). Each entry is the HUSH page's own record of the story.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "The stories.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HushFile"
        },
        "example": {
         "generated": "2026-10-16T18:22:12Z",
         "articles": [
          {
           "title": "Prolific Chinese espionage group exploits BeyondTrust zero-day",
           "source": "CyberScoop",
           "cat": "security",
           "paper": "tech",
           "rank": 1,
           "url": "/hush/tech/a/x.html"
          }
         ]
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/rss/all.xml": {
   "get": {
    "operationId": "getAllRss",
    "tags": [
     "Feeds"
    ],
    "summary": "All six papers, RSS 2.0",
    "description": "The newest 400 stories across the six papers in one feed. Distilled stories carry their full text (`content_html`, the newest 200) and link to our page; every other story links to its publisher, or to another outlet's distilled copy of the same story. The feed announces a WebSub hub (https://pubsubhubbub.appspot.com/), pinged when a story enters or leaves it.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "RSS 2.0 (served as text/xml).",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "text/xml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/rss/all.atom.xml": {
   "get": {
    "operationId": "getAllAtom",
    "tags": [
     "Feeds"
    ],
    "summary": "All six papers, Atom 1.0",
    "description": "The same as the RSS feed, in Atom.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "Atom 1.0.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/atom+xml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/rss/all.json": {
   "get": {
    "operationId": "getAllJsonFeed",
    "tags": [
     "Feeds"
    ],
    "summary": "All six papers, JSON Feed 1.1",
    "description": "The same as the RSS feed, in JSON Feed.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "JSON Feed 1.1.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/feed+json": {
        "schema": {
         "$ref": "#/components/schemas/JsonFeed"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/{paper}/feed.xml": {
   "get": {
    "operationId": "getPaperRss",
    "tags": [
     "Feeds"
    ],
    "summary": "A paper, RSS 2.0",
    "description": "The paper's stories. Distilled stories carry their full text (`content_html`, the newest 200) and link to our page; every other story links to its publisher, or to another outlet's distilled copy of the same story. The feed announces a WebSub hub (https://pubsubhubbub.appspot.com/), pinged when a story enters or leaves it. HOME also answers at /news/feed.xml.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Paper"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "RSS 2.0 (served as text/xml).",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "text/xml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/{paper}/atom.xml": {
   "get": {
    "operationId": "getPaperAtom",
    "tags": [
     "Feeds"
    ],
    "summary": "A paper, Atom 1.0",
    "description": "The same stories in Atom.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Paper"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "Atom 1.0.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/atom+xml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/{paper}/feed.json": {
   "get": {
    "operationId": "getPaperJsonFeed",
    "tags": [
     "Feeds"
    ],
    "summary": "A paper, JSON Feed 1.1",
    "description": "The same stories in JSON Feed.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Paper"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "JSON Feed 1.1.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "application/feed+json": {
        "schema": {
         "$ref": "#/components/schemas/JsonFeed"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/rss/paperweb.opml": {
   "get": {
    "operationId": "getPapersOpml",
    "tags": [
     "Feeds"
    ],
    "summary": "Our six feeds, OPML",
    "description": "Subscribe to all six papers at once.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "OPML 2.0.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "text/x-opml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/rss/sources.opml": {
   "get": {
    "operationId": "getSourcesOpml",
    "tags": [
     "Feeds"
    ],
    "summary": "Every source we read, OPML",
    "description": "Every feed the papers read, to follow them directly.",
    "parameters": [
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "OPML 2.0.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "text/x-opml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  },
  "/rss/{paper}-sources.opml": {
   "get": {
    "operationId": "getPaperSourcesOpml",
    "tags": [
     "Feeds"
    ],
    "summary": "A paper's sources, OPML",
    "description": "The feeds one paper reads.",
    "parameters": [
     {
      "$ref": "#/components/parameters/Paper"
     },
     {
      "$ref": "#/components/parameters/If-None-Match"
     },
     {
      "$ref": "#/components/parameters/If-Modified-Since"
     }
    ],
    "responses": {
     "200": {
      "description": "OPML 2.0.",
      "headers": {
       "ETag": {
        "$ref": "#/components/headers/ETag"
       },
       "Last-Modified": {
        "$ref": "#/components/headers/Last-Modified"
       },
       "Cache-Control": {
        "$ref": "#/components/headers/Cache-Control"
       },
       "Access-Control-Allow-Origin": {
        "$ref": "#/components/headers/Access-Control-Allow-Origin"
       }
      },
      "content": {
       "text/x-opml": {
        "schema": {
         "type": "string"
        }
       }
      }
     },
     "304": {
      "$ref": "#/components/responses/NotModified"
     },
     "404": {
      "$ref": "#/components/responses/NotFound"
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "PaperId": {
    "type": "string",
    "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
    "enum": [
     "home",
     "good",
     "bad",
     "tech",
     "strm",
     "hodl"
    ]
   },
   "Index": {
    "type": "object",
    "description": "The API's own index.",
    "properties": {
     "name": {
      "type": "string",
      "description": "PaperWeb read-only API"
     },
     "version": {
      "type": "integer",
      "description": "API version (the /v1/ in the paths)."
     },
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "docs": {
      "type": "string",
      "description": "The API page.",
      "format": "uri"
     },
     "reference": {
      "type": "string",
      "description": "This reference (Scalar).",
      "format": "uri"
     },
     "openapi": {
      "type": "string",
      "description": "This OpenAPI description.",
      "format": "uri"
     },
     "feeds_hub": {
      "type": "string",
      "description": "The feeds page: every paper as RSS, Atom and JSON Feed, and OPML.",
      "format": "uri"
     },
     "endpoints": {
      "type": "object",
      "description": "Every endpoint, as absolute urls.",
      "properties": {
       "papers": {
        "type": "string",
        "description": "/api/v1/papers.json",
        "format": "uri"
       },
       "sources": {
        "type": "string",
        "description": "/api/v1/sources.json",
        "format": "uri"
       },
       "paper_articles": {
        "type": "string",
        "description": "/api/v1/papers/{id}/articles.json (a template)"
       },
       "paper_markets": {
        "type": "string",
        "description": "/api/v1/papers/{id}/markets.json (a template)"
       },
       "paper_sources": {
        "type": "string",
        "description": "/api/v1/papers/{id}/sources.json (a template)"
       },
       "sources_detail": {
        "type": "string",
        "description": "/api/v1/sources-detail.json",
        "format": "uri"
       },
       "modes": {
        "type": "string",
        "description": "/api/v1/modes.json",
        "format": "uri"
       },
       "news_pins": {
        "type": "string",
        "description": "/api/v1/news-pins.json",
        "format": "uri"
       },
       "news_pins_days": {
        "type": "string",
        "description": "/api/v1/news-pins/index.json",
        "format": "uri"
       },
       "news_pins_day": {
        "type": "string",
        "description": "/api/v1/news-pins/{day}.json (a template)"
       },
       "reviews": {
        "type": "string",
        "description": "/api/v1/reviews.json",
        "format": "uri"
       },
       "recipes": {
        "type": "string",
        "description": "/api/v1/recipes.json",
        "format": "uri"
       },
       "recipe": {
        "type": "string",
        "description": "/api/v1/recipes/{recipe}.json (a template)"
       },
       "comics": {
        "type": "string",
        "description": "/api/v1/comics.json",
        "format": "uri"
       },
       "funnypages": {
        "type": "string",
        "description": "/api/v1/funnypages.json",
        "format": "uri"
       },
       "play": {
        "type": "string",
        "description": "/api/v1/play.json",
        "format": "uri"
       },
       "play_day": {
        "type": "string",
        "description": "/api/v1/play/{day}.json (a template)"
       },
       "backlog": {
        "type": "string",
        "description": "/api/v1/backlog.json",
        "format": "uri"
       },
       "backlog_day": {
        "type": "string",
        "description": "/api/v1/backlog/{day}.json (a template)"
       },
       "record": {
        "type": "string",
        "description": "/api/v1/record.json",
        "format": "uri"
       },
       "library": {
        "type": "string",
        "description": "/api/v1/library.json",
        "format": "uri"
       },
       "hush": {
        "type": "string",
        "description": "/api/v1/hush.json",
        "format": "uri"
       },
       "combined_feeds": {
        "type": "object",
        "description": "All six papers in one feed.",
        "properties": {
         "rss": {
          "type": "string",
          "description": "RSS 2.0",
          "format": "uri"
         },
         "atom": {
          "type": "string",
          "description": "Atom 1.0",
          "format": "uri"
         },
         "json": {
          "type": "string",
          "description": "JSON Feed 1.1",
          "format": "uri"
         }
        },
        "required": [
         "rss",
         "atom",
         "json"
        ],
        "additionalProperties": false
       }
      },
      "required": [
       "papers",
       "sources",
       "paper_articles",
       "paper_markets",
       "paper_sources",
       "sources_detail",
       "modes",
       "news_pins",
       "news_pins_days",
       "news_pins_day",
       "reviews",
       "recipes",
       "recipe",
       "comics",
       "funnypages",
       "play",
       "play_day",
       "backlog",
       "backlog_day",
       "record",
       "library",
       "hush",
       "combined_feeds"
      ],
      "additionalProperties": false
     },
     "papers": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
       "enum": [
        "home",
        "good",
        "bad",
        "tech",
        "strm",
        "hodl"
       ]
      },
      "description": "The papers' ids."
     },
     "notes": {
      "type": "string",
      "description": "Terms of use in one line."
     }
    },
    "required": [
     "name",
     "version",
     "generated",
     "docs",
     "reference",
     "openapi",
     "feeds_hub",
     "endpoints",
     "papers",
     "notes"
    ],
    "additionalProperties": false
   },
   "Paper": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
      "enum": [
       "home",
       "good",
       "bad",
       "tech",
       "strm",
       "hodl"
      ]
     },
     "title": {
      "type": "string",
      "description": "The paper's title."
     },
     "description": {
      "type": "string",
      "description": "Its tagline."
     },
     "url": {
      "type": "string",
      "description": "The paper.",
      "format": "uri"
     },
     "feeds": {
      "type": "object",
      "properties": {
       "rss": {
        "type": "string",
        "description": "RSS 2.0",
        "format": "uri"
       },
       "atom": {
        "type": "string",
        "description": "Atom 1.0",
        "format": "uri"
       },
       "json": {
        "type": "string",
        "description": "JSON Feed 1.1",
        "format": "uri"
       }
      },
      "required": [
       "rss",
       "atom",
       "json"
      ],
      "additionalProperties": false
     },
     "api": {
      "type": "object",
      "properties": {
       "articles": {
        "type": "string",
        "description": "Its stories.",
        "format": "uri"
       },
       "markets": {
        "type": "string",
        "description": "Its market bar.",
        "format": "uri"
       },
       "sources": {
        "type": "string",
        "description": "The feeds it reads.",
        "format": "uri"
       }
      },
      "required": [
       "articles",
       "markets",
       "sources"
      ],
      "additionalProperties": false
     },
     "sources": {
      "type": "integer",
      "description": "How many feeds it reads."
     },
     "articles": {
      "type": "integer",
      "description": "How many stories it has now."
     }
    },
    "required": [
     "id",
     "title",
     "description",
     "url",
     "feeds",
     "api",
     "sources",
     "articles"
    ],
    "additionalProperties": false
   },
   "PaperList": {
    "type": "object",
    "properties": {
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "papers": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Paper"
      },
      "description": "The six papers."
     }
    },
    "required": [
     "generated",
     "papers"
    ],
    "additionalProperties": false
   },
   "Article": {
    "type": "object",
    "description": "A story: a JSON Feed 1.1 item without its full text (the feeds carry that).",
    "properties": {
     "id": {
      "type": "string",
      "description": "The publisher's url: stable for the story, even when its link moves.",
      "format": "uri"
     },
     "url": {
      "type": "string",
      "description": "Where to read it: our distilled copy (/<paper>/a/<slug>) when there is one, else the publisher.",
      "format": "uri"
     },
     "external_url": {
      "type": "string",
      "description": "The publisher's url.",
      "format": "uri"
     },
     "title": {
      "type": "string",
      "description": "Headline."
     },
     "summary": {
      "type": "string",
      "description": "The publisher's summary or opening, as plain text."
     },
     "content_text": {
      "type": "string",
      "description": "The summary again, for a story with no full text here (JSON Feed's required content)."
     },
     "image": {
      "type": "string",
      "description": "Our stored copy of the story's picture (never hot-linked from the publisher).",
      "format": "uri"
     },
     "date_published": {
      "type": "string",
      "description": "Publication time, RFC 3339.",
      "format": "date-time"
     },
     "authors": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string",
         "description": "Byline, else the source's name."
        }
       },
       "required": [
        "name"
       ],
       "additionalProperties": false
      },
      "description": "Byline."
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "Section"
      },
      "description": "The section of the paper it is filed in (world, tech, crypto, ...)."
     },
     "_paperweb": {
      "type": "object",
      "description": "PaperWeb's own facts about the item (JSON Feed extension).",
      "properties": {
       "source": {
        "type": "string",
        "description": "The outlet's feed name, as credited."
       },
       "distilled": {
        "type": "boolean",
        "description": "True when PaperWeb rebuilt the full story from the publisher's own feed (`url` is that page)."
       },
       "via_distilled": {
        "type": "boolean",
        "description": "True when `url` is another outlet's distilled copy of the same story (this one is walled or a stub)."
       },
       "paywalled": {
        "enum": [
         true,
         false,
         "soft"
        ],
        "description": "`true` hard paywall, `\"soft\"` metered or registration wall, `false` open."
       }
      },
      "required": [
       "source",
       "distilled",
       "via_distilled",
       "paywalled"
      ],
      "additionalProperties": false
     }
    },
    "required": [
     "id",
     "url",
     "external_url",
     "title",
     "_paperweb"
    ],
    "additionalProperties": false
   },
   "PaperArticles": {
    "type": "object",
    "properties": {
     "paper": {
      "type": "string",
      "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
      "enum": [
       "home",
       "good",
       "bad",
       "tech",
       "strm",
       "hodl"
      ]
     },
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "count": {
      "type": "integer",
      "description": "Number of items."
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Article"
      },
      "description": "Newest first."
     }
    },
    "required": [
     "paper",
     "generated",
     "count",
     "items"
    ],
    "additionalProperties": false
   },
   "Quote": {
    "type": "object",
    "description": "One instrument on the paper's market bar.",
    "properties": {
     "v": {
      "type": "number",
      "description": "Last price or level."
     },
     "c": {
      "type": "number",
      "description": "Change since the instrument's own previous close, in percent."
     },
     "s": {
      "type": "string",
      "description": "Yahoo Finance symbol."
     },
     "x": {
      "type": "string",
      "description": "Exchange code as Yahoo gives it (NMS, NYQ, SNP, CCC, ...)."
     },
     "n": {
      "type": "string",
      "description": "Display name (stocks and labelled instruments)."
     },
     "t": {
      "type": "string",
      "description": "TradingView symbol id; the chart is https://www.tradingview.com/symbols/<t>/."
     },
     "h": {
      "type": "array",
      "items": {
       "type": "number"
      },
      "description": "The trading day so far, oldest first: the previous close, then up to 300 points (for a sparkline)."
     }
    },
    "required": [
     "v",
     "c",
     "h",
     "s",
     "x"
    ],
    "additionalProperties": false
   },
   "Mover": {
    "type": "object",
    "description": "A stock on the movers bar (`t` only once its TradingView id is proven).",
    "properties": {
     "v": {
      "type": "number",
      "description": "Last price or level."
     },
     "c": {
      "type": "number",
      "description": "Change since the instrument's own previous close, in percent."
     },
     "s": {
      "type": "string",
      "description": "Yahoo Finance symbol."
     },
     "x": {
      "type": "string",
      "description": "Exchange code as Yahoo gives it (NMS, NYQ, SNP, CCC, ...)."
     },
     "n": {
      "type": "string",
      "description": "Display name (stocks and labelled instruments)."
     },
     "t": {
      "type": "string",
      "description": "TradingView symbol id; the chart is https://www.tradingview.com/symbols/<t>/."
     }
    },
    "required": [
     "s",
     "n",
     "v",
     "c",
     "x"
    ],
    "additionalProperties": false
   },
   "Movers": {
    "type": "object",
    "description": "The movers bar (5-minute cache).",
    "properties": {
     "up": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Mover"
      },
      "description": "NYSE top gainers today."
     },
     "down": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Mover"
      },
      "description": "NYSE top losers today."
     },
     "dow": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Mover"
      },
      "description": "The Dow Jones Industrial Average's 30 members."
     },
     "at": {
      "type": "string",
      "description": "When the movers were fetched (UTC).",
      "format": "date-time"
     }
    },
    "required": [
     "at"
    ],
    "additionalProperties": false
   },
   "Markets": {
    "type": "object",
    "description": "The paper's market bar, keyed by its own name for each instrument (`sp500`, `btc`, `nvda`, ...; each paper chooses its own), plus `_movers`. Quotes come from Yahoo Finance (index quotes are about 15 minutes delayed).",
    "properties": {
     "_movers": {
      "$ref": "#/components/schemas/Movers"
     }
    },
    "additionalProperties": {
     "$ref": "#/components/schemas/Quote"
    },
    "propertyNames": {
     "pattern": "^(_movers|[a-z0-9_]+)$"
    }
   },
   "PaperMarkets": {
    "type": "object",
    "properties": {
     "paper": {
      "type": "string",
      "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
      "enum": [
       "home",
       "good",
       "bad",
       "tech",
       "strm",
       "hodl"
      ]
     },
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "markets": {
      "$ref": "#/components/schemas/Markets"
     }
    },
    "required": [
     "paper",
     "generated",
     "markets"
    ],
    "additionalProperties": false
   },
   "PaperSource": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "description": "Feed name."
     },
     "url": {
      "type": "string",
      "description": "The feed.",
      "format": "uri"
     },
     "category": {
      "type": "string",
      "description": "The section its stories start in."
     }
    },
    "required": [
     "name",
     "url",
     "category"
    ],
    "additionalProperties": false
   },
   "PaperSources": {
    "type": "object",
    "properties": {
     "paper": {
      "type": "string",
      "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
      "enum": [
       "home",
       "good",
       "bad",
       "tech",
       "strm",
       "hodl"
      ]
     },
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "count": {
      "type": "integer",
      "description": "Number of feeds."
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PaperSource"
      },
      "description": "In the order of the paper's config."
     }
    },
    "required": [
     "paper",
     "generated",
     "count",
     "sources"
    ],
    "additionalProperties": false
   },
   "Source": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "description": "Feed name."
     },
     "url": {
      "type": "string",
      "description": "The feed.",
      "format": "uri"
     },
     "site": {
      "type": "string",
      "description": "Its site.",
      "format": "uri"
     },
     "category": {
      "type": "string",
      "description": "The section its stories start in."
     }
    },
    "required": [
     "name",
     "url",
     "site",
     "category"
    ],
    "additionalProperties": false
   },
   "SourceList": {
    "type": "object",
    "properties": {
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "count": {
      "type": "integer",
      "description": "Number of feeds."
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Source"
      },
      "description": "Every feed the six papers read, once each, by name."
     }
    },
    "required": [
     "generated",
     "count",
     "sources"
    ],
    "additionalProperties": false
   },
   "SourceDetail": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "description": "Feed name."
     },
     "feed": {
      "type": "string",
      "description": "The feed.",
      "format": "uri"
     },
     "papers": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "paper": {
         "type": "string",
         "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
         "enum": [
          "home",
          "good",
          "bad",
          "tech",
          "strm",
          "hodl"
         ]
        },
        "section": {
         "type": "string",
         "description": "Section on that paper."
        },
        "stories": {
         "type": "integer",
         "description": "Its stories on that paper now."
        },
        "distilled": {
         "type": "integer",
         "description": "How many of them PaperWeb distilled."
        }
       },
       "required": [
        "paper",
        "section",
        "stories",
        "distilled"
       ],
       "additionalProperties": false
      },
      "description": "The papers that read it."
     },
     "site": {
      "type": "string",
      "description": "Its site.",
      "format": "uri"
     },
     "outlet": {
      "type": "string",
      "description": "The outlet, as its registrable domain (the key ranking and reputation use)."
     },
     "status": {
      "type": "string",
      "description": "Feed lifecycle stage.",
      "enum": [
       "active",
       "probation",
       "benched"
      ]
     },
     "since": {
      "type": "string",
      "description": "In this stage since (UTC day).",
      "format": "date"
     },
     "benched_times": {
      "type": "integer",
      "description": "How many times it has been benched."
     },
     "benched_reason": {
      "type": "string",
      "description": "Why it is benched (a benched feed only)."
     },
     "quality": {
      "type": "number",
      "description": "The 0-1 source value ranking uses (0.60 = unknown)."
     },
     "reputation_stage": {
      "type": "string",
      "description": "Earned-reputation stage of the outlet.",
      "enum": [
       "active",
       "probation",
       "benched"
      ]
     },
     "paywall": {
      "type": "string",
      "description": "The outlet's paywall class as measured: free, soft (metered/registration) or hard."
     },
     "polls_7d": {
      "type": "object",
      "description": "Feed checks in the last 7 days.",
      "properties": {
       "ok": {
        "type": "integer",
        "description": "Polls that brought the feed."
       },
       "unchanged": {
        "type": "integer",
        "description": "Polls answered 304."
       },
       "failed": {
        "type": "integer",
        "description": "Polls that failed."
       }
      },
      "required": [
       "ok",
       "unchanged",
       "failed"
      ],
      "additionalProperties": false
     },
     "last_ok": {
      "type": "string",
      "description": "Last successful poll (UTC).",
      "format": "date-time"
     }
    },
    "required": [
     "name",
     "feed",
     "papers",
     "site",
     "outlet",
     "status",
     "quality"
    ],
    "additionalProperties": false
   },
   "SourcesDetail": {
    "type": "object",
    "properties": {
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "count": {
      "type": "integer",
      "description": "Number of feeds."
     },
     "modes": {
      "type": "object",
      "description": "The ranking switches as the build that made the papers saw them.",
      "properties": {
       "reputation": {
        "type": "string",
        "description": "Earned source reputation: `shadow` (measured, not used to rank yet), `on` or `off`.",
        "enum": [
         "shadow",
         "on",
         "off"
        ]
       },
       "sections": {
        "type": "object",
        "description": "Each paper's learned-sections switch: `shadow` (learned, not shown), `on` or `labels`.",
        "additionalProperties": {
         "type": "string",
         "description": "cat_mode",
         "enum": [
          "shadow",
          "on",
          "labels"
         ]
        },
        "propertyNames": {
         "type": "string",
         "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
         "enum": [
          "home",
          "good",
          "bad",
          "tech",
          "strm",
          "hodl"
         ]
        }
       },
       "lean": {
        "type": "object",
        "description": "Each paper's lean mix (papers with the balance switched on).",
        "additionalProperties": {
         "$ref": "#/components/schemas/LeanSummary"
        },
        "propertyNames": {
         "type": "string",
         "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
         "enum": [
          "home",
          "good",
          "bad",
          "tech",
          "strm",
          "hodl"
         ]
        }
       }
      },
      "required": [
       "reputation",
       "sections",
       "lean"
      ],
      "additionalProperties": false
     },
     "statuses": {
      "type": "object",
      "properties": {
       "active": {
        "type": "integer",
        "description": "Active feeds."
       },
       "probation": {
        "type": "integer",
        "description": "Probation feeds."
       },
       "benched": {
        "type": "integer",
        "description": "Benched feeds."
       }
      },
      "required": [
       "active",
       "probation",
       "benched"
      ],
      "additionalProperties": false
     },
     "outlets": {
      "type": "integer",
      "description": "Distinct outlets."
     },
     "notes": {
      "type": "string",
      "description": "What the fields mean, in one paragraph."
     },
     "sources": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/SourceDetail"
      },
      "description": "Every tracked feed, by name."
     }
    },
    "required": [
     "generated",
     "count",
     "modes",
     "statuses",
     "outlets",
     "notes",
     "sources"
    ],
    "additionalProperties": false
   },
   "LeanSummary": {
    "type": "object",
    "description": "A paper's left / center / right mix at the top after the lean balance (AllSides Media Bias Ratings, CC BY-NC 4.0).",
    "properties": {
     "on": {
      "type": "boolean",
      "description": "Whether the lean balance is switched on for this paper."
     },
     "top": {
      "type": "integer",
      "description": "How many of the paper's top stories were measured."
     },
     "rated": {
      "type": "integer",
      "description": "How many of them come from an outlet AllSides rates."
     },
     "mean": {
      "type": "number",
      "description": "Mean rating of the rated stories, -2 (Left) .. +2 (Right); 0 is Center."
     },
     "left": {
      "type": "number",
      "description": "Share of the rated stories that lean left (0-1)."
     },
     "right": {
      "type": "number",
      "description": "Share of the rated stories that lean right (0-1)."
     },
     "stops": {
      "type": "object",
      "description": "The rated stories by AllSides rating.",
      "properties": {
       "left": {
        "type": "integer",
        "description": "Left stories."
       },
       "lean_left": {
        "type": "integer",
        "description": "Lean Left stories."
       },
       "center": {
        "type": "integer",
        "description": "Center stories."
       },
       "lean_right": {
        "type": "integer",
        "description": "Lean Right stories."
       },
       "right": {
        "type": "integer",
        "description": "Right stories."
       }
      },
      "required": [
       "left",
       "lean_left",
       "center",
       "lean_right",
       "right"
      ],
      "additionalProperties": false
     },
     "ok": {
      "type": "boolean",
      "description": "Whether the targets on how-it-works (/how/#balance) hold."
     },
     "thin": {
      "type": [
       "string",
       "null"
      ],
      "enum": [
       "left",
       "right",
       null
      ],
      "description": "A side the whole pool has too few stories of to balance, else null."
     }
    },
    "required": [
     "on",
     "top",
     "rated",
     "mean",
     "left",
     "right",
     "stops",
     "ok",
     "thin"
    ],
    "additionalProperties": false
   },
   "Modes": {
    "type": "object",
    "description": "The ranking switches how-it-works words itself from.",
    "properties": {
     "generated": {
      "type": "string",
      "description": "When this file was written (UTC).",
      "format": "date-time"
     },
     "reputation": {
      "type": "string",
      "description": "Earned source reputation: `shadow` (measured, not used to rank yet), `on` or `off`.",
      "enum": [
       "shadow",
       "on",
       "off"
      ]
     },
     "sections": {
      "type": "object",
      "description": "Each paper's learned-sections switch: `shadow` (learned, not shown), `on` or `labels`.",
      "additionalProperties": {
       "type": "string",
       "description": "cat_mode",
       "enum": [
        "shadow",
        "on",
        "labels"
       ]
      },
      "propertyNames": {
       "type": "string",
       "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
       "enum": [
        "home",
        "good",
        "bad",
        "tech",
        "strm",
        "hodl"
       ]
      }
     },
     "lean": {
      "type": "object",
      "description": "Each paper's lean mix (papers with the balance switched on).",
      "additionalProperties": {
       "$ref": "#/components/schemas/LeanSummary"
      },
      "propertyNames": {
       "type": "string",
       "description": "A paper's public id: home, good, bad, tech, strm, hodl (HOME is the news paper, served at /home/).",
       "enum": [
        "home",
        "good",
        "bad",
        "tech",
        "strm",
        "hodl"
       ]
      }
     }
    },
    "required": [
     "generated",
     "reputation",
     "sections",
     "lean"
    ],
    "additionalProperties": false
   },
   "NewsPin": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "First 16 hex digits of the sha1 of the publisher url.",
      "pattern": "^[0-9a-f]{16}$"
     },
     "title": {
      "type": "string",
      "description": "Headline."
     },
     "url": {
      "type": "string",
      "description": "Our distilled page at its public path, else the publisher.",
      "format": "uri"
     },
     "lat": {
      "type": "number",
      "description": "Latitude, rounded to the precision (5 digits for a point, 4 for a city, 2 for a region or country). A country pin stands at its own point inside the country (a fixed offset drawn from its id, within the spread of the country's towns), so a country's stories do not stack: the point says nothing finer."
     },
     "lon": {
      "type": "number",
      "description": "Longitude, rounded the same way."
     },
     "time": {
      "type": "string",
      "description": "Published, else first seen (UTC).",
      "format": "date-time"
     },
     "source": {
      "type": "string",
      "description": "The outlet's feed name."
     },
     "summary": {
      "type": "string",
      "description": "The first 240 characters of its summary."
     },
     "precision": {
      "type": "string",
      "description": "What the location is: the publisher's own point, a city, a region (admin1) or a country.",
      "enum": [
       "point",
       "city",
       "admin1",
       "country"
      ]
     },
     "place": {
      "type": "object",
      "properties": {
       "name": {
        "type": "string",
        "description": "Place name (GeoNames)."
       },
       "cc": {
        "type": "string",
        "description": "ISO 3166-1 alpha-2 country code."
       }
      },
      "required": [
       "name",
       "cc"
      ],
      "additionalProperties": false
     },
     "papers": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "Section id",
       "enum": [
        "news",
        "good",
        "bad",
        "tech",
        "strm",
        "hodl"
       ]
      },
      "description": "The papers carrying it, by their section ids (`news` is HOME, served at /home/)."
     }
    },
    "required": [
     "id",
     "title",
     "url",
     "lat",
     "lon",
     "time",
     "source",
     "summary",
     "precision",
     "place",
     "papers"
    ],
    "additionalProperties": false
   },
   "NewsPins": {
    "type": "object",
    "description": "Where the papers' stories of the last 72 hours are: one pin per story with a primary location. Places: GeoNames (CC BY 4.0).",
    "properties": {
     "generated": {
      "type": "string",
      "description": "When the pins last changed (UTC).",
      "format": "date-time"
     },
     "window_hours": {
      "type": "integer",
      "description": "How far back this file reaches: the last 72 hours only.",
      "const": 72
     },
     "days_index": {
      "type": "string",
      "description": "The day files' index (a path on this host): the last 30 days.",
      "const": "/api/v1/news-pins/index.json"
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/NewsPin"
      },
      "description": "Newest first."
     }
    },
    "required": [
     "generated",
     "window_hours",
     "days_index",
     "items"
    ],
    "additionalProperties": false
   },
   "NewsPinsDay": {
    "type": "object",
    "description": "One UTC day of pins. Places: GeoNames (CC BY 4.0).",
    "properties": {
     "generated": {
      "type": "string",
      "description": "When this day's pins last changed (UTC).",
      "format": "date-time"
     },
     "day": {
      "type": "string",
      "description": "The UTC day (YYYY-MM-DD).",
      "format": "date"
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/NewsPin"
      },
      "description": "Every story whose time falls on this UTC day, newest first, at most 10,000."
     }
    },
    "required": [
     "generated",
     "day",
     "items"
    ],
    "additionalProperties": false
   },
   "NewsPinsIndex": {
    "type": "object",
    "description": "The day files: fetch a day again only when its `sha` changed.",
    "properties": {
     "generated": {
      "type": "string",
      "description": "When the index last changed (UTC).",
      "format": "date-time"
     },
     "days": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "day": {
         "type": "string",
         "description": "The UTC day (YYYY-MM-DD).",
         "format": "date"
        },
        "url": {
         "type": "string",
         "description": "Its file (a path on this host).",
         "pattern": "^/api/v1/news-pins/[0-9-]{10}[.]json$"
        },
        "items": {
         "type": "integer",
         "description": "Pins in it."
        },
        "bytes": {
         "type": "integer",
         "description": "Its size, uncompressed."
        },
        "sha": {
         "type": "string",
         "description": "A hash of its pins: it changes exactly when they do.",
         "pattern": "^[0-9a-f]{12}$"
        }
       },
       "required": [
        "day",
        "url",
        "items",
        "bytes",
        "sha"
       ],
       "additionalProperties": false
      },
      "description": "The last 30 UTC days, newest first."
     }
    },
    "required": [
     "generated",
     "days"
    ],
    "additionalProperties": false
   },
   "FeedItem": {
    "type": "object",
    "description": "A JSON Feed 1.1 item.",
    "properties": {
     "id": {
      "type": "string",
      "description": "The publisher's url: stable for the story, even when its link moves.",
      "format": "uri"
     },
     "url": {
      "type": "string",
      "description": "Where to read it: our distilled copy (/<paper>/a/<slug>) when there is one, else the publisher.",
      "format": "uri"
     },
     "external_url": {
      "type": "string",
      "description": "The publisher's url.",
      "format": "uri"
     },
     "title": {
      "type": "string",
      "description": "Headline."
     },
     "summary": {
      "type": "string",
      "description": "The publisher's summary or opening, as plain text."
     },
     "content_text": {
      "type": "string",
      "description": "The summary again, for a story with no full text here (JSON Feed's required content)."
     },
     "image": {
      "type": "string",
      "description": "Our stored copy of the story's picture (never hot-linked from the publisher).",
      "format": "uri"
     },
     "date_published": {
      "type": "string",
      "description": "Publication time, RFC 3339.",
      "format": "date-time"
     },
     "authors": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string",
         "description": "Byline, else the source's name."
        }
       },
       "required": [
        "name"
       ],
       "additionalProperties": false
      },
      "description": "Byline."
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "Section"
      },
      "description": "The section of the paper it is filed in (world, tech, crypto, ...)."
     },
     "_paperweb": {
      "type": "object",
      "description": "PaperWeb's own facts about the item (JSON Feed extension).",
      "properties": {
       "source": {
        "type": "string",
        "description": "The outlet's feed name, as credited."
       },
       "distilled": {
        "type": "boolean",
        "description": "True when PaperWeb rebuilt the full story from the publisher's own feed (`url` is that page)."
       },
       "via_distilled": {
        "type": "boolean",
        "description": "True when `url` is another outlet's distilled copy of the same story (this one is walled or a stub)."
       },
       "paywalled": {
        "enum": [
         true,
         false,
         "soft"
        ],
        "description": "`true` hard paywall, `\"soft\"` metered or registration wall, `false` open."
       }
      },
      "required": [
       "source",
       "distilled",
       "via_distilled",
       "paywalled"
      ],
      "additionalProperties": false
     },
     "content_html": {
      "type": "string",
      "description": "Full text of a distilled story (the newest 200 per feed), with absolute image urls and a credit line."
     }
    },
    "required": [
     "id",
     "url",
     "external_url",
     "title",
     "_paperweb"
    ],
    "additionalProperties": false
   },
   "JsonFeed": {
    "type": "object",
    "description": "A JSON Feed 1.1 document.",
    "properties": {
     "version": {
      "type": "string",
      "description": "https://jsonfeed.org/version/1.1",
      "const": "https://jsonfeed.org/version/1.1"
     },
     "title": {
      "type": "string",
      "description": "Feed title."
     },
     "home_page_url": {
      "type": "string",
      "description": "The paper.",
      "format": "uri"
     },
     "feed_url": {
      "type": "string",
      "description": "This feed.",
      "format": "uri"
     },
     "description": {
      "type": "string",
      "description": "Feed description."
     },
     "language": {
      "type": "string",
      "description": "en-US"
     },
     "hubs": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "type": {
         "type": "string",
         "description": "WebSub"
        },
        "url": {
         "type": "string",
         "description": "The hub.",
         "format": "uri"
        }
       },
       "required": [
        "type",
        "url"
       ],
       "additionalProperties": false
      },
      "description": "Push: subscribe at the hub."
     },
     "items": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/FeedItem"
      },
      "description": "Newest first."
     }
    },
    "required": [
     "version",
     "title",
     "home_page_url",
     "feed_url",
     "description",
     "language",
     "hubs",
     "items"
    ],
    "additionalProperties": false
   },
   "ReviewEntry": {
    "type": "object",
    "properties": {
     "outlet": {
      "type": "string",
      "description": "The outlet the review ran in."
     },
     "critic": {
      "type": [
       "string",
       "null"
      ],
      "description": "The critic, as the feed named them (not every review carries a byline)."
     },
     "published": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the review ran (ISO date or null)."
     },
     "rating": {
      "type": [
       "string",
       "null"
      ],
      "description": "The rating as the critic gave it (e.g. \"3.5/5\")."
     },
     "score": {
      "type": [
       "number",
       "null"
      ],
      "description": "The rating normalized to 0-100."
     },
     "verdict": {
      "type": [
       "string",
       "null"
      ],
      "description": "The verdict line, when the feed carried one."
     },
     "excerpt": {
      "type": "string",
      "description": "The review's opening, excerpt-level (the critics' own words stay on their pages)."
     },
     "url": {
      "type": "string",
      "description": "The review, at the outlet.",
      "format": "uri"
     },
     "paywalled": {
      "type": "boolean",
      "description": "Whether the review is behind a paywall."
     }
    },
    "required": [
     "outlet",
     "critic",
     "published",
     "rating",
     "score",
     "verdict",
     "excerpt",
     "url",
     "paywalled"
    ],
    "additionalProperties": false
   },
   "ReviewWork": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "The work's id (its title page's name)."
     },
     "name": {
      "type": "string",
      "description": "The work's title."
     },
     "cat": {
      "type": "string",
      "description": "The reviews category (film, tv, game, book, music, stage, tech, art, classical, comics)."
     },
     "type": {
      "type": [
       "string",
       "null"
      ],
      "description": "The work's kind within it, when known."
     },
     "year": {
      "type": [
       "integer",
       "null"
      ],
      "description": "The work's year, when known."
     },
     "series": {
      "type": "boolean",
      "description": "Whether it is an episode of a series."
     },
     "n": {
      "type": "integer",
      "description": "How many reviews it has."
     },
     "score": {
      "type": [
       "number",
       "null"
      ],
      "description": "PaperWeb's critics' score: the mean of the critics' own ratings, from two."
     },
     "page": {
      "type": "string",
      "description": "The work's PaperWeb title page."
     },
     "reviews": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReviewEntry"
      },
      "description": "Every review, oldest first."
     }
    },
    "required": [
     "id",
     "name",
     "cat",
     "type",
     "year",
     "series",
     "n",
     "score",
     "page",
     "reviews"
    ],
    "additionalProperties": false
   },
   "ReviewsFile": {
    "type": "object",
    "description": "REVIEWS: every work the paper has reviewed and the critics' reviews of it (excerpt level). Wikidata facts and the BBC Music aggregates stay on each title page.",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the store last changed."
     },
     "works": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/ReviewWork"
      },
      "description": "Every reviewed work."
     }
    },
    "required": [
     "generated",
     "works"
    ],
    "additionalProperties": false
   },
   "RecipeEntry": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "The recipe's id."
     },
     "headline": {
      "type": "string",
      "description": "The recipe's name."
     },
     "author": {
      "type": [
       "string",
       "null"
      ],
      "description": "Its author."
     },
     "site": {
      "type": [
       "string",
       "null"
      ],
      "description": "The site it came from."
     },
     "source_url": {
      "type": "string",
      "description": "The source's own page.",
      "format": "uri"
     },
     "summary": {
      "type": "string",
      "description": "Its summary, trimmed to 400 characters (its own file carries it in full)."
     },
     "origin": {
      "type": "string",
      "description": "Where the Recipe Book holds it from (a Food feed, or an open-licence source)."
     },
     "licence": {
      "type": [
       "string",
       "null"
      ],
      "description": "The licence of an open-licence method."
     },
     "credit": {
      "type": [
       "string",
       "null"
      ],
      "description": "The credit a licence asks be kept."
     },
     "page": {
      "type": "string",
      "description": "The recipe's PaperWeb page (checklist, servings scaler, print)."
     }
    },
    "required": [
     "id",
     "headline",
     "author",
     "site",
     "source_url",
     "summary",
     "origin",
     "licence",
     "credit",
     "page"
    ],
    "additionalProperties": false
   },
   "RecipesFile": {
    "type": "object",
    "description": "The Recipe Book: full recipes only (a Food feed's distilled text, held here, or an open-licence method), each with its page and its own recipe file.",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the book last changed."
     },
     "recipes": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/RecipeEntry"
      },
      "description": "Every recipe the book shows."
     }
    },
    "required": [
     "generated",
     "recipes"
    ],
    "additionalProperties": false
   },
   "RecipeDetail": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "description": "The recipe's id."
     },
     "headline": {
      "type": "string",
      "description": "The recipe's name."
     },
     "author": {
      "type": [
       "string",
       "null"
      ],
      "description": "Its author."
     },
     "site": {
      "type": [
       "string",
       "null"
      ],
      "description": "The site it came from."
     },
     "source_url": {
      "type": "string",
      "description": "The source's own page.",
      "format": "uri"
     },
     "summary": {
      "type": "string",
      "description": "Its summary, in full."
     },
     "origin": {
      "type": "string",
      "description": "Where the Recipe Book holds it from."
     },
     "licence": {
      "type": [
       "string",
       "null"
      ],
      "description": "The licence of an open-licence method."
     },
     "credit": {
      "type": [
       "string",
       "null"
      ],
      "description": "The credit a licence asks be kept."
     },
     "facts": {
      "type": "object",
      "description": "What the recipe's own text tells: ingredients, servings, times, yields (the fields vary with the recipe).",
      "additionalProperties": true
     },
     "method": {
      "type": "string",
      "description": "The method, as the source wrote it (its licence permits sharing it)."
     }
    },
    "required": [
     "id",
     "headline",
     "author",
     "site",
     "source_url",
     "summary",
     "origin",
     "licence",
     "credit",
     "facts",
     "method"
    ],
    "additionalProperties": false
   },
   "ComicsFile": {
    "type": "object",
    "description": "The Comic Book: open-licence and public-domain webcomics and historical strips. Each strip's picture and its source's licence evidence are on its page.",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the book last changed."
     },
     "series": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "series": {
         "type": "string",
         "description": "The series' id."
        },
        "strips": {
         "type": "integer",
         "description": "Strips held."
        },
        "latest": {
         "type": [
          "string",
          "null"
         ],
         "description": "The newest strip's id."
        },
        "latest_date": {
         "type": [
          "string",
          "null"
         ],
         "description": "The newest strip's date, when it carries one."
        },
        "page": {
         "type": "string",
         "description": "The series' PaperWeb page, one strip per page."
        }
       },
       "required": [
        "series",
        "strips",
        "latest",
        "latest_date",
        "page"
       ],
       "additionalProperties": false
      },
      "description": "Every series the book holds."
     }
    },
    "required": [
     "generated",
     "series"
    ],
    "additionalProperties": false
   },
   "FunnypagesFile": {
    "type": "object",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When this file was written (UTC)."
     },
     "editions": {
      "type": "object",
      "description": "Each paper's edition of the Funny Pages (its day, its lean, its rows of strips and puzzles), keyed by section (news, good, bad, tech, strm, hodl): the editions are the pages' own data files.",
      "additionalProperties": true,
      "propertyNames": {
       "type": "string",
       "enum": [
        "news",
        "good",
        "bad",
        "tech",
        "strm",
        "hodl"
       ]
      }
     }
    },
    "required": [
     "generated",
     "editions"
    ],
    "additionalProperties": false
   },
   "PlayIndex": {
    "type": "object",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When this file was written (UTC)."
     },
     "today": {
      "type": "string",
      "description": "The current edition's day (YYYY-MM-DD).",
      "format": "date"
     },
     "days": {
      "type": "array",
      "items": {
       "type": "string",
       "description": "A day with an edition (YYYY-MM-DD).",
       "format": "date"
      },
      "description": "Oldest first."
     }
    },
    "required": [
     "generated",
     "today",
     "days"
    ],
    "additionalProperties": false
   },
   "PlayDay": {
    "type": "object",
    "description": "One day of PLAY: the sudoku, word search, scramble, five-letter word game, acrostic, trivia, the news quiz and the crossword of the day - the same file the page reads. Fields vary by puzzle and version.",
    "properties": {
     "day": {
      "type": "string",
      "description": "The day (YYYY-MM-DD).",
      "format": "date"
     },
     "v": {
      "type": "integer",
      "description": "The edition's format version."
     }
    },
    "required": [
     "day",
     "v"
    ],
    "additionalProperties": true
   },
   "BacklogIndex": {
    "type": "object",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When this file was written (UTC)."
     },
     "days": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "day": {
         "type": "string",
         "description": "The UTC day (YYYY-MM-DD).",
         "format": "date"
        },
        "url": {
         "type": "string",
         "description": "Its file (a path on this host).",
         "pattern": "^/api/v1/backlog/[0-9-]{10}[.]json$"
        },
        "stories": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Stories offered that day."
        },
        "distilled": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Distilled stories that day."
        },
        "papers": {
         "type": "object",
         "description": "Per paper: [stories, distilled].",
         "additionalProperties": true
        },
        "page": {
         "type": "string",
         "description": "The day's page on the site."
        }
       },
       "required": [
        "day",
        "url",
        "stories",
        "distilled",
        "papers",
        "page"
       ],
       "additionalProperties": false
      },
      "description": "The days the backlog holds, oldest first."
     }
    },
    "required": [
     "generated",
     "days"
    ],
    "additionalProperties": false
   },
   "BacklogDay": {
    "type": "object",
    "description": "One day of the Backlog: every story each paper offered that day with its outlets, its summary and, when one exists, our distilled copy of it. The stories' fields are the backlog page's own (u url, t title, s source, x summary, d date, p papers, ...), newest first.",
    "properties": {
     "day": {
      "type": "string",
      "description": "The UTC day (YYYY-MM-DD).",
      "format": "date"
     }
    },
    "required": [
     "day"
    ],
    "additionalProperties": true
   },
   "RecordFile": {
    "type": "object",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the record last changed."
     },
     "documents": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string",
         "description": "The document's id (FR document number, citation, docket, bill number, ...)."
        },
        "section": {
         "type": "string",
         "description": "Its section of THE RECORD (rules, congress, courts, science, ...)."
        },
        "title": {
         "type": "string",
         "description": "The document's title."
        },
        "summary": {
         "type": "string",
         "description": "Its summary (trimmed here; its page holds it whole)."
        },
        "date": {
         "type": [
          "string",
          "null"
         ],
         "description": "The document's own date."
        },
        "url": {
         "type": [
          "string",
          "null"
         ],
         "description": "The official copy, when there is one."
        },
        "ids": {
         "type": "object",
         "description": "The document's identifiers (FR number, citation, CFR parts, RIN, ...).",
         "additionalProperties": true
        },
        "agencies": {
         "type": [
          "array",
          "null"
         ],
         "description": "The agencies that issued it.",
         "items": {
          "type": "string"
         }
        },
        "page": {
         "type": "string",
         "description": "Its PaperWeb page: the document kept in full, its official copy canonical."
        }
       },
       "required": [
        "id",
        "section",
        "title",
        "summary",
        "date",
        "url",
        "ids",
        "agencies",
        "page"
       ],
       "additionalProperties": false
      },
      "description": "Every document THE RECORD holds, newest first."
     }
    },
    "required": [
     "generated",
     "documents"
    ],
    "additionalProperties": false
   },
   "LibraryFile": {
    "type": "object",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the library last changed."
     },
     "books": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "key": {
         "type": "string",
         "description": "The book's key."
        },
        "source": {
         "type": "string",
         "description": "Where it is held from: `pg` (Project Gutenberg) or `se` (Standard Ebooks)."
        },
        "title": {
         "type": "string",
         "description": "The title."
        },
        "author": {
         "type": "string",
         "description": "The author."
        },
        "lang": {
         "type": [
          "string",
          "null"
         ],
         "description": "Its language."
        },
        "subjects": {
         "type": "array",
         "items": {
          "type": "string",
          "description": ""
         },
         "description": "Its subjects."
        },
        "downloads": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Downloads at its source, when known."
        },
        "words": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Its word count."
        },
        "chapters": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Its chapters."
        },
        "parts": {
         "type": [
          "integer",
          "null"
         ],
         "description": "Its gzipped JSON parts (part 0 holds the facts and contents)."
        },
        "parts_path": {
         "type": "string",
         "description": "Its parts, with `{n}` the part number: part 0 is the facts and table of contents, the rest the chapters (inflated in the browser)."
        },
        "urls": {
         "type": "array",
         "items": {
          "type": "string",
          "description": "",
          "format": "uri"
         },
         "description": "Where the book also lives (its source's own pages)."
        }
       },
       "required": [
        "key",
        "source",
        "title",
        "author",
        "lang",
        "subjects",
        "downloads",
        "words",
        "chapters",
        "parts",
        "parts_path",
        "urls"
       ],
       "additionalProperties": false
      },
      "description": "Every book the library holds, most downloaded first."
     }
    },
    "required": [
     "generated",
     "books"
    ],
    "additionalProperties": false
   },
   "HushFile": {
    "type": "object",
    "properties": {
     "generated": {
      "type": [
       "string",
       "null"
      ],
      "description": "When the edition was written."
     },
     "articles": {
      "type": "array",
      "items": {
       "type": "object",
       "additionalProperties": true
      },
      "description": "The edition's distilled stories: the story's title, source, category, date and urls, with its paper, its rank and its cluster mates - the page's own data file."
     }
    },
    "required": [
     "generated",
     "articles"
    ],
    "additionalProperties": false
   },
   "OpenAPI": {
    "type": "object",
    "description": "An OpenAPI 3.1 document (this one).",
    "required": [
     "openapi",
     "info",
     "paths"
    ]
   }
  },
  "parameters": {
   "Paper": {
    "name": "paper",
    "in": "path",
    "required": true,
    "description": "The paper's id.",
    "schema": {
     "$ref": "#/components/schemas/PaperId"
    },
    "example": "home"
   },
   "Day": {
    "name": "day",
    "in": "path",
    "required": true,
    "description": "A UTC day (YYYY-MM-DD) of the last 30, as the day index lists them.",
    "schema": {
     "type": "string",
     "format": "date"
    },
    "example": "2026-10-15"
   },
   "If-None-Match": {
    "name": "If-None-Match",
    "in": "header",
    "required": false,
    "description": "The `ETag` you got last: `304` while the file is unchanged.",
    "schema": {
     "type": "string"
    }
   },
   "If-Modified-Since": {
    "name": "If-Modified-Since",
    "in": "header",
    "required": false,
    "description": "The `Last-Modified` you got last: `304` while unchanged.",
    "schema": {
     "type": "string"
    }
   }
  },
  "headers": {
   "ETag": {
    "description": "Changes whenever the file does.",
    "schema": {
     "type": "string"
    },
    "example": "\"dm57djozt5e635a\""
   },
   "Last-Modified": {
    "description": "When the file last changed.",
    "schema": {
     "type": "string"
    },
    "example": "Thu, 15 Oct 2026 06:37:24 GMT"
   },
   "Cache-Control": {
    "description": "Always revalidate.",
    "schema": {
     "type": "string"
    },
    "example": "no-cache"
   },
   "Access-Control-Allow-Origin": {
    "description": "Open to any origin.",
    "schema": {
     "type": "string"
    },
    "example": "*"
   }
  },
  "responses": {
   "NotModified": {
    "description": "Unchanged since your `If-None-Match` / `If-Modified-Since`: reuse your copy."
   },
   "NotFound": {
    "description": "No such file (an unknown paper id, say). Plain text, never cached.",
    "content": {
     "text/plain": {
      "schema": {
       "type": "string"
      },
      "example": "404 Not Found"
     }
    }
   }
  }
 }
}
