{"id":"lovdata","name":"Lovdata public data","description":"Norwegian laws, central regulations, sections and Supreme Court case law.","documentation":"https://api.lovdata.no/","operations":[{"name":"search_rules","description":"Search Norwegian laws and central regulations currently in force.","parameters":[{"name":"query","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"Words that must all match (case-insensitive), e.g. \"straffeloven\" or \"krav byggverk\". Matches title/short title/id; with full_text=True the whole document text is searched instead (slower, a few seconds)."},{"name":"source","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"Optional filter: \"lov\" (laws) or \"forskrift\" (central regulations)."},{"name":"full_text","type":"boolean","schema":{"type":"boolean"},"display_type":"yes/no","required":false,"default":false,"description":"Search inside the document texts, not just titles."},{"name":"limit","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":20,"description":"Max hits to return."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_rules?query={query}&source={source}&full_text=false&limit=20&offset=0","output_fields":["data_updated","total","hits","hint"],"output_fields_truncated":false,"canonical_field_aliases":{},"description_language":"en","documentation":"Search Norwegian laws and central regulations currently in force.\n\nArgs:\n    query: Words that must all match (case-insensitive), e.g. \"straffeloven\"\n        or \"krav byggverk\". Matches title/short title/id; with full_text=True\n        the whole document text is searched instead (slower, a few seconds).\n    source: Optional filter: \"lov\" (laws) or \"forskrift\" (central regulations).\n    full_text: Search inside the document texts, not just titles.\n    limit: Max hits to return.\n\nReturns matching rules with ref_id for get_rule()/get_section().","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/lovdata/search_rules/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/lovdata/search_rules/?query={query}&source={source}&full_text=false&limit=20&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_rules","response_schema":{"type":"object","properties":{"data_updated":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"total":{"type":"integer"},"hits":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"hint":{"type":"string"}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["legal_document"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_rules/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_rules","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_rules?query={query}&source={source}&full_text=false&limit=20&offset=0"},{"name":"get_rule","description":"Get one law or regulation: metadata plus its list of sections.","parameters":[{"name":"ref_id","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"Lovdata id from search_rules, e.g. \"lov/2005-05-20-28\" or \"forskrift/2017-06-19-840\"."},{"name":"full_text","type":"boolean","schema":{"type":"boolean"},"display_type":"yes/no","required":false,"default":false,"description":"Also include the complete document as plain text. Prefer get_section() for large laws."},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_rule?ref_id={ref_id}&full_text=false&limit=25&offset=0","output_fields":["sections","sections[].section","sections[].title","text"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["sections[].title"]},"description_language":"en","documentation":"Get one law or regulation: metadata plus its list of sections.\n\nArgs:\n    ref_id: Lovdata id from search_rules, e.g. \"lov/2005-05-20-28\" or\n        \"forskrift/2017-06-19-840\".\n    full_text: Also include the complete document as plain text. Prefer\n        get_section() for large laws.\n\nPass a listed section id to get_section() to read a single provision.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/lovdata/get_rule/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/lovdata/get_rule/?ref_id={ref_id}&full_text=false&limit=25&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_rule","response_schema":{"type":"object","properties":{"sections":{"type":"array","items":{"type":"object","properties":{"section":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"text":{"type":"string"}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["legal_document"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_rule/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_rule","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_rule?ref_id={ref_id}&full_text=false&limit=25&offset=0"},{"name":"get_section","description":"Get the text of a single section (paragraf) of a law or regulation.","parameters":[{"name":"ref_id","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"Lovdata id from search_rules, e.g. \"lov/2005-05-20-28\"."},{"name":"section","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"Section id as listed by get_rule, e.g. \"\u00a74\", \"\u00a7 10-2\" or \"b5/k1/a1\" (spaces are ignored; \"4\" means \"\u00a74\")."},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_section?ref_id={ref_id}&section={section}&limit=25&offset=0","output_fields":["ref_id","title","section","text"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["title"]},"description_language":"en","documentation":"Get the text of a single section (paragraf) of a law or regulation.\n\nArgs:\n    ref_id: Lovdata id from search_rules, e.g. \"lov/2005-05-20-28\".\n    section: Section id as listed by get_rule, e.g. \"\u00a74\", \"\u00a7 10-2\" or\n        \"b5/k1/a1\" (spaces are ignored; \"4\" means \"\u00a74\").","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/lovdata/get_section/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/lovdata/get_section/?ref_id={ref_id}&section={section}&limit=25&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_section","response_schema":{"type":"object","properties":{"ref_id":{"type":["string","null"]},"title":{"type":["string","null"]},"section":{"anyOf":[{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},{"type":"string"}]},"text":{"type":"string"}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["legal_document"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_section/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_section","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_section?ref_id={ref_id}&section={section}&limit=25&offset=0"},{"name":"search_case_law","description":"Free-text search in Norwegian Supreme Court (H\u00f8yesterett) decisions.","parameters":[{"name":"query","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"Search words, e.g. \"uf\u00f8retrygd virkningstidspunkt\"."},{"name":"limit","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":10,"description":"Max hits to return."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_case_law?query={query}&limit=10&offset=0","output_fields":["query","hits","hits[].title","hits[].hr_number","hits[].excerpt","hits[].published","hits[].url"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["hits[].title"]},"description_language":"en","documentation":"Free-text search in Norwegian Supreme Court (H\u00f8yesterett) decisions.\n\nSearches domstol.no's published decisions (2000-present). Matches the\npublished summaries and titles, not the full decision PDFs. Lower courts\n(lagmannsrett/tingrett) do not publish open case law and are not covered.\n\nArgs:\n    query: Search words, e.g. \"uf\u00f8retrygd virkningstidspunkt\".\n    limit: Max hits to return.\n\nPass a hit's url or hr_number to get_case_law() for the full summary.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/lovdata/search_case_law/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/lovdata/search_case_law/?query={query}&limit=10&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_case_law","response_schema":{"type":"object","properties":{"query":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"hits":{"type":"array","items":{"anyOf":[{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},{"type":"object","properties":{"title":{"type":"string"},"hr_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"excerpt":{"type":"string"},"published":{"type":"boolean"},"url":{"type":["string","null"],"format":"uri"}},"additionalProperties":false}]}}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["legal_document"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_case_law/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_case_law","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/search_case_law?query={query}&limit=10&offset=0"},{"name":"list_case_law","description":"List Norwegian Supreme Court (H\u00f8yesterett) decisions for one year.","parameters":[{"name":"year","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":true,"default":null,"description":"2000 or later."},{"name":"category","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"display_type":"string","required":false,"default":null,"description":"Optional substring filter on the category name, e.g. \"sivil\", \"straff\", \"ankeutvalg\" or \"prosessuelle\". Note \"straff\" also matches \"H\u00f8yesteretts ankeutvalg - straff\". (Older years use \"kj\u00e6rem\u00e5lsutvalg\" instead of \"ankeutvalg\".)"},{"name":"limit","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":50,"description":"Max decisions to return (default 50)."},{"name":"offset","type":"integer","schema":{"type":"integer"},"display_type":"integer","required":false,"default":0,"description":"Skip this many matching decisions (for paging, default 0)."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/list_case_law?year={year}&category={category}&limit=50&offset=0","output_fields":["year","categories","total","offset","returned","decisions","decisions.title","decisions.hr_number","decisions.published","decisions.category","decisions.url","note"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["decisions.title"]},"description_language":"en","documentation":"List Norwegian Supreme Court (H\u00f8yesterett) decisions for one year.\n\nPaged: the response has `total` matching decisions and returns at most\n`limit` from `offset`; a `note` says which offset fetches the next page\nwhen there is one. Each row is a title, hr_number, published date,\ncategory and url only.\n\nArgs:\n    year: 2000 or later.\n    category: Optional substring filter on the category name, e.g.\n        \"sivil\", \"straff\", \"ankeutvalg\" or \"prosessuelle\". Note \"straff\"\n        also matches \"H\u00f8yesteretts ankeutvalg - straff\". (Older years use\n        \"kj\u00e6rem\u00e5lsutvalg\" instead of \"ankeutvalg\".)\n    limit: Max decisions to return (default 50).\n    offset: Skip this many matching decisions (for paging, default 0).\n\nPass a decision's url or hr_number to get_case_law() for its summary,\nmetadata and PDF.","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/lovdata/list_case_law/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/lovdata/list_case_law/?year={year}&category={category}&limit=50&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/list_case_law","response_schema":{"type":"object","properties":{"year":{"type":["integer","null"]},"categories":{"type":"array","items":{"type":"string"}},"total":{"type":"integer"},"offset":{"type":["integer","null"]},"returned":{"type":"integer"},"decisions":{"type":"object","properties":{"title":{"type":"string"},"hr_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"published":{"type":"boolean"},"category":{"x-allemannsdata-schema-status":"unresolved","description":"Response shape is not yet declared; any JSON value is permitted."},"url":{"type":["string","null"],"format":"uri"}},"additionalProperties":false},"note":{"type":"string"}},"additionalProperties":false},"response_schema_status":{"status":"incomplete","codegen_safe":false,"description":"Not suitable for typed model generation: the container shape and field names are useful, but unresolved values accept any JSON value."},"entity_projection":{"status":"projected","entity_types":["legal_document"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/list_case_law/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/list_case_law","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/list_case_law?year={year}&category={category}&limit=50&offset=0"},{"name":"get_case_law","description":"Get one H\u00f8yesterett decision: summary, metadata and PDF link.","parameters":[{"name":"ref","type":"string","schema":{"type":"string"},"display_type":"string","required":true,"default":null,"description":"An HR number like \"HR-2026-1431-A\", or a decision url from search_case_law()/list_case_law()."},{"name":"full_text","type":"boolean","schema":{"type":"boolean"},"display_type":"yes/no","required":false,"default":false,"description":"Also download the decision PDF and include its extracted text (recent years only; older decisions have no PDF)."},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"display_type":"integer","required":false,"default":25,"description":"Maximum list items returned by the gateway (default 25, maximum 100)."},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_case_law?ref={ref}&full_text=false&limit=25&offset=0","output_fields":["title","hr_number","published","url","case_intro","summary","pdf_url","full_text","note"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["title"]},"description_language":"en","documentation":"Get one H\u00f8yesterett decision: summary, metadata and PDF link.\n\nThe summary includes Rettsomr\u00e5de (area of law), N\u00f8kkelavsnitt (key\nparagraphs) and Dommere (justices) where domstol.no provides them.\n\nArgs:\n    ref: An HR number like \"HR-2026-1431-A\", or a decision url from\n        search_case_law()/list_case_law().\n    full_text: Also download the decision PDF and include its extracted\n        text (recent years only; older decisions have no PDF).","documentation_language":"en","wiki_get_endpoint":"https://allemannsdata.com/wiki/kilder/lovdata/get_case_law/","wiki_get_url_template":"https://allemannsdata.com/wiki/kilder/lovdata/get_case_law/?ref={ref}&full_text=false&limit=25&offset=0","json_endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_case_law","response_schema":{"type":"object","properties":{"title":{"type":"string"},"hr_number":{"anyOf":[{"type":"string"},{"type":"null"}]},"published":{"type":"boolean"},"url":{"type":["string","null"],"format":"uri"},"case_intro":{"type":"string"},"summary":{"type":"string"},"pdf_url":{"anyOf":[{"type":["string","null"],"format":"uri"},{"type":"null"}]},"full_text":{"type":"string"},"note":{"type":"string"}},"additionalProperties":false},"response_schema_status":{"status":"inferred","codegen_safe":true,"description":"Safe for code generation from the currently published fields. The contract is statically inferred rather than independently maintained, so clients should tolerate additional fields."},"entity_projection":{"status":"projected","entity_types":["legal_document"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"response_schema_url":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_case_law/schema","endpoint":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_case_law","get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/get_case_law?ref={ref}&full_text=false&limit=25&offset=0"}],"operation_schema_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata/{operation}/schema","related_sources":[{"id":"stortinget","name":"Stortinget open data","reason":"Parliamentary cases, votes and representatives behind legislation.","api":"https://allemannsdata.com/wiki/api/v1/kilder/stortinget","wiki":"https://allemannsdata.com/wiki/kilder/stortinget/"}],"_meta":{"retrieved_at":"2026-08-02T14:01:15Z","language":"en","content_languages":["en"],"sources":[{"id":"lovdata","name":"Lovdata public data","description":"Norwegian laws, central regulations, sections and Supreme Court case law.","documentation":"https://api.lovdata.no/","cache_ttl_seconds":300}]},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata","names":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata?view=names","compact":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata?view=compact","full":"https://allemannsdata.com/wiki/api/v1/kilder/lovdata","wiki":"https://allemannsdata.com/wiki/kilder/lovdata/"}}
