{
  "_comment": "GENERATED by tools/build_data_contract.py from api/_datasets.py and api/_dataset_fields.py. Do not edit by hand; a test fails when this file disagrees with the code.",
  "schema_version": 1,
  "api": "https://china-snapshot.com/api/datasets",
  "modes": [
    "raw",
    "release",
    "changes",
    "topics"
  ],
  "correction_history_url": "https://china-snapshot.com/data/data-contract.json",
  "correction_history_path": "changelog",
  "changelog": [
    {
      "date": "2026-11-13",
      "type": "added",
      "summary": "documents and document_changes: translation_status (machine, publisher_en, failed). source_url of new news-proxy documents is the publisher URL, not the Google News wrapper."
    },
    {
      "date": "2026-11-13",
      "type": "added",
      "summary": "documents: published_time, effective_at, effective_basis (stated_date, on_publication, unknown), doc_number ({raw, issuer_prefix, year, seq}), comment_deadline, issuers, subject_class, detection_lag_hours (migration 050). Null until the migration lands and the record is read; listed in unavailable_fields before that. schema_version stays 1."
    },
    {
      "date": "2026-11-01",
      "type": "added",
      "summary": "document_changes (mode=changes and GET /api/changes): change_type (new, newly_discovered, revised) and change_at (UTC) under the contract names; event and event_at are kept."
    },
    {
      "date": "2026-11-01",
      "type": "added",
      "summary": "documents: last_revised_at, content_hash. mode=changes (document_changes) and mode=topics (social_topics) field tables published. Monitoring names reconciled to this contract before release: last_seen_at is last_seen, observations (count) is observation_count, revision_count is version_count; observation_count counts same-feed-family collections only (migration 045)."
    },
    {
      "date": "2026-11-01",
      "type": "added",
      "summary": "documents: publisher, acquisition_route, translated_title, first_seen, last_seen, observation_count, change_type, version_count; detail adds observations[], observations_total, revisions[]. social: platform, board, collected_at, original_topic, translated_topic. indicators: release_date, revision_status (raw and release). Filter: change_type. schema_version stays 1."
    }
  ],
  "record_rules": {
    "documents": "One record per source URL. Collecting the same URL again adds an observation (observation_count, last_seen, observations[]), never a new record. Grouping by URL is exact: different URLs for the same story stay separate records.",
    "social": "One row per list appearance. Repeated appearances of a topic are kept as separate observations; item_key groups identical topic text on one list and never merges similar text.",
    "indicators": "Raw mode: one row per collection run. Release mode: one row per (series_id, period); repeated collection of the same print is not a new release."
  },
  "datasets": {
    "documents": {
      "description": "Source documents (policy publications and press): one record per source URL.",
      "fields": {
        "id": {
          "label": "Record ID",
          "type": "string",
          "description": "Stable record ID, dataset:number. Use it with ?id= for the record detail.",
          "missing_means": "Never missing."
        },
        "title": {
          "label": "Title",
          "type": "string",
          "description": "Title as displayed, in English where a translation is stored, otherwise the original.",
          "missing_means": "Never missing; a record with no title reads \"Untitled document\"."
        },
        "title_lang": {
          "label": "Title language",
          "type": "string",
          "description": "Language of title: 'zh' when it contains Chinese characters, otherwise 'en'.",
          "missing_means": "Never missing."
        },
        "is_translated": {
          "label": "Title is a machine translation",
          "type": "boolean",
          "description": "True when title is a machine translation of original_title.",
          "missing_means": "Never missing; false means title is the publisher's own text or an English label."
        },
        "source": {
          "label": "Publisher",
          "type": "string",
          "description": "Publisher label (the agency or outlet). Same value as publisher on documents.",
          "missing_means": "Never missing; \"Unknown publisher\" when the record carries none."
        },
        "source_url": {
          "label": "Original source",
          "type": "string",
          "description": "Link to the original source. News-proxy documents first seen from 2026-11-06 link to the publisher; some older ones still carry a Google News redirect.",
          "missing_means": "null: no link was retained. Some historical indicator rows predate link retention."
        },
        "original_title": {
          "label": "Original title",
          "type": "string",
          "description": "Title in the document's original language.",
          "missing_means": "null: the language is not recorded, or the stored title is a translation only."
        },
        "published_at": {
          "label": "Publication date",
          "type": "string (date)",
          "description": "Publication date as stated by the publisher or feed, not when we collected it.",
          "missing_means": "null: the publisher gave no date. Never filled with the collection date."
        },
        "collected_at": {
          "label": "First collected",
          "type": "string (date-time, UTC)",
          "description": "When the document was first collected. Same instant as first_seen.",
          "missing_means": "Never missing."
        },
        "language": {
          "label": "Original language",
          "type": "string",
          "description": "Language of the original text ('zh', 'en').",
          "missing_means": "null: language not recorded."
        },
        "topic": {
          "label": "Topic",
          "type": "string",
          "description": "Coarse editorial topic assigned at collection, a pillar such as economy or geopolitics. Not a classification of the document body.",
          "missing_means": "null: no topic was assigned."
        },
        "text_status": {
          "label": "Text availability",
          "type": "string",
          "description": "'available': reviewed original text may be republished (see original_text on the detail). 'source_only': we hold text but may not republish it. 'not_extracted': no text was extracted.",
          "missing_means": "Never missing."
        },
        "publisher": {
          "label": "Publisher",
          "type": "string",
          "description": "The institution or outlet that published the document.",
          "missing_means": "Never missing; \"Unknown publisher\" when not recorded."
        },
        "acquisition_route": {
          "label": "Acquisition route",
          "type": "string",
          "description": "How we reached the document: 'registry_listing' (a registered publisher listing page), 'api' (a publisher API), 'news_proxy' (Google News RSS). 'rss_feed' is reserved and not emitted yet; 'unknown' means the route is not recorded.",
          "missing_means": "Never missing."
        },
        "translated_title": {
          "label": "Translated title",
          "type": "string",
          "description": "English title when the original is not English. Machine translation unless noted.",
          "missing_means": "null: the original is English, or no translation is stored."
        },
        "translation_status": {
          "label": "Translation status",
          "type": "string",
          "description": "How the English title was made. 'publisher_en': the original is English (the publisher's own title). 'machine': DeepSeek translation of a non-English original. 'failed': a non-English original with no English title yet.",
          "missing_means": "null: the original language is not recorded."
        },
        "first_seen": {
          "label": "First seen",
          "type": "string (date-time, UTC)",
          "description": "When we first collected this document. Our clock, not the publisher's.",
          "missing_means": "Never missing."
        },
        "last_seen": {
          "label": "Last seen",
          "type": "string (date-time, UTC)",
          "description": "When we most recently collected this document.",
          "missing_means": "Never missing; equals first_seen for a document seen once."
        },
        "observation_count": {
          "label": "Observations",
          "type": "integer",
          "description": "How many times we collected this document. One document with five observations is one record here, not five publications. Counted from the collection log (rows with the same source URL and the same feed family, so a hot-list row that shares the URL is not counted); at least 1, because the first collection is itself an observation even when its log row is no longer retained.",
          "missing_means": "Never missing."
        },
        "change_type": {
          "label": "Change type",
          "type": "string",
          "description": "'revised': a version whose content hash differs from the previous version in the same language was observed after first_seen. 'newly_discovered': published_at is more than 2 days (Beijing date) before first_seen. 'new': otherwise. Revised is only detectable for documents whose text we extract and version.",
          "missing_means": "Never missing."
        },
        "version_count": {
          "label": "Retained versions",
          "type": "integer",
          "description": "How many content versions we retain for the document (internal revision log), the baseline extraction included; revisions[] on the detail lists them. Bodies are not exposed.",
          "missing_means": "0: no extracted text has been versioned, so a revision cannot be ruled in or out."
        },
        "last_revised_at": {
          "label": "Last changed body observed",
          "type": "string (date-time, UTC)",
          "description": "When we last observed a changed extracted body (a version whose hash differs from the previous version in the same language).",
          "missing_means": "null: only the baseline extraction is retained, or no text was extracted; a first extraction is not a revision."
        },
        "content_hash": {
          "label": "Hash of the current extracted text",
          "type": "string",
          "description": "SHA-256 of the current extracted original-language text. Identifies the body without publishing it; compare with revisions[].content_hash.",
          "missing_means": "null: no text was extracted for this document."
        },
        "published_time": {
          "label": "Posting time stated by the page",
          "type": "string (date-time, UTC)",
          "description": "When the publisher's page says it was posted, to the minute (MOFCOM PubDate meta, gov.cn firstpublishedtime meta, or a visible 发布时间 line). Can be later than published_at, the issue date, when a page is re-posted.",
          "missing_means": "null: the page states no posting time, the record is not an official source, or the page has not been read since migration 050."
        },
        "effective_at": {
          "label": "Effective date",
          "type": "string (date)",
          "description": "Date the instrument takes effect, from its own clause (本公告自2026年11月18日起正式实施). For effective_basis on_publication it equals published_at.",
          "missing_means": "null: effective_basis is unknown, or the clause ties it to a publication date we do not hold."
        },
        "effective_basis": {
          "label": "Basis of the effective date",
          "type": "string",
          "description": "'stated_date': the instrument's own clause names the date. 'on_publication': the clause ties it to publication (自公布之日起施行, 自印发之日起施行). 'unknown': no own clause, a consultation draft, or two clauses that disagree. A quoted or referenced instrument's clause never dates this one.",
          "missing_means": "null: the text of this record has not been read for instrument fields."
        },
        "doc_number": {
          "label": "Document number",
          "type": "object",
          "description": "Object {raw, issuer_prefix, year, seq}: the issuing number as printed (raw) and its parts. 商务部 海关总署公告2026年第52号 -> 商务部 海关总署公告, 2026, 52; 国办发〔2026〕12号 -> 国办发, 2026, 12; 国令第851号 -> 国令, null, 851 (a decree number carries no year). From the publisher's structured field where one exists (gov.cn pcode), else the page or title.",
          "missing_means": "null: the record states no own issuing number; a number it only references is not used."
        },
        "comment_deadline": {
          "label": "Comment deadline",
          "type": "string (date)",
          "description": "Last day for comments on a consultation, as the notice states it (意见反馈截止日期为…, 请于…前反馈).",
          "missing_means": "null: not a consultation, or the notice states no single deadline."
        },
        "issuers": {
          "label": "Issuers",
          "type": "array (string)",
          "description": "Array of issuing organs: a stable slug for known issuers (mofcom, gacc, state-council, state-council-general-office), otherwise the Chinese name verbatim. From the publisher's own issuer field (gov.cn puborg) or the joint-announcement prefix.",
          "missing_means": "null: no issuer is stated in a form we can read without guessing."
        },
        "subject_class": {
          "label": "Publisher subject class",
          "type": "string",
          "description": "The publisher's own subject classification, verbatim (gov.cn policy library childtype, e.g. 城乡建设、环境保护\\环境监测、保护与治理).",
          "missing_means": "null: the publisher assigns none."
        },
        "detection_lag_hours": {
          "label": "Hours from posting to first seen",
          "type": "number",
          "description": "first_seen minus published_time, in hours, one decimal. How long after the publisher posted the page we first collected it.",
          "missing_means": "null: no stated posting time, or our first sighting predates it by over an hour (the stated time is then a later edit)."
        },
        "original_text": {
          "label": "Original-language extraction",
          "type": "string",
          "description": "Original-language extraction, only for individually reviewed republication rights; capped at 120,000 characters.",
          "missing_means": "null: no approved text. See text_status.",
          "detail_only": true
        },
        "text_truncated": {
          "label": "Text truncated",
          "type": "boolean",
          "description": "True when original_text was cut at the cap.",
          "missing_means": "false when there is no text.",
          "detail_only": true
        },
        "rights_basis_url": {
          "label": "Republication basis",
          "type": "string",
          "description": "The page that grants the republication basis for original_text.",
          "missing_means": "null: no approved text.",
          "detail_only": true
        },
        "observations": {
          "label": "Collections of this document",
          "type": "string",
          "description": "Detail only. Array of {observed_at, acquisition_route}, newest first, capped at 100. observations_total is the full count.",
          "missing_means": "Absent on list responses.",
          "detail_only": true
        },
        "observations_total": {
          "label": "Total collections",
          "type": "integer",
          "description": "Detail only. Full number of observations, equal to observation_count.",
          "missing_means": "Absent on list responses.",
          "detail_only": true
        },
        "revisions": {
          "label": "Retained content versions",
          "type": "string",
          "description": "Detail only. Array of {version_id, content_hash, observed_at, lang}, oldest first. Content hashes only; the text of a version is never returned.",
          "missing_means": "Absent on list responses. An empty array means no version is retained.",
          "detail_only": true
        }
      }
    },
    "observations": {
      "description": "One collection of a document, returned in observations[] on a document detail (?id=documents:N).",
      "fields": {
        "observed_at": {
          "label": "Observed at",
          "type": "string (date-time, UTC)",
          "description": "When this collection happened.",
          "missing_means": "Never missing."
        },
        "acquisition_route": {
          "label": "Acquisition route",
          "type": "string",
          "description": "How the document was reached in this collection (see documents.acquisition_route).",
          "missing_means": "Never missing."
        }
      }
    },
    "revisions": {
      "description": "One retained content version of a document, returned in revisions[] on a document detail. Hashes only.",
      "fields": {
        "version_id": {
          "label": "Version ID",
          "type": "integer",
          "description": "Identifier of this content version.",
          "missing_means": "Never missing."
        },
        "content_hash": {
          "label": "Content hash",
          "type": "string",
          "description": "SHA-256 of the extracted original-language text of this version.",
          "missing_means": "Never missing."
        },
        "observed_at": {
          "label": "Observed at",
          "type": "string (date-time, UTC)",
          "description": "When we observed this version. Our clock, not the publisher's edit time.",
          "missing_means": "Never missing."
        },
        "lang": {
          "label": "Language of this version",
          "type": "string",
          "description": "Language of this version; hashes are compared within a language.",
          "missing_means": "Never missing."
        }
      }
    },
    "social": {
      "description": "Social hot-list observations: one row per appearance of a topic on a platform list.",
      "fields": {
        "id": {
          "label": "Record ID",
          "type": "string",
          "description": "Stable record ID, dataset:number. Use it with ?id= for the record detail.",
          "missing_means": "Never missing."
        },
        "title": {
          "label": "Title",
          "type": "string",
          "description": "Title as displayed, in English where a translation is stored, otherwise the original.",
          "missing_means": "Never missing; a record with no title reads \"Untitled document\"."
        },
        "title_lang": {
          "label": "Title language",
          "type": "string",
          "description": "Language of title: 'zh' when it contains Chinese characters, otherwise 'en'.",
          "missing_means": "Never missing."
        },
        "is_translated": {
          "label": "Title is a machine translation",
          "type": "boolean",
          "description": "True when title is a machine translation of original_title.",
          "missing_means": "Never missing; false means title is the publisher's own text or an English label."
        },
        "source": {
          "label": "Publisher",
          "type": "string",
          "description": "Publisher label (the agency or outlet). Same value as publisher on documents.",
          "missing_means": "Never missing; \"Unknown publisher\" when the record carries none."
        },
        "source_url": {
          "label": "Original source",
          "type": "string",
          "description": "Link to the original source. News-proxy documents first seen from 2026-11-06 link to the publisher; some older ones still carry a Google News redirect.",
          "missing_means": "null: no link was retained. Some historical indicator rows predate link retention."
        },
        "original_title": {
          "label": "Original title",
          "type": "string",
          "description": "Topic text as the platform printed it, with the rank prefix removed.",
          "missing_means": "Never missing."
        },
        "observed_at": {
          "label": "Observed at",
          "type": "string (date-time, UTC)",
          "description": "When this list appearance was observed.",
          "missing_means": "Never missing."
        },
        "rank": {
          "label": "Observed rank",
          "type": "integer",
          "description": "The platform's rank of the topic in this observation (1 is top).",
          "missing_means": "null: the platform gave no rank for this observation."
        },
        "heat": {
          "label": "Publisher heat score",
          "type": "string",
          "description": "The platform's own heat score, as printed. Not comparable between platforms.",
          "missing_means": "null: the platform publishes none (WeChat) or it was not retained."
        },
        "platform": {
          "label": "Platform",
          "type": "string",
          "description": "The platform: 'Baidu', 'Weibo' or 'Tencent WeChat'.",
          "missing_means": "Never missing."
        },
        "board": {
          "label": "Board",
          "type": "string",
          "description": "The list on the platform: 'Top Realtime', 'Hot Search' or 'Hot Topics'.",
          "missing_means": "Never missing."
        },
        "collected_at": {
          "label": "Collected at",
          "type": "string (date-time, UTC)",
          "description": "When we collected the list. Same instant as observed_at.",
          "missing_means": "Never missing."
        },
        "original_topic": {
          "label": "Original topic",
          "type": "string",
          "description": "The topic in the platform's language, rank prefix removed.",
          "missing_means": "Never missing."
        },
        "translated_topic": {
          "label": "Translated topic",
          "type": "string",
          "description": "English translation of the topic, machine generated.",
          "missing_means": "null: the topic is already English, or no translation is stored."
        },
        "item_key": {
          "label": "Stable item key",
          "type": "string",
          "description": "Stable key for the same topic text on the same list across observations. A grouping aid only: identical text is assumed to be the same topic, similar text is never merged.",
          "missing_means": "Never missing."
        }
      }
    },
    "indicators": {
      "description": "Numeric series. mode=raw is one row per collection run; mode=release is one row per (series_id, period).",
      "fields": {
        "id": {
          "label": "Record ID",
          "type": "string",
          "description": "Stable record ID, dataset:number. Use it with ?id= for the record detail.",
          "missing_means": "Never missing.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "title": {
          "label": "Title",
          "type": "string",
          "description": "Title as displayed, in English where a translation is stored, otherwise the original.",
          "missing_means": "Never missing; a record with no title reads \"Untitled document\".",
          "modes": [
            "raw",
            "release"
          ]
        },
        "title_lang": {
          "label": "Title language",
          "type": "string",
          "description": "Language of title: 'zh' when it contains Chinese characters, otherwise 'en'.",
          "missing_means": "Never missing.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "is_translated": {
          "label": "Title is a machine translation",
          "type": "boolean",
          "description": "True when title is a machine translation of original_title.",
          "missing_means": "Never missing; false means title is the publisher's own text or an English label.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "source": {
          "label": "Publisher",
          "type": "string",
          "description": "Publisher label (the agency or outlet). Same value as publisher on documents.",
          "missing_means": "Never missing; \"Unknown publisher\" when the record carries none.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "source_url": {
          "label": "Original source",
          "type": "string",
          "description": "Link to the original source. News-proxy documents first seen from 2026-11-06 link to the publisher; some older ones still carry a Google News redirect.",
          "missing_means": "null: no link was retained. Some historical indicator rows predate link retention.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "period": {
          "label": "Reference period",
          "type": "string",
          "description": "Reference period the value describes (YYYY-MM for monthly series, a date for daily).",
          "missing_means": "null: not retained. In release mode a quote with no stated date takes the Beijing day it was read.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "value": {
          "label": "Published value",
          "type": "string",
          "description": "Value as published. In release mode, the latest capture.",
          "missing_means": "Never missing.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "numeric_value": {
          "label": "Numeric value",
          "type": "number",
          "description": "Parsed number for value.",
          "missing_means": "null: the value is not a plain number.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "unit": {
          "label": "Unit",
          "type": "string",
          "description": "Unit of the value.",
          "missing_means": "null: no unit was retained.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "collected_at": {
          "label": "Collected at",
          "type": "string (date-time, UTC)",
          "description": "When we collected this value. In release mode, the latest capture of the release.",
          "missing_means": "Never missing.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "series_id": {
          "label": "Series ID",
          "type": "string",
          "description": "Stable series identifier, e.g. cpi-yoy.",
          "missing_means": "Never missing.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "frequency": {
          "label": "Frequency",
          "type": "string",
          "description": "monthly, daily, policy_event or intraday.",
          "missing_means": "null: the series is not catalogued.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "release_date": {
          "label": "Release date (Beijing)",
          "type": "string (date)",
          "description": "Beijing date the release (series + period) first appeared in our collection. Not the publisher's timestamp.",
          "missing_means": "null: not determinable.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "revision_status": {
          "label": "Revision status",
          "type": "string",
          "description": "'first_release': the first capture of this period. 'repeat_collection': the same value collected again. 'revised': a monthly or policy print changed after first capture. 'unknown': the value differs but the series is a daily/intraday quote or uncatalogued, so a revision cannot be told from a move. In release mode the status describes the release as a whole.",
          "missing_means": "Never missing.",
          "modes": [
            "raw",
            "release"
          ]
        },
        "previous_period": {
          "label": "Previous period",
          "type": "string",
          "description": "Reference period before this one in the series (release mode).",
          "missing_means": "null: no earlier period retained.",
          "modes": [
            "release"
          ]
        },
        "previous_value": {
          "label": "Previous value",
          "type": "string",
          "description": "Value of the previous period (release mode).",
          "missing_means": "null: no earlier period retained.",
          "modes": [
            "release"
          ]
        },
        "previous_numeric_value": {
          "label": "Previous numeric value",
          "type": "number",
          "description": "Parsed number for previous_value (release mode).",
          "missing_means": "null: no earlier period, or not a plain number.",
          "modes": [
            "release"
          ]
        },
        "first_value": {
          "label": "First captured value",
          "type": "string",
          "description": "Value at first capture of this release (release mode).",
          "missing_means": "Never missing.",
          "modes": [
            "release"
          ]
        },
        "revised": {
          "label": "Changed after first capture",
          "type": "boolean",
          "description": "True when a monthly or policy print changed after first capture (release mode).",
          "missing_means": "null: daily and intraday quotes, which move by nature.",
          "modes": [
            "release"
          ]
        },
        "first_seen_at": {
          "label": "First captured at",
          "type": "string (date-time, UTC)",
          "description": "First capture of this release (release mode).",
          "missing_means": "Never missing.",
          "modes": [
            "release"
          ]
        },
        "last_seen_at": {
          "label": "Last captured at",
          "type": "string (date-time, UTC)",
          "description": "Latest capture of this release (release mode).",
          "missing_means": "Never missing.",
          "modes": [
            "release"
          ]
        },
        "observations": {
          "label": "Captures of this release",
          "type": "integer",
          "description": "How many captures were collapsed into this release (release mode).",
          "missing_means": "Never missing.",
          "modes": [
            "release"
          ]
        }
      }
    },
    "document_changes": {
      "description": "dataset=documents&mode=changes&since=: one row per new or revised document event, oldest first.",
      "fields": {
        "id": {
          "label": "Record ID",
          "type": "string",
          "description": "ID of the document the event is about (documents:N). Several events can share one id.",
          "missing_means": "Never missing."
        },
        "title": {
          "label": "Title",
          "type": "string",
          "description": "Title as displayed, in English where a translation is stored, otherwise the original.",
          "missing_means": "Never missing; a record with no title reads \"Untitled document\"."
        },
        "title_lang": {
          "label": "Title language",
          "type": "string",
          "description": "Language of title: 'zh' when it contains Chinese characters, otherwise 'en'.",
          "missing_means": "Never missing."
        },
        "is_translated": {
          "label": "Title is a machine translation",
          "type": "boolean",
          "description": "True when title is a machine translation of original_title.",
          "missing_means": "Never missing; false means title is the publisher's own text or an English label."
        },
        "source": {
          "label": "Publisher",
          "type": "string",
          "description": "Publisher label (the agency or outlet). Same value as publisher on documents.",
          "missing_means": "Never missing; \"Unknown publisher\" when the record carries none."
        },
        "source_url": {
          "label": "Original source",
          "type": "string",
          "description": "Link to the original source. News-proxy documents first seen from 2026-11-06 link to the publisher; some older ones still carry a Google News redirect.",
          "missing_means": "null: no link was retained. Some historical indicator rows predate link retention."
        },
        "change_type": {
          "label": "Change type",
          "type": "string",
          "description": "'new': we first collected this URL. 'newly_discovered': a new event for a document published more than 2 days (Beijing dates) before we first collected it. 'revised': a changed extracted body was observed. Same rule as documents.change_type.",
          "missing_means": "Never missing."
        },
        "change_at": {
          "label": "Change time (UTC)",
          "type": "string (date-time, UTC)",
          "description": "When the change happened on our clock, in UTC: equals event_at. GET /api/changes reports each document once, at its latest event in the walk.",
          "missing_means": "Never missing."
        },
        "event": {
          "label": "Event",
          "type": "string",
          "description": "'new': we first collected this URL. 'revised': we extracted a body whose hash differs from the previous version in the same language.",
          "missing_means": "Never missing."
        },
        "event_at": {
          "label": "Event time",
          "type": "string (date-time, UTC)",
          "description": "When the event happened on our clock: first collection for new, the version's observation time for revised.",
          "missing_means": "Never missing."
        },
        "original_title": {
          "label": "Original title",
          "type": "string",
          "description": "Title in the document's original language.",
          "missing_means": "null: the language is not recorded, or the stored title is a translation only."
        },
        "published_at": {
          "label": "Publication date",
          "type": "string (date)",
          "description": "Publication date as stated by the publisher or feed.",
          "missing_means": "null: the publisher gave no date."
        },
        "first_seen_at": {
          "label": "First collected",
          "type": "string (date-time, UTC)",
          "description": "When the document was first collected (documents.first_seen).",
          "missing_means": "Never missing."
        },
        "content_hash": {
          "label": "Hash of the extracted text at this event",
          "type": "string",
          "description": "SHA-256 of the extracted text at this event; the text itself is not returned.",
          "missing_means": "null: no text was extracted at this event."
        },
        "language": {
          "label": "Original language",
          "type": "string",
          "description": "Language of the original text ('zh', 'en').",
          "missing_means": "null: language not recorded."
        },
        "translation_status": {
          "label": "Translation status",
          "type": "string",
          "description": "How the English title was made. 'publisher_en': the original is English (the publisher's own title). 'machine': DeepSeek translation of a non-English original. 'failed': a non-English original with no English title yet.",
          "missing_means": "null: the original language is not recorded."
        }
      }
    },
    "social_topics": {
      "description": "dataset=social&mode=topics: one row per (platform, topic) inside the requested window.",
      "fields": {
        "id": {
          "label": "Record ID",
          "type": "string",
          "description": "Earliest observation row of the group inside the window (social_topics:N). Can change with the window; not fetchable by id.",
          "missing_means": "Never missing."
        },
        "title": {
          "label": "Title",
          "type": "string",
          "description": "Title as displayed, in English where a translation is stored, otherwise the original.",
          "missing_means": "Never missing; a record with no title reads \"Untitled document\"."
        },
        "title_lang": {
          "label": "Title language",
          "type": "string",
          "description": "Language of title: 'zh' when it contains Chinese characters, otherwise 'en'.",
          "missing_means": "Never missing."
        },
        "is_translated": {
          "label": "Title is a machine translation",
          "type": "boolean",
          "description": "True when title is a machine translation of original_title.",
          "missing_means": "Never missing; false means title is the publisher's own text or an English label."
        },
        "source": {
          "label": "Publisher",
          "type": "string",
          "description": "Publisher label (the agency or outlet). Same value as publisher on documents.",
          "missing_means": "Never missing; \"Unknown publisher\" when the record carries none."
        },
        "source_url": {
          "label": "Original source",
          "type": "string",
          "description": "Link to the original source. News-proxy documents first seen from 2026-11-06 link to the publisher; some older ones still carry a Google News redirect.",
          "missing_means": "null: no link was retained. Some historical indicator rows predate link retention."
        },
        "topic": {
          "label": "Topic",
          "type": "string",
          "description": "The original title with its leading list rank removed and trimmed.",
          "missing_means": "Never missing."
        },
        "original_title": {
          "label": "Original title",
          "type": "string",
          "description": "Latest original-language text of the topic inside the window.",
          "missing_means": "Never missing."
        },
        "first_seen_at": {
          "label": "First seen in window",
          "type": "string (date-time, UTC)",
          "description": "First appearance inside the requested window, not all time.",
          "missing_means": "Never missing."
        },
        "last_seen_at": {
          "label": "Last seen in window",
          "type": "string (date-time, UTC)",
          "description": "Latest appearance inside the requested window.",
          "missing_means": "Never missing."
        },
        "observations": {
          "label": "List appearances in window",
          "type": "integer",
          "description": "List appearances inside the requested window.",
          "missing_means": "Never missing."
        },
        "best_rank": {
          "label": "Best rank in window",
          "type": "integer",
          "description": "Best (lowest) rank inside the window.",
          "missing_means": "null: the platform gave no rank."
        },
        "item_key": {
          "label": "Stable item key",
          "type": "string",
          "description": "Stable key for the same topic text on the same list; matches social.item_key.",
          "missing_means": "Never missing."
        }
      }
    }
  }
}
