{"openapi":"3.1.0","info":{"title":"Legislations API","version":"1.0.0","description":"Tech, AI and data legislation worldwide: bills and their stage, votes, enacted laws, executive orders, resolutions, treaties and court rulings, growing as measures move. Refreshed daily at 13:40 UTC, with a second pass on weekday evenings at 23:40 UTC for U.S. floor action and the day’s EU and UK votes. Summaries of public legislative records, executive actions and court rulings, for reference, not legal advice. Check the official page linked on each item. Cached public JSON, no key, CORS open."},"servers":[{"url":"https://legislations.fru.dev"}],"paths":{"/api/items":{"get":{"summary":"Items, newest action first","parameters":[{"name":"jurisdiction","in":"query","required":false,"description":"us (federal), us-<state>, us-dc, eu, un, african-union, coe, a lowercase ISO 3166-1 alpha-2 code, or us-states","schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"description":"Kind of item","schema":{"type":"string","enum":["bill","law","executive-order","resolution","treaty","ruling","hearing","strategy","proposal"]}},{"name":"stage","in":"query","required":false,"description":"Stage, or moving for anything still open","schema":{"type":"string","enum":["proposed","introduced","in-committee","passed-one-chamber","passed-both","enacted","in-force","vetoed","failed","withdrawn","adopted","ruled","moving"]}},{"name":"topic","in":"query","required":false,"description":"Topic","schema":{"type":"string","enum":["ai","privacy","data","cybersecurity","online-safety","deepfakes","elections","biometrics","employment","chips","datacenters","telecom","platforms","government-ai","copyright","crypto"]}},{"name":"group","in":"query","required":false,"description":"us-federal, us-states, europe, global, americas, asia-pacific, africa-middle-east","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Last action on or after this day (YYYY-MM-DD)","schema":{"type":"string"}},{"name":"q","in":"query","required":false,"description":"Words in the title, number, summary or body","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Max 500","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"description":"Paging offset","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/items/{id}":{"get":{"summary":"One item with its action timeline and change log","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/watch":{"get":{"summary":"Closest to law","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/jurisdictions":{"get":{"summary":"Jurisdictions with counts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/changes":{"get":{"summary":"Append-only change log","parameters":[{"name":"since","in":"query","required":false,"description":"ISO time","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Max 500","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/sources":{"get":{"summary":"The sources table","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/search":{"get":{"summary":"Search","parameters":[{"name":"q","in":"query","required":false,"description":"Query","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Max 20","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/health":{"get":{"summary":"Freshness: lastUpdated and lastRun","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}