# Zine library JSON feed

Static, read-only JSON published next to the site. It's free to use from any front end, as long as
each zine's credit and license travel with it.

| File | What it holds |
|---|---|
| `data/catalog.json` | Every published zine in short form, plus per-language counts, topics and vibes |
| `data/zines/<id>.json` | One zine: pages (IIIF image services), page text per language, About notes, credit |
| `data/schema/feed_catalog.json` | JSON Schema for `catalog.json` |
| `data/schema/feed_zine.json` | JSON Schema for one zine file |

`feed_version` is `1`. Fields are only added within a version, never renamed or removed.

## catalog.json

```json
{
  "feed_version": 1,
  "generated_at": "2026-11-29T12:00:00+00:00",
  "count": 214,
  "languages": [{"code": "es", "name": "Español", "english_name": "Spanish", "count": 214, "originals": 40, "translations": 174}],
  "topics": ["Art & Comics", "Music & Punk", "..."],
  "vibes": ["gritty", "dreamy", "..."],
  "zines": [{
    "id": "0105_spaiders_fanzine_4_1999",
    "title": "Spaiders fanzine 4",
    "maker": "", "publisher": "", "collective": "",
    "city": "", "country": "Argentina", "year": "1999",
    "original_language": "es",
    "languages": ["ar", "de", "en", "es", "fr", "it", "ja", "ko", "pt", "zh"],
    "topics": ["Music & Punk"], "vibes": ["gritty", "urgent"],
    "description": {"en": "...", "es": "..."},
    "page_count": 20,
    "cover": "https://iiif.archive.org/image/iiif/3/...jp2",
    "license": {"code": "cc0", "name": "CC0 1.0 (public domain dedication)", "url": "https://creativecommons.org/publicdomain/zero/1.0/"},
    "source_url": "https://archive.org/details/0105_spaiders_fanzine_4_1999",
    "path": "data/zines/0105_spaiders_fanzine_4_1999.json"
  }]
}
```

- **Shuffle rule:** a zine can be read in language `L` if `L` is in `languages` (that list includes the original language when it's one of the ten). Topic and vibe filters match exactly, ignoring case.
- **Blank means unknown.** `city`, `country`, `year`, `publisher` and `collective` are filled only from the zine's own pages or its Internet Archive record. They're never guessed.

## data/zines/&lt;id&gt;.json

Everything in the catalog entry, plus:

- `pages`: `[{"n": 1, "label": "0", "image": "<IIIF image service>", "width": 3427, "height": 4857}]`.
  To get an image, request `{image}/full/{size}/0/default.jpg`. Use a screen-sized width such as
  `600,` or `1000,`, and smaller on phones. Please lazy-load: fetch only the pages on screen and
  the next spread.
- `text`: `{"<lang>": ["page 1 text", "page 2 text", ...]}`. The original language key holds the
  transcription; the other keys hold AI translations. Bracketed notes like `[handwritten]` describe
  the layout.
- `about`: the "About this zine" note per language (2-3 sentences, grounded in the zine and its
  metadata).
- `license`: `code` (`cc0`, `pd`, `by`, `by-sa`, `by-nc`, `by-nc-sa`), `name`, `url` (exactly as
  the uploader stated it) and `share_alike`.
- `credit`: `by`, `license_name`, `license_url`, `source_url`, `ai_notice` and a ready-made
  `text`. **Show it with every zine.**

## Courtesy

The scans are served by the Internet Archive. Keep image requests screen-sized and lazy, let browsers
cache them, and always link back to `source_url`.
