{
  "openapi": "3.1.0",
  "info": {
    "title": "Tiny Viewers scene guides",
    "version": "0.2.0",
    "summary": "Timed scene guides for a small library of children's films: which moments may scare or upset a child, and when, filterable by what is in them and what happens, with AI-judged severity for ages 5-7 and 8-10.",
    "contact": {
      "name": "Tiny Viewers (Range 35 LLC)",
      "email": "support@tinyviewers.com",
      "url": "https://www.tinyviewers.com/support"
    },
    "termsOfService": "https://www.tinyviewers.com/terms",
    "x-privacy-policy": "https://www.tinyviewers.com/privacy",
    "description": "This API answers one question: \"which moments of this film might bother my child, and exactly when are they?\"\n\nWhat it adds over reading the web: the complete flagged-scene list for one analysed release of each film,\nstart and end times that can be calibrated to the parent's own player, filters for what is in a scene and what\nhappens in it, and an explicit account of what was not assessed. It is run by Tiny Viewers, operated by\nRange 35 LLC; support: support@tinyviewers.com.\n\nWHAT THIS DATA IS, AND WHAT IT IS NOT. These limits apply to every answer:\n\n* Scenes are found and timed from the film's SUBTITLE FILE (dialogue and sound captions). For\n  current guides the analysis also read the film's cast list and a published plot summary\n  (Wikipedia) to name characters and describe events; each film's caveats.sources says which, and\n  where its cast list came from (Wikidata and the Wikipedia article's cast section; TMDB for guides\n  built before October 2026), or that this is not recorded for that guide.\n  Nothing watched the picture. Frights that make no sound and nobody mentions (a face in a window,\n  a dark shape, blood on screen, strobing or flashing light, a loud music sting) are NOT covered\n  and are routinely missed. This is a filter for what is said and captioned, not a content rating.\n* For the track named in each answer, the scene list for the WHOLE FILM is complete, not a sample.\n  If a moment is not among those scenes, our analysis did not flag it — which is different from\n  \"it is not there\". A filtered or paged response is a subset of that list: compare counts.returned\n  with counts.matching before you tell a parent you have shown them everything.\n* Everyday words that could mean two things (e.g. \"shot\" = an injection or a gunshot) resolve to\n  ALL of them, and filters_applied says which. Over-matching is deliberate: showing a parent one\n  scene they did not need is better than hiding one they did.\n* Titles, descriptions, severities and labels are written by AI models. Every scene starts with\n  review_status \"unreviewed\"; until a person sets it to \"reviewed\", nobody has checked it.\n  \"cross_checked\" means an AI review changed this scene. A film's AI review used one of two methods, and that film's caveats.human_review names it: \"memory\", where AI models re-read the AI-written guide using their own knowledge of the film, not its subtitles, and a change was applied where at least two of them proposed it; or \"blind\", where two AI models each checked every scene of the AI-written guide against that scene's subtitle lines and the film's Wikipedia plot summary, without seeing each other's answers (a scene a later rebuild or re-selection of the guide added was not part of that review), and a label was rejected or added only where both proposed the same one, and a severity band moved only where both moved it the same way, by the smaller of the two moves, or less where needed to keep the two age bands in step; a new title or description is one model's wording, applied where both models called the old text wrong, after a separate AI check of that wording against the scene's lines, by the model that wrote it in a fresh session or by another model (a film's caveats.human_review names the models where they are recorded), each change citing the scene's subtitle lines, the plot summary or the models' own knowledge of the film. No person has watched or checked it. Any of it can be wrong: a label can name something\n  that is not in the scene, and a severity can be too low or too high.\n* A missing label never means \"absent\". Each scene carries a not_assessed list of vocabulary items\n  that subtitles are blind to; for those, the absence of a label carries no information at all.\n* Labels come in four strengths that mean different things. See \"FOUR STRENGTHS\" below.\n* confirmed_by_second_run: true means a second independent pass over the same subtitles found an\n  overlapping scene. false means it did not. null means no second pass exists for that film. It is\n  a consistency check between two model runs, not a check against the film.\n* Severities (each scene's severity[\"5-7\"] and severity[\"8-10\"]) run 0-3 and are an AI model's\n  judgement. They are not a rating from any board and they are not a promise.\n\nTOOLS, ACCESS AND LIMITS\n\n* Every operation here is a READ: it retrieves information and writes nothing on the caller's\n  behalf. There are no writes, no sensitive actions, no accounts and no authentication.\n  (x-tool-classification on each operation says \"read\".)\n* Rate limit: up to 600 requests a minute from one client address, counted per server instance.\n  Over that, the API answers 429 with a Retry-After header and retry_after_s in the body.\n* Errors are JSON { error, message } with a plain-English message: 400 for a parameter that was not\n  understood (with the nearest valid values), 404 for an unknown film (with the films that exist),\n  429 for the rate limit, 500 for a fault on our side. Nothing here is retried automatically.\n* Coverage is limited to the films GET /api/films lists; with no q and no limit it lists every\n  film in the database (up to 500). A film absent from that full list has not been\n  analysed, which says nothing about its content.\n\nHOW TO TURN A PARENT'S WORDS INTO FILTERS\n\nThere are two independent layers, and mixing them up is the commonest mistake:\n\n* presence = WHAT IS IN THE SCENE, regardless of whether anything bad happens. A friendly monster,\n  a comic monster and a terrifying monster all count. Use this for \"does it have X in it\"\n  questions: monsters, sharks, spiders, guns, needles, the dark, fire, a graveyard.\n* event  = WHAT HAPPENS TO THE CHARACTERS right now: chased, captured, someone dies, a child is\n  taken from a parent, someone is crying. Use this for \"does anything bad happen\" questions.\n* group  = a whole family of either, e.g. creatures_figures, peril, death, separation.\n\nValues are matched tolerantly — case and plurals do not matter, and everyday words work: \"Sharks\"\nresolves to shark, \"needles\" to needle_medical, \"the dark\" to darkness. If nothing matches you get\na 400 with the nearest ids. GET /api/vocabulary lists every id, its parent-facing label and the\nother words it answers to.\n\nBROAD WORDS RESOLVE TO A GROUP. \"monster\", \"monsters\", \"creature(s)\", \"scary creature(s)\" and\n\"beast(s)\" are answered with the whole creatures_figures GROUP, not with one item, and\nfilters_applied says so. This is deliberate: the narrow item monster_creature excludes every\nordinary animal by definition, so under it Finding Nemo has no monsters at all — a true statement\nabout our taxonomy and a useless answer to a parent, who means \"frightening creatures of any\nkind\". Example: presence=monsters on Finding Nemo matches the scenes with the barracuda, Bruce\nthe shark and the other large predators, while presence=monster_creature asks only for creatures\nthat are not ordinary animals. Use the id for the narrow question; a specific item (\"shark\",\n\"ghost\") narrows a group that is too wide.\n\nDifferent kinds of filter are ANDed; several values of one kind are ORed. So\npresence=shark&event=chased means \"a shark is present AND someone is chased\".\n\nIf a filter matches nothing, the response carries a nothing_matched block, with screener_leads\nwhere the weaker detector saw something. An empty match is not evidence that a film is clear.\n\nFOUR STRENGTHS\n\nEvery scene sorts what we know into four lists. They do not mean the same thing:\n\n1. present — an AI judgement says this IS in the scene. Each entry carries evidence:\n     \"stated_in_lines\"  the subtitle lines of that scene show it. This is evidence from our data.\n     \"known_from_film\"  an AI model says it is on screen there from knowing the film, and our\n                        subtitles do NOT corroborate it. Labels an AI review added (source\n                        \"ai:<models>\") are this kind, unless both models of a blind review cited the scene's own\n                        subtitle lines for them: those are \"stated_in_lines\", and their detail names\n                        the cue ids. Usually right, sometimes the wrong scene, and nobody has checked\n                        either kind; on such a label, evidence_meaning says it is an AI review's.\n     \"model_judgement\"  an AI classifier judged it is there, reading the subtitles with the cast\n                        list and plot summary; nobody has checked it against the lines. Every\n                        label in a guide built by the current pipeline is this kind. These can be\n                        wrong (a word like \"clownfish\" can produce a \"clown, doll or puppet\"\n                        label), so they are claims, not evidence.\n     \"checked_by_person\" a person reviewing the scene confirmed this label, or added it.\n   An entry also carries both_sources_agree: true when a second, independent screener agreed.\n2. possibly_present — ONLY a cheap per-beat screener leaned this way, with a probability. That\n   screener reads 8 subtitle lines at a time and over-flags badly. These are leads to check, not\n   facts about the film. Guides built by the current pipeline carry none.\n3. talked_about_only — the dialogue brings it up while it is NOT in the scene (\"there are sharks\n   out there\"). Often exactly what a parent does not mind. possibly_talked_about is the screener's\n   weaker version of the same thing.\n4. not_assessed — subtitles are blind to this and nobody looked. Absence proves nothing.\n\nBy default filters match list 1 only. include_possible=true also matches list 2, and the response\nsays so in filters_applied.match_rule.\n\nAGES\n\nSeverity is scored for two bands only, 5-7 and 8-10. Pass age=5-7, age=8-10, or a plain number of\nyears and the API picks the band. A number below 5 is answered with the 5-7 band, and the response\nsays so in filters_applied.age_band_note — that band UNDERSTATES how frightening a scene is for a\nthree- or four-year-old. age only chooses which severity column min_severity is compared against;\nit never hides scenes on its own.\n\nHOW TO GET TIMES THAT MATCH THE PARENT'S SCREEN\n\nEvery timestamp belongs to ONE subtitle track, which belongs to ONE release of the film. Another\nrelease can start tens of seconds earlier or later (different logos, different studio cards), and\na PAL transfer of a 24 fps film runs about 4% FASTER, so a difference that starts at zero grows to\nminutes by the end. Quoting our raw times at a parent is the main way this API can be wrong in a\nway that matters.\n\nTwo ways to fix it:\n\n1. platform=<name> — if someone has measured the offset for that streaming service. Call\n   GET /api/films/{slug} first; calibration_platforms.available lists what exists. It is empty for\n   every film today, so this will usually fail; prefer option 2.\n\n2. anchor_cue + observed_at — always available. GET /api/films/{slug} returns three short spoken\n   lines (anchors.lines), one near the start, one in the middle, one near the end, each with the\n   time WE have for it. Ask the parent to play the film, listen for one of those lines, and read\n   the clock on their player when it is spoken. Then:\n\n     /api/films/nemo/scenes?anchor_cue=C0056&observed_at=0:05:12\n\n   The API computes offset = their time - our time and reports every scene in both timelines.\n\n   ONE anchor corrects the start only; it assumes both copies play at the same speed. If the\n   parent can give you TWO anchors (use the early one and the late one, they must be at least a\n   minute apart), pass them comma separated and in the same order:\n\n     /api/films/nemo/scenes?anchor_cue=C0056,C1420&observed_at=0:05:12,1:24:45\n\n   Two anchors also recover the speed difference (scale). The response's calibration block states\n   the offset, the scale and, in words, whether their copy runs faster or slower than ours.\n\nobserved_at accepts H:MM:SS (0:05:12), M:SS with no cap on the minutes (5:12, and 84:20 means 84 minutes) or\nplain seconds (312). If the numbers imply a film that starts before it begins or ends half an hour\npast its length, the API returns a 400 asking you to check the anchor line rather than a bogus time. Every scene then carries\ntrack_time (our clock) AND player_time (theirs). player_time is the one that matches the parent's\nscreen; the calibration block names the anchors it came from."
  },
  "servers": [
    {
      "url": "https://api.tinyviewers.com",
      "description": "This deployment"
    }
  ],
  "paths": {
    "/api/films": {
      "get": {
        "x-tool-classification": "read",
        "operationId": "listFilms",
        "summary": "Find a film by title, or list every film.",
        "description": "Case-insensitive substring match on the title and on the slug, so \"nemo\" finds Finding Nemo. With no q and no limit the response lists the films in the database, at most 500 per request; when there are more, count is smaller than total and note says so. total is how many films matched in all; when count is smaller, the response is partial and note says how to get the rest. A film absent from the full list has not been analysed, which says nothing about its content.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Part of the title, e.g. \"nemo\".",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "At most this many films. Leave it out to get every matching film.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching films, each with its slug and a link to its detail and scenes, and total: how many matched before the limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilmList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/films/{slug}": {
      "get": {
        "x-tool-classification": "read",
        "operationId": "getFilm",
        "summary": "One film: the analysed release, the anchor lines used for calibration, counts, and the caveats that apply to its guide.",
        "description": "Returns which release the timestamps belong to, whether the track had sound captions, how many scenes exist, which analysis runs produced them, and the three anchor lines used to calibrate times to the parent's player.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Film, track, anchors, counts, provenance and caveats.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FilmDetail"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/films/{slug}/scenes": {
      "get": {
        "x-tool-classification": "read",
        "operationId": "listScenes",
        "summary": "The complete scene list for a film, filtered, in time order, in both timelines.",
        "description": "Returns every scene our analysis produced for the film's subtitle track, narrowed by the filters you pass, always sorted by start time.\n\nHOW TO TURN A PARENT'S WORDS INTO FILTERS\n\nThere are two independent layers, and mixing them up is the commonest mistake:\n\n* presence = WHAT IS IN THE SCENE, regardless of whether anything bad happens. A friendly monster,\n  a comic monster and a terrifying monster all count. Use this for \"does it have X in it\"\n  questions: monsters, sharks, spiders, guns, needles, the dark, fire, a graveyard.\n* event  = WHAT HAPPENS TO THE CHARACTERS right now: chased, captured, someone dies, a child is\n  taken from a parent, someone is crying. Use this for \"does anything bad happen\" questions.\n* group  = a whole family of either, e.g. creatures_figures, peril, death, separation.\n\nValues are matched tolerantly — case and plurals do not matter, and everyday words work: \"Sharks\"\nresolves to shark, \"needles\" to needle_medical, \"the dark\" to darkness. If nothing matches you get\na 400 with the nearest ids. GET /api/vocabulary lists every id, its parent-facing label and the\nother words it answers to.\n\nBROAD WORDS RESOLVE TO A GROUP. \"monster\", \"monsters\", \"creature(s)\", \"scary creature(s)\" and\n\"beast(s)\" are answered with the whole creatures_figures GROUP, not with one item, and\nfilters_applied says so. This is deliberate: the narrow item monster_creature excludes every\nordinary animal by definition, so under it Finding Nemo has no monsters at all — a true statement\nabout our taxonomy and a useless answer to a parent, who means \"frightening creatures of any\nkind\". Example: presence=monsters on Finding Nemo matches the scenes with the barracuda, Bruce\nthe shark and the other large predators, while presence=monster_creature asks only for creatures\nthat are not ordinary animals. Use the id for the narrow question; a specific item (\"shark\",\n\"ghost\") narrows a group that is too wide.\n\nDifferent kinds of filter are ANDed; several values of one kind are ORed. So\npresence=shark&event=chased means \"a shark is present AND someone is chased\".\n\nIf a filter matches nothing, the response carries a nothing_matched block, with screener_leads\nwhere the weaker detector saw something. An empty match is not evidence that a film is clear.\n\nFOUR STRENGTHS\n\nEvery scene sorts what we know into four lists. They do not mean the same thing:\n\n1. present — an AI judgement says this IS in the scene. Each entry carries evidence:\n     \"stated_in_lines\"  the subtitle lines of that scene show it. This is evidence from our data.\n     \"known_from_film\"  an AI model says it is on screen there from knowing the film, and our\n                        subtitles do NOT corroborate it. Labels an AI review added (source\n                        \"ai:<models>\") are this kind, unless both models of a blind review cited the scene's own\n                        subtitle lines for them: those are \"stated_in_lines\", and their detail names\n                        the cue ids. Usually right, sometimes the wrong scene, and nobody has checked\n                        either kind; on such a label, evidence_meaning says it is an AI review's.\n     \"model_judgement\"  an AI classifier judged it is there, reading the subtitles with the cast\n                        list and plot summary; nobody has checked it against the lines. Every\n                        label in a guide built by the current pipeline is this kind. These can be\n                        wrong (a word like \"clownfish\" can produce a \"clown, doll or puppet\"\n                        label), so they are claims, not evidence.\n     \"checked_by_person\" a person reviewing the scene confirmed this label, or added it.\n   An entry also carries both_sources_agree: true when a second, independent screener agreed.\n2. possibly_present — ONLY a cheap per-beat screener leaned this way, with a probability. That\n   screener reads 8 subtitle lines at a time and over-flags badly. These are leads to check, not\n   facts about the film. Guides built by the current pipeline carry none.\n3. talked_about_only — the dialogue brings it up while it is NOT in the scene (\"there are sharks\n   out there\"). Often exactly what a parent does not mind. possibly_talked_about is the screener's\n   weaker version of the same thing.\n4. not_assessed — subtitles are blind to this and nobody looked. Absence proves nothing.\n\nBy default filters match list 1 only. include_possible=true also matches list 2, and the response\nsays so in filters_applied.match_rule.\n\nHOW TO GET TIMES THAT MATCH THE PARENT'S SCREEN\n\nEvery timestamp belongs to ONE subtitle track, which belongs to ONE release of the film. Another\nrelease can start tens of seconds earlier or later (different logos, different studio cards), and\na PAL transfer of a 24 fps film runs about 4% FASTER, so a difference that starts at zero grows to\nminutes by the end. Quoting our raw times at a parent is the main way this API can be wrong in a\nway that matters.\n\nTwo ways to fix it:\n\n1. platform=<name> — if someone has measured the offset for that streaming service. Call\n   GET /api/films/{slug} first; calibration_platforms.available lists what exists. It is empty for\n   every film today, so this will usually fail; prefer option 2.\n\n2. anchor_cue + observed_at — always available. GET /api/films/{slug} returns three short spoken\n   lines (anchors.lines), one near the start, one in the middle, one near the end, each with the\n   time WE have for it. Ask the parent to play the film, listen for one of those lines, and read\n   the clock on their player when it is spoken. Then:\n\n     /api/films/nemo/scenes?anchor_cue=C0056&observed_at=0:05:12\n\n   The API computes offset = their time - our time and reports every scene in both timelines.\n\n   ONE anchor corrects the start only; it assumes both copies play at the same speed. If the\n   parent can give you TWO anchors (use the early one and the late one, they must be at least a\n   minute apart), pass them comma separated and in the same order:\n\n     /api/films/nemo/scenes?anchor_cue=C0056,C1420&observed_at=0:05:12,1:24:45\n\n   Two anchors also recover the speed difference (scale). The response's calibration block states\n   the offset, the scale and, in words, whether their copy runs faster or slower than ours.\n\nobserved_at accepts H:MM:SS (0:05:12), M:SS with no cap on the minutes (5:12, and 84:20 means 84 minutes) or\nplain seconds (312). If the numbers imply a film that starts before it begins or ends half an hour\npast its length, the API returns a 400 asking you to check the anchor line rather than a bogus time. Every scene then carries\ntrack_time (our clock) AND player_time (theirs). player_time is the one that matches the parent's\nscreen; the calibration block names the anchors it came from.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Slug"
          },
          {
            "name": "presence",
            "in": "query",
            "required": false,
            "description": "Comma-separated. What must be IN the scene. A vocabulary id, a parent-facing label, or an everyday word. Case and plurals do not matter. See GET /api/vocabulary. The broad words \"monster(s)\", \"creature(s)\", \"scary creature(s)\" and \"beast(s)\" are answered with the whole creatures_figures group rather than the narrow monster_creature item; the response says so in filters_applied. Example: presence=monsters or presence=shark,darkness",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "event",
            "in": "query",
            "required": false,
            "description": "Comma-separated. What must HAPPEN in the scene. A vocabulary id, a parent-facing label, or an everyday word. Case and plurals do not matter. See GET /api/vocabulary. Example: event=chased,captured",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Comma-separated group ids or full labels, e.g. creatures_figures, peril, death, separation. Name a group exactly: a fragment of a label is rejected rather than guessed at. Matches a scene carrying any asserted label in that group, or — with include_possible=true — any screener lead in it too.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "age",
            "in": "query",
            "required": false,
            "description": "The child's age. \"5-7\", \"8-10\", or a plain number of years. A number below 5 is answered with the 5-7 band, which understates severity for a younger child; the response says so in filters_applied.age_band_note. Chooses which severity column min_severity uses.",
            "schema": {
              "type": "string",
              "examples": [
                "5-7",
                "8-10",
                "4"
              ]
            }
          },
          {
            "name": "min_severity",
            "in": "query",
            "required": false,
            "description": "Keep only scenes whose severity for the chosen age band is at least this. The marks are defined per band (each response's caveats.severity_scale): 0 = little upset, 1 = a brief scare, 2 = lasting danger or distress, 3 = for ages 5-7 an attack, a child taken, or someone dying or seeming to die; for ages 8-10 someone dying, a child taken, or family in serious danger (someone who only seems to die is 2 for ages 8-10).",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 3
            }
          },
          {
            "name": "only_confirmed",
            "in": "query",
            "required": false,
            "description": "true keeps only scenes a second independent analysis pass also found. Films with no second pass have confirmed_by_second_run = null and are excluded entirely; the response says how many that removed.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "include_possible",
            "in": "query",
            "required": false,
            "description": "false (the default) matches only what a per-scene judgement asserted. true also matches the weaker per-beat screener leads a scene lists under possibly_present. Useful when a false hit is better than a miss; the extra scenes are unconfirmed leads, and the response marks them as such.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "platform",
            "in": "query",
            "required": false,
            "description": "Name of a streaming release whose time offset has been measured, e.g. \"Disney+\". None have been measured yet, so this usually 400s; use anchor_cue + observed_at. Cannot be combined with them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "anchor_cue",
            "in": "query",
            "required": false,
            "description": "One or two anchor cue ids from GET /api/films/{slug} (anchors.lines[].cue_id), comma separated, e.g. C0056 or C0056,C1420.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "observed_at",
            "in": "query",
            "required": false,
            "description": "Where the parent actually heard those lines on their own player, in the same order as anchor_cue. H:MM:SS (1:24:20), M:SS with no hours cap (84:20 means 84 minutes) or plain seconds (5060). One value gives an offset; two give an offset and a playback-speed correction. A pair of times that would put the film before its start or far past its end is rejected with a 400 rather than turned into nonsense.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 300,
              "default": 100
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "How many matching scenes to skip. counts.matching says how many matched in all.",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Scenes in time order, with the filters that were applied, the calibration that was used, and the caveats.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SceneList"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/vocabulary": {
      "get": {
        "x-tool-classification": "read",
        "operationId": "getVocabulary",
        "summary": "Every filter value, grouped, with the everyday words each one answers to.",
        "description": "The vocabulary for turning a parent's words into presence / event / group filters. It also lists broad_words — everyday words like \"monsters\" that are answered with a whole group rather than one item. Items flagged text_blind are things subtitles cannot see; their absence from a scene means \"not assessed\", never \"not there\".",
        "responses": {
          "200": {
            "description": "Groups and items.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vocabulary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/api/openapi.json": {
      "get": {
        "x-tool-classification": "read",
        "operationId": "getOpenapi",
        "summary": "This document.",
        "responses": {
          "200": {
            "description": "The OpenAPI 3.1 description of this API.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "Slug": {
        "name": "slug",
        "in": "path",
        "required": true,
        "description": "The film's slug, from GET /api/films.",
        "schema": {
          "type": "string",
          "examples": [
            "nemo",
            "monsters-inc"
          ]
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "A parameter was not understood. The body explains what is wrong and, for an unknown filter value, lists the nearest vocabulary ids.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "No such film. The body lists every slug this database holds.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "More than 600 requests in a minute from this client address on one server instance. Retry after the number of seconds in the Retry-After header (also retry_after_s in the body).",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before retrying.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InternalError": {
        "description": "A fault on our side. The message never contains internal details; retrying later is safe because every operation is a read.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error",
          "message"
        ],
        "properties": {
          "error": {
            "type": "string",
            "enum": [
              "bad_request",
              "not_found",
              "method_not_allowed",
              "too_many_requests",
              "internal_error"
            ],
            "description": "method_not_allowed (405) comes back for anything other than GET, HEAD or OPTIONS. Every endpoint an assistant should call is read-only; the POST routes under /api/add are the owner's own and are not described here at all."
          },
          "message": {
            "type": "string",
            "description": "Plain English; safe to paraphrase to the user."
          },
          "did_you_mean": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "available": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "retry_after_s": {
            "type": "integer",
            "description": "Only on 429."
          }
        }
      },
      "FilmList": {
        "type": "object",
        "properties": {
          "query": {
            "type": [
              "string",
              "null"
            ]
          },
          "count": {
            "type": "integer",
            "description": "How many films are in THIS response."
          },
          "total": {
            "type": "integer",
            "description": "How many films matched in all, ignoring limit. When it is larger than count, the response is partial."
          },
          "films": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "year": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "imdb_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "scene_count": {
                  "type": "integer"
                },
                "detail": {
                  "type": "string"
                },
                "scenes": {
                  "type": "string"
                }
              }
            }
          },
          "note": {
            "type": "string",
            "description": "What this list covers: every film, every film matching q, or part of either and how to get the rest."
          }
        }
      },
      "FilmDetail": {
        "type": "object",
        "properties": {
          "film": {
            "type": "object",
            "description": "slug, title, year and imdb_id."
          },
          "track": {
            "type": "object",
            "description": "The one subtitle file all timestamps belong to: its source; release_label, the edition when one is recorded (year, resolution, and \"Streaming\", \"Blu-ray\", \"DVD\" or \"TV\", e.g. \"2013 · 720p · Blu-ray\"); whether it has sound captions; cue count; and sha256, which identifies the exact file. The track id is not a file identifier."
          },
          "anchors": {
            "type": "object",
            "description": "Three short spoken lines with our time for each. Give one to the parent to calibrate."
          },
          "calibration_platforms": {
            "type": "object"
          },
          "counts": {
            "type": "object"
          },
          "analysis_runs": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Which model, taxonomy and script produced the rows, and what it cost."
          },
          "sources": {
            "type": "object",
            "description": "Attribution for the published sources the analysis read, beyond the subtitle file.",
            "properties": {
              "plot_summary": {
                "type": [
                  "object",
                  "null"
                ],
                "description": "The Wikipedia plot summary a current guide read to name characters and describe events: the article, the exact revision, and its licence. Its text is not served. null when no such record exists for the film.",
                "properties": {
                  "publisher": {
                    "type": "string",
                    "examples": [
                      "Wikipedia"
                    ]
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "section": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "revision": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "revision_url": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "revision_timestamp": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "license": {
                    "type": "string",
                    "examples": [
                      "CC BY-SA 4.0"
                    ]
                  },
                  "license_url": {
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "caveats": {
            "$ref": "#/components/schemas/Caveats"
          }
        }
      },
      "Caveats": {
        "type": "object",
        "description": "Sentences about the limits of this data, in plain words. They apply to every scene list for the film.",
        "properties": {
          "complete_for_this_film": {
            "type": "string",
            "description": "A statement about the FILM, not about the response. A filtered or paged response is a subset; check counts.matching before calling any list complete."
          },
          "sources": {
            "type": "string",
            "description": "What the guide was built from: the subtitle file, and for current guides also the cast list and a plot summary (Wikipedia), naming where this guide's cast list came from (Wikidata and the Wikipedia article's cast section; TMDB for guides built before October 2026), or saying that this is not recorded for the guide; where an AI review changed scenes, also what that review worked from, per its method: the review models' own knowledge of the film (\"memory\"), or each scene's subtitle lines and the plot summary, with some changes resting on the models' own knowledge (\"blind\"). Nothing watched the picture."
          },
          "how_sure_we_are": {
            "type": "string"
          },
          "machine_generated": {
            "type": "string"
          },
          "human_review": {
            "type": "string",
            "description": "How many scenes a person has checked (review_status \"reviewed\"), and, where an AI review changed scenes (review_status \"cross_checked\"), how many, which method that film's AI review used (\"memory\" or \"blind\"), which models it used, and what that method means. No person has watched or checked a cross_checked scene."
          },
          "missing_label_is_not_absence": {
            "type": "string"
          },
          "timestamps_belong_to_one_release": {
            "type": "string"
          },
          "severity_scale": {
            "type": "string"
          },
          "confirmation": {
            "type": "string"
          }
        }
      },
      "SceneList": {
        "type": "object",
        "properties": {
          "film": {
            "type": "object"
          },
          "track": {
            "type": "object"
          },
          "filters_applied": {
            "type": "object",
            "description": "What each filter value resolved to, the age band used, and any warning about it."
          },
          "calibration": {
            "$ref": "#/components/schemas/Calibration"
          },
          "counts": {
            "type": "object",
            "description": "returned = how many scenes are in THIS response. matching = how many matched the filters in all, ignoring limit and offset. scenes_in_film = every scene we have for the film. When matching is larger than returned, the response is partial and a `more` line says how to page on.",
            "properties": {
              "returned": {
                "type": "integer"
              },
              "matching": {
                "type": "integer"
              },
              "scenes_in_film": {
                "type": "integer"
              },
              "limit": {
                "type": "integer"
              },
              "offset": {
                "type": "integer"
              },
              "more": {
                "type": "string"
              }
            }
          },
          "scenes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Scene"
            }
          },
          "nothing_matched": {
            "type": "object",
            "description": "Present only when the filters matched no scene. Carries screener_leads (things the weaker per-beat detector saw, with probabilities) and talked_about_somewhere. Read it before telling a parent a film is clear."
          },
          "caveats": {
            "$ref": "#/components/schemas/Caveats"
          }
        }
      },
      "Calibration": {
        "type": "object",
        "properties": {
          "applied": {
            "type": "boolean"
          },
          "method": {
            "type": "string",
            "enum": [
              "none",
              "platform",
              "one_anchor",
              "two_anchors"
            ]
          },
          "offset_ms": {
            "type": "integer",
            "description": "player_ms = track_ms * scale + offset_ms"
          },
          "scale": {
            "type": "number",
            "description": "1 when both releases run at the same speed. About 0.96 or 1.042 across an NTSC/PAL change."
          },
          "anchors_used": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "how_to": {
            "type": "string"
          }
        }
      },
      "Scene": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "AI-written."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "AI-written, sometimes wrong about who or what is on screen. It is the guide's description, not a verified account."
          },
          "track_time": {
            "type": "object",
            "description": "Start and end on OUR subtitle track, in ms and H:MM:SS."
          },
          "player_time": {
            "type": "object",
            "description": "The same moment on the parent's copy after calibration. Identical to track_time when no calibration was requested."
          },
          "start_cue": {
            "type": "string",
            "description": "The subtitle cue id the scene starts on."
          },
          "end_cue": {
            "type": "string"
          },
          "severity": {
            "type": "object",
            "properties": {
              "5-7": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "8-10": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          },
          "present": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "A per-scene judgement says these are in the scene. Check each one's `evidence`."
          },
          "possibly_present": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "Only the per-beat screener leaned this way, with a probability. It over-flags; these are leads to check, not facts about the film."
          },
          "talked_about_only": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "Mentioned in dialogue while not in the scene."
          },
          "possibly_talked_about": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "The screener's weaker version of talked_about_only."
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "not_assessed": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "why": {
                  "type": "string"
                }
              }
            },
            "description": "Things subtitles are blind to that carry no label here. Absence proves nothing for these."
          },
          "confirmed_by_second_run": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "review_status": {
            "type": "string",
            "enum": [
              "unreviewed",
              "cross_checked",
              "reviewed"
            ],
            "description": "\"reviewed\" when a person has checked this scene (its labels, title and severity). \"cross_checked\" when an AI review changed this scene. A film's AI review used one of two methods, and that film's caveats.human_review names it: \"memory\", where AI models re-read the AI-written guide using their own knowledge of the film, not its subtitles, and a change was applied where at least two of them proposed it; or \"blind\", where two AI models each checked every scene of the AI-written guide against that scene's subtitle lines and the film's Wikipedia plot summary, without seeing each other's answers (a scene a later rebuild or re-selection of the guide added was not part of that review), and a label was rejected or added only where both proposed the same one, and a severity band moved only where both moved it the same way, by the smaller of the two moves, or less where needed to keep the two age bands in step; a new title or description is one model's wording, applied where both models called the old text wrong, after a separate AI check of that wording against the scene's lines, by the model that wrote it in a fresh session or by another model (a film's caveats.human_review names the models where they are recorded), each change citing the scene's subtitle lines, the plot summary or the models' own knowledge of the film. No person has watched or checked it; it marks a scene the AI review changed, not one it confirmed. \"unreviewed\" otherwise, including scenes an AI review read and left unchanged."
          },
          "text_visibility": {
            "type": [
              "string",
              "null"
            ],
            "description": "How much of what happens in this scene the subtitles could see. \"low\" means most of it was visual."
          }
        }
      },
      "Label": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "group": {
            "type": [
              "string",
              "null"
            ]
          },
          "group_label": {
            "type": [
              "string",
              "null"
            ]
          },
          "probability": {
            "type": [
              "number",
              "null"
            ],
            "description": "Only on possibly_present / possibly_talked_about: the per-beat screener's probability, 0-1."
          },
          "evidence": {
            "type": "string",
            "enum": [
              "stated_in_lines",
              "known_from_film",
              "model_judgement",
              "checked_by_person"
            ],
            "description": "Only on `present`. \"stated_in_lines\" = the scene's subtitles show it, which is evidence from our data. \"known_from_film\" = an AI model says it is on screen from knowing the film (labels an AI review added are this kind, unless both of a blind review's models cited the scene's own subtitle lines for them, which makes them \"stated_in_lines\" with the cue ids in their detail), and our subtitles do not corroborate it. \"model_judgement\" = an AI classifier judged it, and nobody has checked it against the subtitle lines. \"checked_by_person\" = a person reviewing the scene confirmed or added it."
          },
          "evidence_meaning": {
            "type": "string",
            "description": "The same thing in words, safe to paraphrase to a parent. On a label an AI review added (source \"ai:...\") it says so, e.g. \"an AI review read this in the scene's subtitle lines; no person has checked it\"."
          },
          "both_sources_agree": {
            "type": "boolean",
            "description": "True when an independent second screener also reached the assertion threshold for this item in this scene."
          },
          "screener_probability": {
            "type": [
              "number",
              "null"
            ],
            "description": "What the second screener gave this item here, when it looked at all."
          },
          "detail": {
            "type": "string",
            "description": "Something the vocabulary has no id for yet, e.g. a `dies` label whose detail is \"a pet or animal\"; or, on a label a review added, how: by a person, or by an AI review, saying what it rests on: the subtitle cue ids of the scene it cites (evidence \"stated_in_lines\"), or lines within 20 seconds of the scene, the plot summary sentences, or the AI models' own knowledge of the film (evidence \"known_from_film\"). Either way no person has checked an AI review's label."
          },
          "source": {
            "type": "string",
            "description": "Who produced the label: a model id for the pipeline's own labels; \"ai:<model> + <model>\" for a label an AI review added (the models that proposed it); \"person:<name>\" for one a person added."
          },
          "review_status": {
            "type": "string"
          }
        }
      },
      "Vocabulary": {
        "type": "object",
        "properties": {
          "taxonomy_version": {
            "type": "string"
          },
          "how_to_use": {
            "type": "string"
          },
          "counts": {
            "type": "object"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}
