{"ok":true,"site":"finlex","host":"finlex.fi","about":"Finlex, the Finnish government's free legal database (statutes, Statute Book, translations and Supreme Court case law). This CLI searches all datasets, lists Statute Book entries and Supreme Court precedents, and fetches statute, translation and precedent detail pages and translation PDFs.","commands":[{"command":"search","summary":"Keyword search across all Finlex data (legislation, government proposals, treaties, case law, officials). Returns hit count, category counts and hits as a Next.js server-action text stream.","params":[{"name":"search","type":"string","required":true,"description":"Search words, e.g. 'employment contract'"},{"name":"page","type":"number","description":"Result page number, starting at 1","default":1},{"name":"api_limit","type":"number","description":"Results per page. The UI offers 10, 20 or 50. Use 0 to get only the total and per-category counts.","default":20},{"name":"sort","type":"string","description":"Sort order","oneOf":["relevance","newestFirst","oldestFirst"],"default":"relevance"}],"exampleUrl":"https://clify-dev.netlify.app/finlex/search"},{"command":"list-latest-statutes","summary":"List the latest statutes published in the Statute Book, as shown on the Finlex home page.","params":[],"exampleUrl":"https://clify-dev.netlify.app/finlex/list-latest-statutes"},{"command":"get-statute","summary":"Get a statute by number and year, e.g. 55/2001 (Employment Contracts Act). Returns the title and statute text.","params":[{"name":"year","type":"number","required":true,"description":"Statute year, e.g. 2001"},{"name":"number","type":"string","required":true,"description":"Statute number within the year, e.g. 55. Some numbers have a suffix, e.g. 39-001 for the Criminal Code (1889)."}],"exampleUrl":"https://clify-dev.netlify.app/finlex/get-statute"},{"command":"get-statute-translation","summary":"Get the English translation page of a statute by year and number, including the translation PDF link.","params":[{"name":"year","type":"number","required":true,"description":"Statute year, e.g. 2001"},{"name":"number","type":"string","required":true,"description":"Statute number within the year, e.g. 55"}],"exampleUrl":"https://clify-dev.netlify.app/finlex/get-statute-translation"},{"command":"list-supreme-court-collections","summary":"List the Supreme Court material collections (precedents, rulings other than precedents, etc.) with last-update dates.","params":[],"exampleUrl":"https://clify-dev.netlify.app/finlex/list-supreme-court-collections"},{"command":"list-latest-precedents","summary":"List the latest Supreme Court precedents (KKO).","params":[],"exampleUrl":"https://clify-dev.netlify.app/finlex/list-latest-precedents"},{"command":"get-precedent","summary":"Get the full text of a Supreme Court precedent by year and number, e.g. KKO 2026:74.","params":[{"name":"year","type":"number","required":true,"description":"Precedent year, e.g. 2026"},{"name":"number","type":"number","required":true,"description":"Precedent number within the year, e.g. 74"}],"exampleUrl":"https://clify-dev.netlify.app/finlex/get-precedent"}]}