{"openapi":"3.1.0","info":{"title":"Kabalot 120 public API","version":"1.0.0","description":"Read-only JSON and Markdown over the data the site has already published. No key, no account, no paid tier.\n\nEvery response is built at request time by the same modules as the HTML pages, so the facts match the page. Nothing is generated by a model at request time.\n\nLimits: 60 requests a minute per client (HTTP 429 with Retry-After: 60; OPTIONS preflights are not counted); list pages of at most 100 items; responses of at most 524288 bytes.\n\nCaching: weak ETag with If-None-Match (304); Cache-Control public, max-age=300. If-Modified-Since is not evaluated.\n\nCORS: Access-Control-Allow-Origin * on every response, errors and rate-limit refusals included; OPTIONS preflight is answered for GET and HEAD.\n\nOnly GET, HEAD and OPTIONS exist; other methods get 405 with Allow. Not offered: bill and vote lists, search, bulk downloads, write access.\n\nData: Knesset open data (OData, knesset.gov.il), cited per fact in `sources`. AI analyses and AI tags are labelled (layer analytic) and are not Knesset classifications.\n\nLicence: no licence has been declared for the compiled data or the AI analyses yet. The site terms allow quoting with a link.","termsOfService":"https://kabalot-108.pages.dev/terms"},"servers":[{"url":"https://kabalot-108.pages.dev"}],"externalDocs":{"description":"Documentation (Hebrew) and example requests (/developers/v1-examples.json)","url":"https://kabalot-108.pages.dev/developers/docs#api-v1"},"paths":{"/api/v1":{"get":{"summary":"Index of the API","responses":{"200":{"description":"Endpoints and the OpenAPI location","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiIndex"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}}}}},"/api/v1/members":{"get":{"summary":"Members of the Knesset in term k (from /data/members.json)","parameters":[{"name":"k","in":"query","required":false,"description":"Knesset term; default: the current one","schema":{"type":"integer","minimum":1,"maximum":999}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":100}}],"responses":{"200":{"description":"List envelope, ordered by id (topics: vocabulary order)","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/members/{id}":{"get":{"summary":"One person: service, factions and per-term metrics","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}}],"responses":{"200":{"description":"Entity envelope","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/members/{id}.md":{"get":{"summary":"One person (Markdown)","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}}],"responses":{"200":{"description":"The same envelope rendered as Markdown: title, date, summary, facts table, sources, methodology, limitations and links. Sent with X-Robots-Tag: noindex.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/factions":{"get":{"summary":"Factions of Knesset term k (from /data/factions.json)","parameters":[{"name":"k","in":"query","required":false,"description":"Knesset term; default: the current one","schema":{"type":"integer","minimum":1,"maximum":999}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":100}}],"responses":{"200":{"description":"List envelope, ordered by id (topics: vocabulary order)","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/factions/{id}":{"get":{"summary":"One faction of one Knesset: period and \"in government\" label","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}}],"responses":{"200":{"description":"Entity envelope","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/factions/{id}.md":{"get":{"summary":"One faction (Markdown)","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}}],"responses":{"200":{"description":"The same envelope rendered as Markdown: title, date, summary, facts table, sources, methodology, limitations and links. Sent with X-Robots-Tag: noindex.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/bills/{id}":{"get":{"summary":"One bill: stage, type, initiators, topic, tags, reading votes and the AI analysis state","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}}],"responses":{"200":{"description":"Entity envelope","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/bills/{id}.md":{"get":{"summary":"One bill (Markdown)","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}}],"responses":{"200":{"description":"The same envelope rendered as Markdown: title, date, summary, facts table, sources, methodology, limitations and links. Sent with X-Robots-Tag: noindex.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/votes/{id}":{"get":{"summary":"One plenum vote: title, date, item and recorded result, with per-MK rows as relations","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}},{"name":"k","in":"query","required":false,"description":"Knesset of the vote. Needed only for a vote without published per-MK results; must match when given.","schema":{"type":"integer","minimum":1,"maximum":999}}],"responses":{"200":{"description":"Entity envelope","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/votes/{id}.md":{"get":{"summary":"One plenum vote (Markdown)","parameters":[{"name":"id","in":"path","required":true,"description":"Official Knesset id (KNS_Person, KNS_Faction, KNS_Bill or KNS_PlenumVote)","schema":{"type":"string","pattern":"^[1-9][0-9]{0,15}$"}},{"name":"k","in":"query","required":false,"description":"Knesset of the vote. Needed only for a vote without published per-MK results; must match when given.","schema":{"type":"integer","minimum":1,"maximum":999}}],"responses":{"200":{"description":"The same envelope rendered as Markdown: title, date, summary, facts table, sources, methodology, limitations and links. Sent with X-Robots-Tag: noindex.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/topics":{"get":{"summary":"The 13 topics","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":100}}],"responses":{"200":{"description":"List envelope, ordered by id (topics: vocabulary order)","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/topics/{slug}":{"get":{"summary":"One topic: bills and laws per Knesset","parameters":[{"name":"slug","in":"path","required":true,"description":"One of the 13 topics in /data/meta.json `topics`","schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}}],"responses":{"200":{"description":"Entity envelope","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityEnvelope"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}},"/api/v1/topics/{slug}.md":{"get":{"summary":"One topic (Markdown)","parameters":[{"name":"slug","in":"path","required":true,"description":"One of the 13 topics in /data/meta.json `topics`","schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,63}$"}}],"responses":{"200":{"description":"The same envelope rendered as Markdown: title, date, summary, facts table, sources, methodology, limitations and links. Sent with X-Robots-Tag: noindex.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}},"Last-Modified":{"description":"Only when the publication registry has a stamp for the page (bills, MK, faction and topic pages); omitted otherwise, never estimated.","schema":{"type":"string"}},"Link":{"description":"<canonical HTML page>; rel=\"canonical\", plus the other representation as rel=\"alternate\".","schema":{"type":"string"}},"Cache-Control":{"description":"public, max-age=300 on 200 and 304; no-store on errors.","schema":{"type":"string"}},"X-Cloud-Release":{"description":"The publication that served the data (equals publicationVersion).","schema":{"type":"string"}},"Access-Control-Allow-Origin":{"description":"*","schema":{"type":"string"}}},"content":{"text/markdown":{"schema":{"type":"string"}}}},"304":{"description":"Not modified: If-None-Match matched the current ETag.","headers":{"ETag":{"description":"Weak validator over the input file hashes, the representation and the API revision. Send it back in If-None-Match.","schema":{"type":"string"}}}},"400":{"description":"Invalid id or query parameter. Unknown or repeated query parameters are rejected.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No published record for this id, or no such path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"The response would exceed 524288 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests a minute from one client (Retry-After: 60). Sent by the Worker's rate limiter before the API; OPTIONS preflights are not counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitError"}}}},"500":{"description":"Unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Nothing published, or a published file could not be read (Error, code unavailable). Also sent by the rate limiter when it is unavailable (RateLimitError, code rate_limiter_unavailable).","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"$ref":"#/components/schemas/RateLimitError"}]}}}}}}}},"components":{"schemas":{"SourceRef":{"type":"object","required":["kind","url","label"],"additionalProperties":false,"properties":{"kind":{"enum":["odata","document","knesset-site","primary-doc"]},"url":{"type":"string","pattern":"^https://"},"label":{"type":"string"},"table":{"type":"string"},"record":{"type":"integer"},"page":{"type":"integer"}}},"Validity":{"type":"object","required":["from","to"],"additionalProperties":false,"properties":{"from":{"type":["string","null"]},"to":{"type":["string","null"]}}},"Review":{"type":"object","required":["kind","state","label"],"additionalProperties":false,"properties":{"kind":{"enum":["analysis","promise-extraction","promise-link","classification"]},"state":{"type":"string"},"label":{"type":"string"},"by":{"type":["string","null"]},"date":{"type":["string","null"]}}},"PublicFact":{"type":"object","additionalProperties":false,"required":["key","subject","value","text","evidenceType","layer","sources","asOf","publicationVersion","anchor"],"description":"One page-visible statement with its evidence (docs/public-knowledge/fact-provenance.md). No numeric confidence: certainty is evidenceType, layer and review.","properties":{"key":{"type":"string"},"subject":{"type":"string","pattern":"^(mk|faction|bill|vote|topic|committee|knesset|party|promise):[a-z0-9_:]+$"},"value":{},"text":{"type":"string"},"evidenceType":{"enum":["official_fact","computed_metric","analytical_inference","missing","unverified"]},"layer":{"enum":["official","claim","analytic","hypo","outcome"]},"reason":{"type":"string"},"review":{"$ref":"#/components/schemas/Review"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/SourceRef"}},"methodologyId":{"type":"string"},"methodologyVersion":{"type":"integer","minimum":1},"eventDate":{"type":["string","null"]},"asOf":{"type":["string","null"]},"publicationVersion":{"type":"string"},"anchor":{"type":["string","null"],"description":"Site path plus an in-page id; null when the canonical page does not show the fact first"},"limitations":{"type":"array","items":{"type":"string"}}}},"Relation":{"type":"object","required":["rel","from","to","valid"],"additionalProperties":false,"properties":{"rel":{"enum":["served_in","member_of","holds_role","on_roster","part_of","initiated","joined","decided","cast","classified_as","advances","promised_by","list_faction"]},"from":{"type":"string","pattern":"^(mk|faction|bill|vote|topic|committee|knesset|party|promise):[a-z0-9_:]+$"},"to":{"type":"string","pattern":"^(mk|faction|bill|vote|topic|committee|knesset|party|promise):[a-z0-9_:]+$"},"valid":{"anyOf":[{"$ref":"#/components/schemas/Validity"},{"type":"null"}]},"basis":{"enum":["at-vote-time","reference-date"]},"record":{"type":"integer"},"detail":{"type":"object"}}},"MethodologyRef":{"type":"object","required":["id","version","title","page","factionBasis"],"additionalProperties":false,"properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":1},"title":{"type":"string"},"page":{"type":["string","null"]},"factionBasis":{"enum":["none","at-vote-time","reference-date","whole-tenure"]}}},"Links":{"type":"object","required":["self","html","markdown","openapi"],"additionalProperties":false,"properties":{"self":{"type":"string","pattern":"^https://"},"html":{"type":["string","null"]},"markdown":{"type":["string","null"]},"openapi":{"type":"string","pattern":"^https://"},"related":{"type":"array","maxItems":50,"items":{"type":"object","required":["id","html","api"],"additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^(mk|faction|bill|vote|topic|committee|knesset|party|promise):[a-z0-9_:]+$"},"html":{"type":"string","pattern":"^https://"},"api":{"type":["string","null"]}}}},"first":{"type":"string","pattern":"^https://"},"prev":{"type":["string","null"]},"next":{"type":["string","null"]},"last":{"type":"string","pattern":"^https://"}}},"EntityData":{"type":"object","additionalProperties":false,"required":["id","type","name","aliases","knesset","active","title","description","lastMeaningfulUpdate","facts","relations"],"properties":{"id":{"type":"string","pattern":"^(mk|faction|bill|vote|topic|committee|knesset|party|promise):[a-z0-9_:]+$"},"type":{"enum":["mk","faction","bill","vote","topic"]},"name":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"knesset":{"type":["integer","null"]},"active":{"anyOf":[{"$ref":"#/components/schemas/Validity"},{"type":"null"}]},"title":{"type":"string"},"description":{"type":"string"},"lastMeaningfulUpdate":{"type":["string","null"],"description":"Registry stamp of the last visible change; a vote page uses its vote day; null when unknown"},"facts":{"type":"array","items":{"$ref":"#/components/schemas/PublicFact"}},"relations":{"type":"array","items":{"$ref":"#/components/schemas/Relation"}}}},"ListItem":{"type":"object","required":["id","name","knesset","canonicalUrl","api"],"additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^(mk|faction|bill|vote|topic|committee|knesset|party|promise):[a-z0-9_:]+$"},"name":{"type":"string"},"knesset":{"type":["integer","null"]},"active":{"anyOf":[{"$ref":"#/components/schemas/Validity"},{"type":"null"}]},"factions":{"type":"array","items":{"type":"object","required":["id","name"],"additionalProperties":false,"properties":{"id":{"type":"string","pattern":"^(mk|faction|bill|vote|topic|committee|knesset|party|promise):[a-z0-9_:]+$"},"name":{"type":"string"}}}},"canonicalUrl":{"type":"string","pattern":"^https://"},"api":{"type":"string","pattern":"^https://"}}},"ListData":{"type":"object","required":["items","k","page","pageSize","total","pages"],"additionalProperties":false,"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/ListItem"}},"k":{"type":["integer","null"]},"page":{"type":"integer","minimum":1},"pageSize":{"type":"integer","minimum":1,"maximum":100},"total":{"type":"integer","minimum":0},"pages":{"type":"integer","minimum":0}}},"EntityEnvelope":{"type":"object","additionalProperties":false,"required":["schemaVersion","publicationVersion","asOf","canonicalUrl","data","sources","methodology","limitations","links"],"properties":{"schemaVersion":{"const":"1"},"publicationVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"asOf":{"type":["string","null"]},"canonicalUrl":{"type":["string","null"]},"data":{"$ref":"#/components/schemas/EntityData"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/SourceRef"}},"methodology":{"type":"array","items":{"$ref":"#/components/schemas/MethodologyRef"}},"limitations":{"type":"array","items":{"type":"string"}},"links":{"$ref":"#/components/schemas/Links"}}},"ListEnvelope":{"type":"object","additionalProperties":false,"required":["schemaVersion","publicationVersion","asOf","canonicalUrl","data","sources","methodology","limitations","links"],"properties":{"schemaVersion":{"const":"1"},"publicationVersion":{"type":"string","pattern":"^[a-f0-9]{64}$"},"asOf":{"type":["string","null"]},"canonicalUrl":{"type":["string","null"]},"data":{"$ref":"#/components/schemas/ListData"},"sources":{"type":"array","items":{"$ref":"#/components/schemas/SourceRef"}},"methodology":{"type":"array","items":{"$ref":"#/components/schemas/MethodologyRef"}},"limitations":{"type":"array","items":{"type":"string"}},"links":{"$ref":"#/components/schemas/Links"}}},"Error":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"object","required":["code","message"],"additionalProperties":false,"properties":{"code":{"enum":["invalid_id","invalid_parameter","not_found","method_not_allowed","response_too_large","unavailable","internal_error"]},"message":{"type":"string"}}}}},"RateLimitError":{"type":"object","required":["error"],"additionalProperties":false,"description":"Sent by the platform Worker rate limiter (cloud/rate-limit.ts) before the API runs; the same shape as Error, with CORS.","properties":{"error":{"type":"object","required":["code","message"],"additionalProperties":false,"properties":{"code":{"enum":["rate_limited","rate_limiter_unavailable"]},"message":{"type":"string"}}}}},"ApiIndex":{"type":"object","required":["schemaVersion","api","openapi","endpoints"],"additionalProperties":false,"properties":{"schemaVersion":{"const":"1"},"api":{"const":"v1"},"openapi":{"type":"string","pattern":"^https://"},"documentation":{"type":"string","pattern":"^https://"},"endpoints":{"type":"array","items":{"type":"string"}}}}}}}