{"openapi":"3.1.0","info":{"title":"LovAPI","description":"LovAPI gives programmatic lookup and search access to Danish law, sourced from [Retsinformation](https://retsinformation.dk).\n\nDocument endpoints identify and describe documents. Search returns matched passages of text with their document's metadata. The Corpus section explains what the documents are and what each part of the API covers.\n\nLovAPI is operated by [Alkvantor Intelligence ApS](https://alkvantor.com) (CVR 45021467). Rate limits, quotas and pricing are described on [https://lovapi.dk](https://lovapi.dk).\n\nNeed help? We're happy to help you out and improve the service too. Write to [support@lovapi.dk](mailto:support@lovapi.dk).\n\n## Documentation\n\nThis reference is available in three forms:\n\n- [https://api.lovapi.dk/v1/redoc](https://api.lovapi.dk/v1/redoc): one readable page.\n- [https://api.lovapi.dk/v1/docs](https://api.lovapi.dk/v1/docs): interactive. Authorize with your key and send requests from the page. These are real requests and count against your limits.\n- [https://api.lovapi.dk/v1/openapi.json](https://api.lovapi.dk/v1/openapi.json): the machine-readable OpenAPI schema, for client generators, AI agents and tools such as Postman.\n\n## Stability\n\nWe are committed to keeping `/v1` stable. Changes are only ever additions, such as new endpoints, parameters, response fields or error codes, so an integration that works today keeps working. Write your client to ignore fields and values it does not recognize.\n\nBreaking changes, if they come, will be released as a new API version, and this version will stay available.\n\n## Corpus\n\nThe corpus is the documents published on Retsinformation: laws, statutory orders, circulars, guidance, decisions and more. Each document has its own accession number, which is a letter followed by 11 digits, e.g. `A20250903516`. The leading letter is the document's class, which can be used as a lookup and search filter.\n\n| Class | Documents |\n|---|---|\n| A | Laws (love) |\n| B | Statutory orders (bekendtgørelser) |\n| C | Guidance documents (circulærer, vejledninger) |\n| L | Statutory orders promulgating international agreements |\n| O | Ombudsman case reports, inspections and follow-ups |\n| U | Court decisions |\n| W | Decisions of boards and tribunals (kendelser) |\n| X | Binding tax-law answers (bindende svar) |\n| Y | Statements of opinion (udtalelser) |\n\nThe publishing of legal data follows the conventions of print: once published, a document is generally not changed. Instead, a change is made by publishing a new document, an amending document, whose content is instructions for changing other documents, such as \"in § 5, stk. 2, 'X' is replaced by 'Y'\". A law is amended by a new law passed by parliament, and a statutory order by a new statutory order. Amending documents therefore sit in the same classes as the documents they change.\n\nLater, a consolidated document may be published, combining the original with its amendments under a new accession number, and the older document is marked historical.\n\nA document is marked historical (`is_historical`) for one of two main reasons: a newer document has replaced it, or it has been repealed. Its `related_documents` usually points to the replacing or repealing document, as a `consolidated_by` or `changed_by` relation entry. Be aware that the historical flag is a publication status, not a statement about legal effect. A historical document may still apply, and a current one may not have taken effect yet.\n\n- **Search** covers current documents only, meaning those not marked historical, in an index refreshed daily. A hit is not a whole document but one meaningful unit of its text, returned in full: a paragraph (§) of a law or statutory order, a named section of a guidance document, or an appendix. Documents without such structure are returned as one unit, their whole text or their resumé. What amending documents did to the text appears as `amendments`, never merged into the text itself, and the source's footnotes appear as `notes`, apart from the text.\n- **Documents** endpoints cover all documents, historical and amending documents included.\n\n## Authentication\n\nSend `Authorization: Bearer <key>` with every request. Keys are issued by LovAPI and belong to your account.\n\n## Limits\n\nYour account has a per-minute and a daily limit, shared by all your keys. Responses carry `RateLimit-*` headers with your remaining requests, so you can throttle before you hit a 429. The Account section has the details.\n\n## Errors\n\n| `code` | Status | Meaning | Retry |\n|---|---|---|---|\n| `unauthorized` | 401 | Key missing, unknown, expired, or not a Bearer token | No |\n| `validation_failed` | 422 | A parameter is invalid; `errors` names it | No |\n| `not_found` | 404 | No such document, or no such part of it | No |\n| `method_not_allowed` | 405 | Only `GET` is served | No |\n| `burst` | 429 | Per-minute limit reached | After `Retry-After` |\n| `daily_quota` | 429 | Daily limit reached | After midnight UTC |\n| `internal_error` | 500 | Unexpected server error | Yes, with backoff |\n| `upstream_failure` | 502 | A backing service is unavailable | Yes, with backoff |\n| `busy` | 503 | Semantic search is at capacity | After `Retry-After` |\n\n## Quickstart\n\nThe base URL is `https://api.lovapi.dk/v1`; every path on this page is relative to it. Check your key first; a 200 confirms it:\n\n```\ncurl -H \"Authorization: Bearer $LOVAPI_KEY\" \"https://api.lovapi.dk/v1/account\"\n```\n\nThen a first search:\n\n```\ncurl -G https://api.lovapi.dk/v1/search/lexical \\\n  -H \"Authorization: Bearer $LOVAPI_KEY\" \\\n  --data-urlencode \"query=hastighedsgrænse motorvej\" \\\n  -d limit=3\n```\n\nA typical integration:\n\n1. Find documents by name and get their accession numbers: `GET /documents/discover?title=lejeloven`.\n2. Read a document's metadata and relations: `GET /documents/{accession_number}`.\n3. Read the text, whole or one part: `GET /documents/{accession_number}/outline`, then `GET /documents/{accession_number}/markdown?paragraph=11`.\n4. Search the text, optionally scoped to your documents: `GET /search/lexical` or `GET /search/semantic`.\n5. Keep your document list current: `GET /documents/changes/{date}`, once per day.","version":"1.0.0"},"paths":{"/account":{"get":{"tags":["Account"],"summary":"Get account limits","description":"Get your account's limits and usage.\n\nA 200 confirms that your key works; the request does not depend\non search or the document registry. It counts against your limits\nlike any other request.","operationId":"getAccount","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"},"example":{"limits":{"per_minute":{"limit":10,"remaining":9,"reset":50},"per_day":{"limit":1000,"remaining":812,"reset":49310}}}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}}},"security":[{"HTTPBearer":[]}]}},"/search/lexical":{"get":{"tags":["Search"],"summary":"Lexical search","description":"Search the corpus by keyword matching.\n\nA hit is one passage of a document, usually a paragraph or a\nsection. A document without such structure is returned whole, or\nas its resumé.\n\nThe scope filters combine: a hit must satisfy\n`accession_number`, `accession_class` and\n`exclude_accession_number` together. An in-scope document with\nno matching text contributes no hits. Exclusion is applied\ninside the query, so excluded documents never leave gaps in a\npage.\n\nEach hit's `amendments` lists what later amending\ndocuments did to the matched text. The changes are never merged\ninto the text itself.\n\nFootnote text is searched along with the passage, so a hit can\nmatch on its `notes` rather than its `content`.\n\nIf the document registry is unavailable, the search still\nanswers 200, with `title`, `popular_title` and `short_title`\nnull on every hit.\n\n`score` orders the hits, highest first. It is a raw relevance\nvalue, not comparable across queries.","operationId":"searchLexical","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"description":"The search text: 1 to 512 characters after trimming whitespace.","title":"Query"},"description":"The search text: 1 to 512 characters after trimming whitespace.","example":"hastighedsgrænse motorvej"},{"name":"accession_number","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Restrict the scope to these documents. Repeatable, up to 100 values. Each value is an accession number (a letter followed by 11 digits, any casing); another shape is a 422. An unknown accession number is not an error: it matches nothing.","title":"Accession Number"},"description":"Restrict the scope to these documents. Repeatable, up to 100 values. Each value is an accession number (a letter followed by 11 digits, any casing); another shape is a 422. An unknown accession number is not an error: it matches nothing."},{"name":"accession_class","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":26,"description":"Restrict the scope to these series classes, the leading letter of the accession number. Repeatable, up to 26 values, any casing. A value that is not a single letter is a 422; a letter with no documents matches nothing.\n\nThe series classes the corpus carries today:\n\n| Class | Documents |\n|---|---|\n| A | Laws (love) |\n| B | Statutory orders (bekendtgørelser) |\n| C | Guidance documents (circulærer, vejledninger) |\n| L | Statutory orders promulgating international agreements |\n| O | Ombudsman case reports, inspections and follow-ups |\n| U | Court decisions |\n| W | Decisions of boards and tribunals (kendelser) |\n| X | Binding tax-law answers (bindende svar) |\n| Y | Statements of opinion (udtalelser) |","title":"Accession Class"},"description":"Restrict the scope to these series classes, the leading letter of the accession number. Repeatable, up to 26 values, any casing. A value that is not a single letter is a 422; a letter with no documents matches nothing.\n\nThe series classes the corpus carries today:\n\n| Class | Documents |\n|---|---|\n| A | Laws (love) |\n| B | Statutory orders (bekendtgørelser) |\n| C | Guidance documents (circulærer, vejledninger) |\n| L | Statutory orders promulgating international agreements |\n| O | Ombudsman case reports, inspections and follow-ups |\n| U | Court decisions |\n| W | Decisions of boards and tribunals (kendelser) |\n| X | Binding tax-law answers (bindende svar) |\n| Y | Statements of opinion (udtalelser) |"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of hits, 1 to 100.","default":10,"title":"Limit"},"description":"Maximum number of hits, 1 to 100."},{"name":"exclude_accession_number","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Remove these documents from the scope. Repeatable, up to 100 values, in the same format as `accession_number`; an unknown accession number removes nothing. Works on its own (search everything except these documents). A number given in both `accession_number` and `exclude_accession_number` is a 422.","title":"Exclude Accession Number"},"description":"Remove these documents from the scope. Repeatable, up to 100 values, in the same format as `accession_number`; an unknown accession number removes nothing. Works on its own (search everything except these documents). A number given in both `accession_number` and `exclude_accession_number` is a 422."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"},"example":{"query":"hastighedsgrænse motorvej","count":3,"hits":[{"accession_number":"B20220000305","title":"Bekendtgørelse om lokale hastighedsgrænser","popular_title":"Hastighedsbekendtgørelsen","short_title":"BEK nr 3 af 03/01/2022","location":{"volume":null,"part":null,"chapter":null,"heading":"Lavere hastighedsgrænse","paragraph":"9","appendix":null},"url":"https://www.retsinformation.dk/eli/accn/B20220000305#P9","content":["På motortrafikveje og på motorveje kan en lavere hastighedsgrænse end den generelle i særlige tilfælde fastsættes ned til 30 km i timen. Dette kan ske ved motorvejens eller motortrafikvejens tilslutning til det almindelige vejnet, eller hvis særlige trafiksikkerhedsmæssige hensyn taler herfor.\n  Stk. 2. På motortrafikveje og motorveje gennem tættere bymæssig bebyggelse og andre støjfølsomme områder kan en lavere hastighedsgrænse end den generelle i særlige tilfælde fastsættes ned til 60 km i timen alene af hensyn til at nedbringe støjniveauet."],"notes":[],"amendments":[],"score":11.850555},{"accession_number":"A20260011829","title":"Bekendtgørelse af færdselsloven","popular_title":"Færdselsloven","short_title":"LBK nr 118 af 12/01/2026","location":{"volume":null,"part":null,"chapter":{"name":"Kapitel 5","title":"Hastighed"},"heading":"Generelle hastighedsbegrænsninger","paragraph":"42","appendix":null},"url":"https://www.retsinformation.dk/eli/accn/A20260011829#P42","content":["På andre veje end motorveje og motortrafikveje må køretøjers hastighed ikke overstige følgende grænser:\n    1) i tættere bebygget område: 50 km i timen,\n    2) uden for tættere bebygget område: 80 km i timen.\n  Stk. 2. På motorveje må hastigheden ikke overstige 130 km i timen.\n  Stk. 3. På motortrafikveje må hastigheden ikke overstige 80 km i timen.\n  Stk. 4. For en vejstrækning kan der fastsættes en højere hastighedsgrænse end den generelle hastighedsgrænse, såfremt omstændighederne, herunder trafikafviklingen, tilsiger det, og afgørende færdselssikkerhedsmæssige hensyn ikke taler derimod. På motortrafikveje og motorveje må hastigheden dog ikke overstige henholdsvis 100 km i timen og 130 km i timen.\n  Stk. 5. For en vejstrækning, hvor det ikke vil være forsvarligt eller ønskeligt at tillade kørsel med hastigheder svarende til den generelle hastighedsgrænse eller en særlig hastighedsbegrænsning fastsat i medfør af § 43, kan der fastsættes en lavere grænse. I tættere bebygget område kan der på tilsvarende måde fastsættes en lavere hastighedsgrænse for et nærmere afgrænset område. Tilsvarende gælder uden for tættere bebygget område, hvor der for et nærmere afgrænset område kan fastsættes en lavere hastighedsgrænse, når området særlig egner sig hertil."],"notes":[],"amendments":[],"score":11.296811},{"accession_number":"B20220000305","title":"Bekendtgørelse om lokale hastighedsgrænser","popular_title":"Hastighedsbekendtgørelsen","short_title":"BEK nr 3 af 03/01/2022","location":{"volume":null,"part":null,"chapter":null,"heading":"Højere hastighedsgrænse","paragraph":"5","appendix":null},"url":"https://www.retsinformation.dk/eli/accn/B20220000305#P5","content":["På motorveje kan der ikke fastsættes en højere hastighedsgrænse end den generelle."],"notes":[],"amendments":[],"score":11.291719}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"502":{"description":"The search index is unavailable. Retry later. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"Search backend is unavailable. Try again later.","code":"upstream_failure"}}}}}}},"/search/semantic":{"get":{"tags":["Search"],"summary":"Semantic search","description":"Search the corpus by meaning.\n\nThe query is embedded as a vector and passages are ranked by\ncosine similarity to it, so hits can match synonyms and\nparaphrases, not only the literal terms.\n\nA hit is one passage of a document, usually a paragraph or a\nsection. A document without such structure is returned whole, or\nas its resumé.\n\nThe scope filters combine: a hit must satisfy\n`accession_number`, `accession_class` and\n`exclude_accession_number` together. Filters apply before\nranking, so a scoped request returns the closest passages within\nthe scope, even for an off-topic query, and one document can\nfill the page.\n\nEach hit's `amendments` lists what later amending\ndocuments did to the matched text. The changes are never merged\ninto the text itself.\n\nFootnote text is searched along with the passage, so a hit can\nmatch on its `notes` rather than its `content`.\n\nIf the document registry is unavailable, the search still\nanswers 200, with `title`, `popular_title` and `short_title`\nnull on every hit.\n\n`score` is (1 + cosine) / 2: between 0 and 1, higher is closer.\n1.0 is an identical vector and 0.5 is unrelated (orthogonal)\ntext; real text typically scores well above 0.5. It is not\ncomparable across queries or with lexical scores.","operationId":"searchSemantic","security":[{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":512,"description":"The search text: 1 to 512 characters after trimming whitespace.","title":"Query"},"description":"The search text: 1 to 512 characters after trimming whitespace.","example":"hvor hurtigt må man køre på motorvejen?"},{"name":"accession_number","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Restrict the scope to these documents. Repeatable, up to 100 values. Each value is an accession number (a letter followed by 11 digits, any casing); another shape is a 422. An unknown accession number is not an error: it matches nothing.","title":"Accession Number"},"description":"Restrict the scope to these documents. Repeatable, up to 100 values. Each value is an accession number (a letter followed by 11 digits, any casing); another shape is a 422. An unknown accession number is not an error: it matches nothing."},{"name":"accession_class","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":26,"description":"Restrict the scope to these series classes, the leading letter of the accession number. Repeatable, up to 26 values, any casing. A value that is not a single letter is a 422; a letter with no documents matches nothing.\n\nThe series classes the corpus carries today:\n\n| Class | Documents |\n|---|---|\n| A | Laws (love) |\n| B | Statutory orders (bekendtgørelser) |\n| C | Guidance documents (circulærer, vejledninger) |\n| L | Statutory orders promulgating international agreements |\n| O | Ombudsman case reports, inspections and follow-ups |\n| U | Court decisions |\n| W | Decisions of boards and tribunals (kendelser) |\n| X | Binding tax-law answers (bindende svar) |\n| Y | Statements of opinion (udtalelser) |","title":"Accession Class"},"description":"Restrict the scope to these series classes, the leading letter of the accession number. Repeatable, up to 26 values, any casing. A value that is not a single letter is a 422; a letter with no documents matches nothing.\n\nThe series classes the corpus carries today:\n\n| Class | Documents |\n|---|---|\n| A | Laws (love) |\n| B | Statutory orders (bekendtgørelser) |\n| C | Guidance documents (circulærer, vejledninger) |\n| L | Statutory orders promulgating international agreements |\n| O | Ombudsman case reports, inspections and follow-ups |\n| U | Court decisions |\n| W | Decisions of boards and tribunals (kendelser) |\n| X | Binding tax-law answers (bindende svar) |\n| Y | Statements of opinion (udtalelser) |"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of hits, 1 to 100.","default":10,"title":"Limit"},"description":"Maximum number of hits, 1 to 100."},{"name":"exclude_accession_number","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":100,"description":"Remove these documents from the scope. Repeatable, up to 100 values, in the same format as `accession_number`; an unknown accession number removes nothing. Works on its own (search everything except these documents). A number given in both `accession_number` and `exclude_accession_number` is a 422.","title":"Exclude Accession Number"},"description":"Remove these documents from the scope. Repeatable, up to 100 values, in the same format as `accession_number`; an unknown accession number removes nothing. Works on its own (search everything except these documents). A number given in both `accession_number` and `exclude_accession_number` is a 422."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"},"examples":{"semantic_search_example":{"summary":"A semantic search hit","value":{"query":"hvor hurtigt må man køre på motorvejen?","count":3,"hits":[{"accession_number":"A20260011829","title":"Bekendtgørelse af færdselsloven","popular_title":"Færdselsloven","short_title":"LBK nr 118 af 12/01/2026","location":{"volume":null,"part":null,"chapter":{"name":"Kapitel 6","title":"Særlige regler for færdsel på motorvej og motortrafikvej"},"heading":"Motorvej","paragraph":"44","appendix":null},"url":"https://www.retsinformation.dk/eli/accn/A20260011829#P44","content":["Færdsel på motorvej samt på tilkørsels- og frakørselsvej til en sådan vej må kun ske med motorkøretøjer, som på vandret vej kan og må fremføres med en hastighed af mindst 50 km i timen.\n  Stk. 2. Uanset stk. 1 kan politiet tillade kørsel med blokvogn, hvis en transport ikke med rimelighed kan gennemføres på anden måde.\n  Stk. 3. Uanset stk. 1 kan politiet tillade kørsel som led i erhvervsudøvelse fra nærmeste tilkørsel til nærmeste frakørsel på motorveje over faste forbindelser (broer og tunneler) med andre motordrevne køretøjer end de i stk. 1 og 2 nævnte, hvis kørslen ikke med rimelighed kan gennemføres på anden måde. Der kan ikke gives tilladelse til kørsel med knallert på de nævnte vejstrækninger.\n  Stk. 4. Transportministeren kan fastsætte regler om kørsel med motordrevne køretøjer på motorvej efter stk. 3. Transportministeren kan efter forhandling med justitsministeren fastsætte bestemmelser om betaling for politimæssig assistance, der efter politiets skøn er påkrævet ved gennemførelse af sådan kørsel."],"notes":[],"amendments":[],"score":0.9537001},{"accession_number":"A20260011829","title":"Bekendtgørelse af færdselsloven","popular_title":"Færdselsloven","short_title":"LBK nr 118 af 12/01/2026","location":{"volume":null,"part":null,"chapter":{"name":"Kapitel 5","title":"Hastighed"},"heading":"Generelle hastighedsbegrænsninger","paragraph":"42","appendix":null},"url":"https://www.retsinformation.dk/eli/accn/A20260011829#P42","content":["På andre veje end motorveje og motortrafikveje må køretøjers hastighed ikke overstige følgende grænser:\n    1) i tættere bebygget område: 50 km i timen,\n    2) uden for tættere bebygget område: 80 km i timen.\n  Stk. 2. På motorveje må hastigheden ikke overstige 130 km i timen.\n  Stk. 3. På motortrafikveje må hastigheden ikke overstige 80 km i timen.\n  Stk. 4. For en vejstrækning kan der fastsættes en højere hastighedsgrænse end den generelle hastighedsgrænse, såfremt omstændighederne, herunder trafikafviklingen, tilsiger det, og afgørende færdselssikkerhedsmæssige hensyn ikke taler derimod. På motortrafikveje og motorveje må hastigheden dog ikke overstige henholdsvis 100 km i timen og 130 km i timen.\n  Stk. 5. For en vejstrækning, hvor det ikke vil være forsvarligt eller ønskeligt at tillade kørsel med hastigheder svarende til den generelle hastighedsgrænse eller en særlig hastighedsbegrænsning fastsat i medfør af § 43, kan der fastsættes en lavere grænse. I tættere bebygget område kan der på tilsvarende måde fastsættes en lavere hastighedsgrænse for et nærmere afgrænset område. Tilsvarende gælder uden for tættere bebygget område, hvor der for et nærmere afgrænset område kan fastsættes en lavere hastighedsgrænse, når området særlig egner sig hertil."],"notes":[],"amendments":[],"score":0.95056796},{"accession_number":"B20180020105","title":"Bekendtgørelse om betingelser for Tempo 100-kørsel med campingbil","popular_title":null,"short_title":"BEK nr 201 af 12/03/2018","location":{"volume":null,"part":null,"chapter":null,"heading":"Tempo 100-kørsel","paragraph":"2","appendix":null},"url":"https://www.retsinformation.dk/eli/accn/B20180020105#P2","content":["Campingbiler, der opfylder betingelserne i denne bekendtgørelse, må køre med op til 100 km i timen på motorvej og op til 80 km i timen på andre veje end motorveje."],"notes":[],"amendments":[],"score":0.9481127}]}}}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"502":{"description":"The search index, or the service that embeds the query, is unavailable. Retry later. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"Search backend is unavailable. Try again later.","code":"upstream_failure"}}}},"503":{"description":"Semantic search is at capacity. Retry after `Retry-After` seconds. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Service Unavailable","status":503,"detail":"Semantic search is busy. Retry after the Retry-After seconds.","code":"busy"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}}}}}},"/documents/discover":{"get":{"tags":["Documents"],"summary":"Discover documents by name and attributes","description":"Find documents by name and attributes.\n\nGive a name guess (a title, citation or nickname, from your own\ncatalog or a user's input) and get back the candidate documents\nwith their accession numbers. Matching is substring matching\nafter normalization, never fuzzy, so the same request always\nreturns the same page for the same registry. When one of a\ncandidate's names equals `title` exactly, its `exact_match` is\ntrue.\n\nAll filters combine. With no filter, the request lists the whole\nregistry. Historical documents are included; to get only the\ncurrent consolidation of a law, add `is_historical=false` and\n`accession_class=A`.\n\nOrdering with `title`: exact matches first, then shorter\nmatching names before longer ones (`lejeloven` ranks\n`Lejeloven` and `Almenlejeloven` ahead of long titles containing\nthe word), then newest first. The ranking after the exact\nmatches may be improved. Without `title`, newest first.\n\nResults are paged with `limit`, `offset` and `total_count`. An\nempty `matches` list is a normal answer, not an error. To\nresolve a list of names, call once per name.","operationId":"discoverDocuments","security":[{"HTTPBearer":[]}],"parameters":[{"name":"title","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}],"description":"A name or name fragment, matched as a substring of the document's title, official citation or popular title. Both sides are normalized first (trim, collapse whitespace, casefold, NFC). 1 to 512 characters.","title":"Title"},"description":"A name or name fragment, matched as a substring of the document's title, official citation or popular title. Both sides are normalized first (trim, collapse whitespace, casefold, NFC). 1 to 512 characters.","example":"lejeloven"},{"name":"exclude","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":26,"description":"Drop documents where any of their names (title, official citation or popular title) contains any of these fragments, matched like `title`. For example, `exclude=lov om ændring` drops amending laws. Repeatable, up to 26 values, each 1 to 512 characters. A missing name never matches, so it never causes an exclusion.","title":"Exclude"},"description":"Drop documents where any of their names (title, official citation or popular title) contains any of these fragments, matched like `title`. For example, `exclude=lov om ændring` drops amending laws. Repeatable, up to 26 values, each 1 to 512 characters. A missing name never matches, so it never causes an exclusion."},{"name":"ministry","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":512},{"type":"null"}],"description":"A ministry name or fragment, matched like `title` against the registry's ministry names, historical and renamed variants included. Documents of every matching ministry are in scope; the names that matched are returned in `matched_ministries`. 1 to 512 characters.","title":"Ministry"},"description":"A ministry name or fragment, matched like `title` against the registry's ministry names, historical and renamed variants included. Documents of every matching ministry are in scope; the names that matched are returned in `matched_ministries`. 1 to 512 characters."},{"name":"is_historical","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"`true`: only historical documents. `false`: only current documents. Omit for both. Historical is a publication status, not a statement about legal effect, so `false` can exclude documents that still apply. Values are `true` and `false`, case-insensitive.","title":"Is Historical"},"description":"`true`: only historical documents. `false`: only current documents. Omit for both. Historical is a publication status, not a statement about legal effect, so `false` can exclude documents that still apply. Values are `true` and `false`, case-insensitive."},{"name":"accession_class","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"},"maxItems":26,"description":"Restrict the scope to these series classes, the leading letter of the accession number. Repeatable, up to 26 values, any casing. A value that is not a single letter is a 422; a letter with no documents matches nothing.\n\nThe series classes the corpus carries today:\n\n| Class | Documents |\n|---|---|\n| A | Laws (love) |\n| B | Statutory orders (bekendtgørelser) |\n| C | Guidance documents (circulærer, vejledninger) |\n| L | Statutory orders promulgating international agreements |\n| O | Ombudsman case reports, inspections and follow-ups |\n| U | Court decisions |\n| W | Decisions of boards and tribunals (kendelser) |\n| X | Binding tax-law answers (bindende svar) |\n| Y | Statements of opinion (udtalelser) |","title":"Accession Class"},"description":"Restrict the scope to these series classes, the leading letter of the accession number. Repeatable, up to 26 values, any casing. A value that is not a single letter is a 422; a letter with no documents matches nothing.\n\nThe series classes the corpus carries today:\n\n| Class | Documents |\n|---|---|\n| A | Laws (love) |\n| B | Statutory orders (bekendtgørelser) |\n| C | Guidance documents (circulærer, vejledninger) |\n| L | Statutory orders promulgating international agreements |\n| O | Ombudsman case reports, inspections and follow-ups |\n| U | Court decisions |\n| W | Decisions of boards and tribunals (kendelser) |\n| X | Binding tax-law answers (bindende svar) |\n| Y | Statements of opinion (udtalelser) |"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size: maximum number of matches, 1 to 500.","default":100,"title":"Limit"},"description":"Page size: maximum number of matches, 1 to 500."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of matches to skip. Page through results with `offset` and `total_count`.","default":0,"title":"Offset"},"description":"Number of matches to skip. Page through results with `offset` and `total_count`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverResponse"},"example":{"total_count":1,"offset":0,"limit":100,"matched_ministries":["Justitsministeriet"],"matches":[{"accession_number":"A20250129429","title":"Bekendtgørelse af straffeloven","short_title":"LBK nr 1294 af 07/11/2025","popular_title":"Straffeloven","url":"https://www.retsinformation.dk/eli/accn/A20250129429","ministry":"Justitsministeriet","administrative_authority":null,"publication_date":"2025-11-14","signature_date":"2025-11-07","is_historical":false,"historical_date":null,"exact_match":true}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"502":{"description":"The document registry is unavailable. Retry later. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"Document registry is unavailable. Try again later.","code":"upstream_failure"}}}}}}},"/documents/changes/{date}":{"get":{"tags":["Documents"],"summary":"Get daily document changes","description":"Get the documents that changed on one day.\n\nEach record names a document, why it changed (`reason`), and its\nregistry data as it stood when the changes were published. Check\nthe records against the accession numbers you track.\n\nThe changes for a date are published once, during that day's\nrefresh, and are immutable afterwards. Until that refresh has\nrun, the date answers 404. To stay current, keep the last date\nyou processed and fetch each date after it, up to today; a 404\nfor today means the refresh has not run yet, so try again later.\nA 200 with an empty `changes` list means the source reported no\nchanges that day.\n\n`RemovedDocument` records carry only the accession number,\n`reason` and `change_date`: the document has left the registry.\nLook up what was removed in your own records or an earlier day's\nfeed.","operationId":"getDocumentChanges","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date","in":"path","required":true,"schema":{"type":"string","format":"date","description":"The day, as `YYYY-MM-DD`.","title":"Date"},"description":"The day, as `YYYY-MM-DD`.","examples":{"day":{"summary":"A past day","value":"2026-01-24"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentChangesFeed"},"example":{"date":"2026-04-01","count":30,"changes":[{"accession_number":"C20251032809","reason":"RemovedDocument","change_date":"2026-03-31","title":null,"short_title":null,"popular_title":null,"publication_date":null,"is_historical":false,"historical_date":null},{"accession_number":"C20221045509","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Tilhold, opholdsforbud og bortvisning","short_title":"CIR1H nr 10455 af 01/01/2022","popular_title":null,"publication_date":"2023-02-17","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20240983109","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Seksualforbrydelser","short_title":"CIR1H nr 9831 af 01/07/2023","popular_title":null,"publication_date":"2024-10-04","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20180914560","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Vejledning om erstatning og godtgørelse til indsatte i kriminalforsorgens institutioner og til dømte og prøveløsladte under udførelse af samfundstjeneste for følger af ulykkestilfælde m.v.","short_title":"VEJ nr 9145 af 12/03/2018","popular_title":null,"publication_date":"2018-03-17","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20221026809","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Kvalitet og legalitet i straffesagsbehandlingen","short_title":"CIR1H nr 10268 af 25/11/2022","popular_title":null,"publication_date":"2022-11-26","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20180916309","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Taxikørsel","short_title":"CIR1H nr 9163 af 01/01/2018","popular_title":null,"publication_date":"2018-03-21","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20241033609","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Sanktionspåstande i våbensager","short_title":"CIR1H nr 10336 af 01/07/2024","popular_title":null,"publication_date":"2025-08-19","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20251033509","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Taxikørsel","short_title":"CIR1H nr 10335 af 18/12/2025","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20251033309","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Grundlovsforhør og varetægtsfængsling","short_title":"CIR1H nr 10333 af 16/12/2025","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20251033009","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Formueforbrydelser - de almindelige berigelsesforbrydelser","short_title":"CIR1H nr 10330 af 01/12/2025","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20251032909","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Tilhold, opholdsforbud og bortvisning","short_title":"CIR1H nr 10329 af 01/12/2025","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20251033109","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Seksualforbrydelser","short_title":"CIR1H nr 10331 af 01/12/2025","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20251033409","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Kvalitet og legalitet i straffesagsbehandlingen","short_title":"CIR1H nr 10334 af 19/12/2025","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20251033209","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Vejledning af forurettede mv.","short_title":"CIR1H nr 10332 af 05/12/2025","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20260935909","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Psykisk afvigende kriminelle","short_title":"CIR1H nr 9359 af 26/03/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20260936009","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Føreforbud for visse udlændinge","short_title":"CIR1H nr 9360 af 01/01/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20260936109","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Sanktionspåstande i våbensager","short_title":"CIR1H nr 9361 af 01/01/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"B20250133205","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Bekendtgørelse om normalhandelsværdier for heste og kreaturer mv.","short_title":"BEK nr 1332 af 20/11/2025","popular_title":null,"publication_date":"2025-11-22","is_historical":false,"historical_date":null},{"accession_number":"C20250940609","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Færdsel - Generelle retningslinjer for sanktionspåstande i færdselssager","short_title":"CIR1H nr 9406 af 29/04/2025","popular_title":null,"publication_date":"2025-05-14","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20250941109","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Vejledning af forurettede mv.","short_title":"CIR1H nr 9411 af 22/04/2025","popular_title":null,"publication_date":"2025-05-14","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"C20250905309","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Formueforbrydelser - de almindelige berigelsesforbrydelser","short_title":"CIR1H nr 9053 af 01/02/2025","popular_title":null,"publication_date":"2025-02-04","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"B20250157105","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Bekendtgørelse om regulering af fiskeriet","short_title":"BEK nr 1571 af 04/12/2025","popular_title":null,"publication_date":"2025-12-10","is_historical":false,"historical_date":null},{"accession_number":"C20251007509","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Psykisk afvigende kriminelle","short_title":"CIR1H nr 10075 af 01/04/2025","popular_title":null,"publication_date":"2025-11-11","is_historical":true,"historical_date":"2026-03-31"},{"accession_number":"B20260020005","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Bekendtgørelse om erstatning og godtgørelse til indsatte i institutioner under Danmarks Fængsler og til dømte og prøveløsladte under udførelse af samfundstjeneste for følger af ulykkestilfælde m.v.","short_title":"BEK nr 200 af 29/01/2026","popular_title":null,"publication_date":"2026-01-30","is_historical":false,"historical_date":null},{"accession_number":"B20260036905","reason":"DocumentMetadataChanged","change_date":"2026-04-01","title":"Bekendtgørelse om fund af højpatogen aviær influenza ved Otterup i Nordfyns Kommune","short_title":"BEK nr 369 af 07/03/2026","popular_title":null,"publication_date":"2026-03-07","is_historical":false,"historical_date":null},{"accession_number":"B20260041105","reason":"NewDocument","change_date":"2026-04-01","title":"Bekendtgørelse om ændring af bekendtgørelse om fund af højpatogen aviær influenza ved Otterup i Nordfyns Kommune","short_title":"BEK nr 411 af 31/03/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"B20260935605","reason":"NewDocument","change_date":"2026-04-01","title":"Straksregulering nr. 16 - 2026 Om vilkår gældende for tobisfiskeri i Nordsøen, Skagerrak og Kattegat fra den 1. april 2026","short_title":"BEK nr 9356 af 27/03/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"B20260041005","reason":"NewDocument","change_date":"2026-04-01","title":"Bekendtgørelse om ændring af bekendtgørelse om normalhandelsværdier for heste og kreaturer mv.","short_title":"BEK nr 410 af 26/03/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20260935709","reason":"NewDocument","change_date":"2026-04-01","title":"Rigsadvokatmeddelelsen, afsnittet: Færdsel - Generelle retningslinjer for sanktionspåstande i færdselssager","short_title":"CIR1H nr 9357 af 01/01/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null},{"accession_number":"C20260935860","reason":"NewDocument","change_date":"2026-04-01","title":"Vejledning om erstatning og godtgørelse til indsatte i institutioner under Danmarks Fængsler og til dømte og prøveløsladte under udførelse af samfundstjeneste for følger af ulykkestilfælde m.v.","short_title":"VEJ nr 9358 af 31/03/2026","popular_title":null,"publication_date":"2026-04-01","is_historical":false,"historical_date":null}]}}},"headers":{"ETag":{"description":"Identifies the date's changes. Conditional requests are not supported: `If-None-Match` never yields a 304.","schema":{"type":"string"}},"Cache-Control":{"description":"`private, max-age=86400`. Shared caches must not store the response; your own client may.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"404":{"description":"No file for that date: a day before the feed's coverage began, a missed day, or a day whose refresh has not run yet. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Not Found","status":404,"detail":"No changes file for that date.","code":"not_found"}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}}}}},"/documents/{accession_number}":{"get":{"tags":["Documents"],"summary":"Get document metadata","description":"Get one document's metadata and relations.\n\nThe document is identified by its accession number; names are\nnot identifiers. To find a document's accession number by name,\nuse `/documents/discover`.\n\n`related_documents` lists every relation, uncapped (the largest\ndocuments carry thousands), in a stable order: relation name,\nthen publication date, then accession number.","operationId":"getDocumentMetadata","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accession_number","in":"path","required":true,"schema":{"type":"string","description":"The document's accession number (a letter followed by 11 digits), any casing.","title":"Accession Number"},"description":"The document's accession number (a letter followed by 11 digits), any casing.","examples":{"revisorloven":{"summary":"Revisorloven","value":"A20250020629"}}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentMetadata"},"example":{"accession_number":"A20250020629","title":"Bekendtgørelse af lov om godkendte revisorer og revisionsvirksomheder (revisorloven)","popular_title":"Revisorloven","short_title":"LBK nr 206 af 20/02/2025","url":"https://www.retsinformation.dk/eli/accn/A20250020629","ministry":"Erhvervsministeriet","administrative_authority":"Erhvervsstyrelsen","publication_date":"2025-02-27","signature_date":"2025-02-20","historical_date":null,"is_historical":false,"related_documents":[{"relation":"changed_by","accession_number":"A20240048030","title":"Lov om ændring af årsregnskabsloven, revisorloven og forskellige andre love (Gennemførelse af EU-direktiv om virksomheders bæredygtighedsrapportering og EU-direktiv om forhøjelse af størrelsesgrænser i regnskabsdirektivet m.v.)","short_title":"LOV nr 480 af 22/05/2024","location":{"volume":null,"part":null,"chapter":null,"heading":null,"paragraph":"2","appendix":null},"publication_date":"2024-05-23"},{"relation":"changed_by","accession_number":"A20260072930","title":"Lov om ændring af lov om erhvervsdrivende fonde, årsregnskabsloven og forskellige andre love (Ophævelse af visse krav m.v. for erhvervsdrivende fonde, nægtelse af godkendelse som ejendomsmægler som følge af strafbare forhold, nedlæggelse af Revisorrådet og offentliggørelse af oplysninger om konkurskarantæner i CVR)","short_title":"LOV nr 729 af 01/09/2026","location":{"volume":null,"part":null,"chapter":null,"heading":null,"paragraph":"3","appendix":null},"publication_date":"2026-09-02"},{"relation":"consolidates","accession_number":"A20220121929","title":"Bekendtgørelse af lov om godkendte revisorer og revisionsvirksomheder (revisorloven)","short_title":"LBK nr 1219 af 31/08/2022","location":null,"publication_date":"2022-09-01"},{"relation":"consolidates","accession_number":"A20230071830","title":"Lov om forsikringsvirksomhed i tværgående pensionskasser, livsforsikringsselskaber og skadesforsikringsselskaber m.v. (lov om forsikringsvirksomhed)","short_title":"LOV nr 718 af 13/06/2023","location":null,"publication_date":"2023-06-14"},{"relation":"consolidates","accession_number":"A20240048030","title":"Lov om ændring af årsregnskabsloven, revisorloven og forskellige andre love (Gennemførelse af EU-direktiv om virksomheders bæredygtighedsrapportering og EU-direktiv om forhøjelse af størrelsesgrænser i regnskabsdirektivet m.v.)","short_title":"LOV nr 480 af 22/05/2024","location":null,"publication_date":"2024-05-23"},{"relation":"consolidates","accession_number":"A20250005230","title":"Lov om uafhængige erklæringsudbydere vedrørende bæredygtighedsrapportering","short_title":"LOV nr 52 af 28/01/2025","location":null,"publication_date":"2025-01-29"},{"relation":"subject_of","accession_number":"B20090006505","title":"Bekendtgørelse om ophævelse af bekendtgørelse om revisoreksamen og kvalifikationseksamen for henholdsvis statsautoriserede og registrerede revisorer","short_title":"BEK nr 65 af 21/01/2009","location":null,"publication_date":"2009-02-03"},{"relation":"subject_of","accession_number":"B20100018605","title":"Bekendtgørelse om delvis ikrafttræden af lov om ændring af årsregnskabsloven, lov om finansiel virksomhed og forskellige andre love","short_title":"BEK nr 186 af 24/02/2010","location":null,"publication_date":"2010-02-26"},{"relation":"subject_of","accession_number":"B20150153605","title":"Bekendtgørelse om godkendte revisorers garantistillelse og ansvarsforsikring","short_title":"BEK nr 1536 af 09/12/2015","location":null,"publication_date":"2015-12-15"},{"relation":"subject_of","accession_number":"B20160096205","title":"Bekendtgørelse om revisionsvirksomhed","short_title":"BEK nr 962 af 28/06/2016","location":null,"publication_date":"2016-06-30"},{"relation":"subject_of","accession_number":"B20160096605","title":"Bekendtgørelse om revisorers udøvelse af tjenesteydelser i et andet land end etableringslandet","short_title":"BEK nr 966 af 28/06/2016","location":null,"publication_date":"2016-06-30"},{"relation":"subject_of","accession_number":"B20190031105","title":"Bekendtgørelse om kommunal og regional revision","short_title":"BEK nr 311 af 27/03/2019","location":null,"publication_date":"2019-03-29"},{"relation":"subject_of","accession_number":"B20240051205","title":"Bekendtgørelse om godkendte revisionsvirksomheders interne organisation","short_title":"BEK nr 512 af 24/05/2024","location":null,"publication_date":"2024-05-28"},{"relation":"subject_of","accession_number":"B20240051805","title":"Bekendtgørelse om godkendte revisorers erklæringer","short_title":"BEK nr 518 af 24/05/2024","location":null,"publication_date":"2024-05-29"},{"relation":"subject_of","accession_number":"B20240051905","title":"Bekendtgørelse om godkendte revisorers og revisionsvirksomheders tilrettelæggelse af arbejdet","short_title":"BEK nr 519 af 24/05/2024","location":null,"publication_date":"2024-05-29"},{"relation":"subject_of","accession_number":"B20240052005","title":"Bekendtgørelse om godkendte revisorers og revisionsvirksomheders uafhængighed","short_title":"BEK nr 520 af 24/05/2024","location":null,"publication_date":"2024-05-29"},{"relation":"subject_of","accession_number":"B20240052305","title":"Bekendtgørelse om register over godkendte revisorer og revisionsvirksomheder","short_title":"BEK nr 523 af 24/05/2024","location":null,"publication_date":"2024-05-29"},{"relation":"subject_of","accession_number":"B20250126405","title":"Bekendtgørelse om Revisornævnet","short_title":"BEK nr 1264 af 27/10/2025","location":null,"publication_date":"2025-11-04"},{"relation":"subject_of","accession_number":"B20250126605","title":"Bekendtgørelse om Revisornævnets behandling af sager om midlertidig frakendelse af en revisors og verifikators godkendelse","short_title":"BEK nr 1266 af 27/10/2025","location":null,"publication_date":"2025-11-04"},{"relation":"subject_of","accession_number":"B20250131305","title":"Bekendtgørelse om finansiering af driften af kvalitetskontrol, undersøgelser, Revisornævnet samt hvidvasktilsyn med revisorer og revisionsvirksomheder","short_title":"BEK nr 1313 af 15/11/2025","location":null,"publication_date":"2025-11-20"},{"relation":"subject_of","accession_number":"B20250146405","title":"Bekendtgørelse om kvalitetskontrol af revisionsvirksomheder","short_title":"BEK nr 1464 af 27/11/2025","location":null,"publication_date":"2025-12-04"},{"relation":"subject_of","accession_number":"B20260044905","title":"Bekendtgørelse om registrering af revisorer og revisionsvirksomheder, der ikke har hjemsted her i landet, i et andet EU-land eller i et EØS-land","short_title":"BEK nr 449 af 30/04/2026","location":null,"publication_date":"2026-05-08"},{"relation":"subject_of","accession_number":"B20260075205","title":"Bekendtgørelse om obligatorisk efteruddannelse af godkendte revisorer","short_title":"BEK nr 752 af 02/09/2026","location":null,"publication_date":"2026-09-08"},{"relation":"subject_of","accession_number":"B20260075305","title":"Bekendtgørelse om prøver vedrørende udførelse af erklæringsopgaver om bæredygtighedsrapportering","short_title":"BEK nr 753 af 02/09/2026","location":null,"publication_date":"2026-09-08"},{"relation":"subject_of","accession_number":"B20260075505","title":"Bekendtgørelse om eksamener m.v. for godkendte revisorer","short_title":"BEK nr 755 af 02/09/2026","location":null,"publication_date":"2026-09-08"},{"relation":"subject_of","accession_number":"B20260075605","title":"Bekendtgørelse om Eksamensudvalget","short_title":"BEK nr 756 af 02/09/2026","location":null,"publication_date":"2026-09-08"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"502":{"description":"The document registry is unavailable. Retry later. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"Document registry is unavailable. Try again later.","code":"upstream_failure"}}}},"404":{"description":"No document with that accession number. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Not Found","status":404,"detail":"No document with that identifier.","code":"not_found"}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}}}}},"/documents/{accession_number}/markdown":{"get":{"tags":["Documents"],"summary":"Get a document's text as markdown","description":"Get a document's text as markdown, whole or one part.\n\nWithout parameters, the whole document. With `paragraph` or\n`index`, only that part, exactly as it reads in the whole\ndocument: a part's markdown is its slice of the whole, headings\nat the same levels. The document's outline lists every part with\nits `index` and size. `paragraph` and `index` together are\nrejected.\n\nA § that an amending document inserted is not in the document's\ntext, so asking for it answers 404, saying so.\n\nThe response is the source document's content in simpler\nformatting, as CommonMark (`text/markdown`): the title as `#`,\nthe document's structure (Bog, Afsnit, Kapitel, headings) as\nheadings, each § starting with its number in bold, one block per\nstk and per numbered item. Every document is served, historical\nones included.\n\nHeading levels are relative to the document: they follow the\nstructure levels the document uses, from `##`, and the heading\ntext names the level (`Kapitel 5 Hastighed`). A footnote's marker\nstays where the source places it, as `[1]`, and its text follows\nas a block starting with the same marker. Tables with more than\none row and column are HTML tables; images link to Retsinformation.\nIn an amending document, the wording it inserts is quoted as a\nblockquote. A resumé, when the document has one, is a blockquote\nopening with `## Resumé`.\n\nA document whose text has not been parsed answers with its title\nonly; its text is at the `url` that\n`/documents/{accession_number}` returns.","operationId":"getDocumentMarkdown","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accession_number","in":"path","required":true,"schema":{"type":"string","description":"The document's accession number (a letter followed by 11 digits), any casing.","title":"Accession Number"},"description":"The document's accession number (a letter followed by 11 digits), any casing.","examples":{"faerdselsloven":{"summary":"Færdselsloven","value":"A20260011829"}}},{"name":"paragraph","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}],"description":"Return only the § with this number, without the § sign (`2a` for § 2 a); case and spaces are ignored. Matches the document's own §, never an amending act's § reprinted in a commencement provision. A number the document holds more than once returns every match, in document order.","title":"Paragraph"},"description":"Return only the § with this number, without the § sign (`2a` for § 2 a); case and spaces are ignored. Matches the document's own §, never an amending act's § reprinted in a commencement provision. A number the document holds more than once returns every match, in document order.","example":"42"},{"name":"index","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Return only the part at this position in the document's outline, from 0 (the title), every part it contains included (a chapter with its §). Valid for the document as stored now.","title":"Index"},"description":"Return only the part at this position in the document's outline, from 0 (the title), every part it contains included (a chapter with its §). Valid for the document as stored now."}],"responses":{"200":{"description":"The document's text as CommonMark.","content":{"text/markdown; charset=utf-8; variant=CommonMark":{"schema":{"type":"string"},"example":"# Bekendtgørelse af færdselsloven\n\n…\n\n## Kapitel 5 Hastighed\n\n### Generelle hastighedsbegrænsninger\n\n**§ 42.** På andre veje end motorveje og motortrafikveje må køretøjers hastighed ikke overstige følgende grænser:\n\n1\\) i tættere bebygget område: 50 km i timen,\n\n2\\) uden for tættere bebygget område: 80 km i timen.\n\nStk. 2. På motorveje må hastigheden ikke overstige 130 km i timen.\n"}},"headers":{"Cache-Control":{"description":"`private`. Shared caches must not store the response; your own client may.","schema":{"type":"string"}},"Document-Tag":{"description":"Identifies the stored document: the same value on its outline, on every markdown response for it, whole or one part, and on its amendments. A different value means the document changed, so an `index` read from an older outline may no longer hold.","schema":{"type":"string"}},"ETag":{"description":"The same value as `Document-Tag`.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"502":{"description":"The document registry is unavailable. Retry later. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"Document registry is unavailable. Try again later.","code":"upstream_failure"}}}},"404":{"description":"No document with that accession number, or no part at the requested `paragraph` or `index`. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Not Found","status":404,"detail":"No document with that identifier.","code":"not_found"}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}}}}},"/documents/{accession_number}/outline":{"get":{"tags":["Documents"],"summary":"Get a document's outline","description":"Get a document's outline: its parts, in order, with their sizes.\n\nEvery part of the document's text is listed once, in document\norder: the title first, then the preface and resumé when the\ndocument has them, the structure (Bog, Afsnit, Kapitel, headings)\nand each §, commencement provisions, and appendices. A guidance\ndocument lists its sections, and a document without structure its\ntitle and its text. Read the outline to choose what to read: a\npart's `index` returns that part as markdown, and its `size` says\nhow long it is.\n\nA § that an amending document inserted is not part of the\ndocument's text and is not listed.","operationId":"getDocumentOutline","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accession_number","in":"path","required":true,"schema":{"type":"string","description":"The document's accession number (a letter followed by 11 digits), any casing.","title":"Accession Number"},"description":"The document's accession number (a letter followed by 11 digits), any casing.","examples":{"ferieloven":{"summary":"Ferieloven","value":"A20240015229"}}}],"responses":{"200":{"description":"The document's outline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOutline"},"example":{"accession_number":"A20260074729","short_title":"LBK nr 747 af 03/08/2026","size":10328,"entries":[{"index":0,"type":"title","name":null,"title":"Bekendtgørelse af lov om elevers og studerendes undervisningsmiljø","paragraph":null,"size":69},{"index":1,"type":"preface","name":null,"title":null,"paragraph":null,"size":228},{"index":2,"type":"chapter","name":"Kapitel 1","title":"Generelle rettigheder og pligter","paragraph":null,"size":1554},{"index":3,"type":"paragraph","name":"§ 1","title":null,"paragraph":"1","size":1507},{"index":4,"type":"chapter","name":"Kapitel 1 a","title":"Pligt til tiltag mod problemer med det psykiske undervisningsmiljø","paragraph":null,"size":2440},{"index":5,"type":"paragraph","name":"§ 1a","title":null,"paragraph":"1a","size":92},{"index":6,"type":"paragraph","name":"§ 1b","title":null,"paragraph":"1b","size":726},{"index":7,"type":"paragraph","name":"§ 1c","title":null,"paragraph":"1c","size":1537},{"index":8,"type":"chapter","name":"Kapitel 2","title":"(Ophævet)","paragraph":null,"size":23},{"index":9,"type":"chapter","name":"Kapitel 3","title":"Deltagelse i uddannelsesstedets sikkerhedsarbejde","paragraph":null,"size":1120},{"index":10,"type":"paragraph","name":"§ 4","title":null,"paragraph":"4","size":863},{"index":11,"type":"paragraph","name":"§ 5","title":null,"paragraph":"5","size":192},{"index":12,"type":"chapter","name":"Kapitel 4","title":"Undervisningsmiljøvurdering","paragraph":null,"size":1181},{"index":13,"type":"paragraph","name":"§ 6","title":null,"paragraph":"6","size":507},{"index":14,"type":"paragraph","name":"§ 7","title":null,"paragraph":"7","size":631},{"index":15,"type":"chapter","name":"Kapitel 4 a","title":"Klageadgang","paragraph":null,"size":2525},{"index":16,"type":"paragraph","name":"§ 7a","title":null,"paragraph":"7a","size":1113},{"index":17,"type":"paragraph","name":"§ 7b","title":null,"paragraph":"7b","size":221},{"index":18,"type":"paragraph","name":"§ 7c","title":null,"paragraph":"7c","size":798},{"index":19,"type":"paragraph","name":"§ 7d","title":null,"paragraph":"7d","size":362},{"index":20,"type":"chapter","name":"Kapitel 4 b","title":"(Ophævet)","paragraph":null,"size":25},{"index":21,"type":"chapter","name":"Kapitel 5","title":"Ikrafttræden m.v.","paragraph":null,"size":136},{"index":22,"type":"paragraph","name":"§ 8","title":null,"paragraph":"8","size":50},{"index":23,"type":"paragraph","name":"§ 9","title":null,"paragraph":"9","size":53},{"index":24,"type":"commencement_provision","name":null,"title":"Lov nr. 1664 af 30. december 2024 (Opgavebortfald på Børne- og Undervisningsministeriets område…","paragraph":null,"size":743},{"index":25,"type":"commencement_provision","name":null,"title":"Lov nr. 469 af 14. maj 2025 (Forbud mod anvendelse af personer under 18 år som tolke m.v.)…","paragraph":null,"size":273}]}}},"headers":{"Document-Tag":{"description":"Identifies the stored document: the same value on its outline, on every markdown response for it, whole or one part, and on its amendments. A different value means the document changed, so an `index` read from an older outline may no longer hold.","schema":{"type":"string"}},"ETag":{"description":"The same value as `Document-Tag`.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"502":{"description":"The document registry is unavailable. Retry later. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"Document registry is unavailable. Try again later.","code":"upstream_failure"}}}},"404":{"description":"No document with that accession number. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Not Found","status":404,"detail":"No document with that identifier.","code":"not_found"}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}}}}},"/documents/{accession_number}/amendments":{"get":{"tags":["Documents"],"summary":"Get a document's amendments","description":"Get what amending documents did to a document.\n\nOne entry per § of an amending document, oldest amending document\nfirst: the amending document and its §, the places in this\ndocument where the changes are recorded, and the §'s\ninstructions as text. The document's own text is never changed\nby them: its markdown stays the text as published.\n\nWith `paragraph` or `index`, only the amendments recorded on that\npart of the document, and each entry's text holds only the\ninstructions recorded there. `paragraph` and `index` together are\nrejected.\n\nPlaces are recorded for laws only, and not for every amending\ndocument, so an entry can have text but no place, and a document\ncan have amending documents but no entries.","operationId":"getDocumentAmendments","security":[{"HTTPBearer":[]}],"parameters":[{"name":"accession_number","in":"path","required":true,"schema":{"type":"string","description":"The document's accession number (a letter followed by 11 digits), any casing.","title":"Accession Number"},"description":"The document's accession number (a letter followed by 11 digits), any casing.","examples":{"ferieloven":{"summary":"Ferieloven","value":"A20240015229"}}},{"name":"paragraph","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":20},{"type":"null"}],"description":"Return only the amendments recorded on the § with this number, without the § sign (`2a` for § 2 a); case and spaces are ignored. Includes a § an amending document inserted.","title":"Paragraph"},"description":"Return only the amendments recorded on the § with this number, without the § sign (`2a` for § 2 a); case and spaces are ignored. Includes a § an amending document inserted.","example":"44"},{"name":"index","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Return only the amendments recorded on the part at this position in the document's outline, from 0 (the title), and on every part it contains (a chapter with its §). Valid for the document as stored now.","title":"Index"},"description":"Return only the amendments recorded on the part at this position in the document's outline, from 0 (the title), and on every part it contains (a chapter with its §). Valid for the document as stored now."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":0,"description":"Maximum number of entries to return (0 to 500). `0` returns no entries, only `amended_locations` and `total_count`.","default":100,"title":"Limit"},"description":"Maximum number of entries to return (0 to 500). `0` returns no entries, only `amended_locations` and `total_count`."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of entries to skip, for paging with `limit`.","default":0,"title":"Offset"},"description":"Number of entries to skip, for paging with `limit`."}],"responses":{"200":{"description":"The document's amendments.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentAmendments"},"example":{"accession_number":"A20240015229","short_title":"LBK nr 152 af 20/02/2024","amended_locations":[{"volume":null,"part":null,"chapter":{"name":"Kapitel 9","title":"Særbestemmelser for visse persongrupper"},"heading":"Forsvaret og politiet","paragraph":"44","appendix":null,"index":103}],"amendments":[{"amending_document":{"accession_number":"A20250071530","title":"Lov om ændring af værnepligtsloven, lov om forsvarets personel og forskellige andre love (Fuld ligestilling mellem kvinder og mænd i relation til værnepligt, indførelse af mulighed for værnepligtige befalingsmænd og fritagelse for at møde til Forsvarets Dag under helt særlige forhold m.v.)","short_title":"LOV nr 715 af 20/06/2025","publication_date":"2025-06-21","location":{"volume":null,"part":null,"chapter":null,"heading":null,"paragraph":"7","appendix":null}},"amended_locations":[{"volume":null,"part":null,"chapter":{"name":"Kapitel 9","title":"Særbestemmelser for visse persongrupper"},"heading":"Forsvaret og politiet","paragraph":"44","appendix":null,"index":103}],"lead_in":"§ 7. I lov om ferie, jf. lovbekendtgørelse nr. 152 af 20. februar 2024, foretages følgende ændringer:","instructions":["1. I § 44, stk. 3, udgår »for kvinder ansat i Forsvaret på værnepligtslignende vilkår,«.","2. I § 44, stk. 4, udgår »og efter høring af de relevante lønmodtagerorganisationer andre regler om ferie for kvinder ansat på værnepligtslignende vilkår i det statslige redningsberedskab«."]}],"total_count":1,"limit":100,"offset":0}}},"headers":{"Document-Tag":{"description":"Identifies the stored document: the same value on its outline, on every markdown response for it, whole or one part, and on its amendments. A different value means the document changed, so an `index` read from an older outline may no longer hold.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"401":{"description":"The key is missing, unknown, expired, or not sent as a Bearer token. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unauthorized","status":401,"detail":"Credentials are required: send \"Authorization: Bearer <key>\". Get a free API key at https://dashboard.lovapi.dk/","code":"unauthorized"}}},"headers":{"WWW-Authenticate":{"description":"Always `Bearer`.","schema":{"type":"string","example":"Bearer"}}}},"422":{"description":"A parameter is malformed or out of range, or the query string carries an unknown parameter or repeats a single-value one. `errors` names each rejected parameter. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Unprocessable Entity","status":422,"detail":"Request validation failed.","code":"validation_failed","errors":[{"field":"query","message":"String should have at least 1 character"}]}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}},"429":{"description":"A limit is exhausted. `code` names the window:\n\n- `burst`: the per-minute limit; wait for the calendar minute to end.\n- `daily_quota`: the daily limit; it resets at midnight UTC.\n\n`Retry-After` gives the seconds to wait. A rejected request is not counted.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"burst":{"summary":"Burst limit exhausted, headers: Retry-After: 37, RateLimit-Limit: 10, RateLimit-Remaining: 0, RateLimit-Reset: 37","description":"Response headers for this example: `Retry-After: 37`, `RateLimit-Limit: 10`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 37` (37 s to the minute's end). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Request rate limit exceeded. Retry after the indicated interval.","code":"burst"}},"daily_quota":{"summary":"Daily quota exhausted, headers: Retry-After: 49324, RateLimit-Limit: 1000, RateLimit-Remaining: 0, RateLimit-Reset: 49324","description":"Response headers for this example: `Retry-After: 49324`, `RateLimit-Limit: 1000`, `RateLimit-Remaining: 0`, `RateLimit-Reset: 49324` (49,324 s to midnight UTC). The numbers are illustrative; each response's own RateLimit-* headers state your actual limits.","value":{"type":"about:blank","title":"Too Many Requests","status":429,"detail":"Daily request quota exhausted. The quota resets at midnight UTC.","code":"daily_quota"}}}}},"headers":{"Retry-After":{"description":"Seconds until the exhausted window's boundary (the minute's end for burst, midnight UTC for daily_quota); equals RateLimit-Reset.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"The exhausted window's limit (a per-minute or per-day number; the RateLimit-* headers together describe one window, the binding one).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Exactly 0 on a rejection.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds to the same boundary as Retry-After.","schema":{"type":"integer"}}}},"500":{"description":"An unexpected server error. Retrying may succeed. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Internal Server Error","status":500,"detail":"Internal server error.","code":"internal_error"}}}},"502":{"description":"The document registry is unavailable. Retry later. Not counted against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Bad Gateway","status":502,"detail":"Document registry is unavailable. Try again later.","code":"upstream_failure"}}}},"404":{"description":"No document with that accession number, or no part at the requested `paragraph` or `index`. Counts against your limits.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"example":{"type":"about:blank","title":"Not Found","status":404,"detail":"No document with that identifier.","code":"not_found"}}},"headers":{"RateLimit-Limit":{"description":"The binding window's limit (see Limits in the introduction).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests still available in that window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until that window resets.","schema":{"type":"integer"}}}}}}}},"components":{"schemas":{"Account":{"properties":{"limits":{"$ref":"#/components/schemas/AccountLimits","description":"The account's limits, shared by all its keys."}},"type":"object","required":["limits"],"title":"Account"},"AccountLimits":{"properties":{"per_minute":{"anyOf":[{"$ref":"#/components/schemas/LimitWindow"},{"type":"null"}],"description":"The per-minute window, counted over the calendar minute. `null` when not enforced."},"per_day":{"anyOf":[{"$ref":"#/components/schemas/LimitWindow"},{"type":"null"}],"description":"The daily window, counted over the calendar day (UTC). `null` when not enforced."}},"type":"object","required":["per_minute","per_day"],"title":"AccountLimits"},"AmendedLocation":{"properties":{"volume":{"anyOf":[{"$ref":"#/components/schemas/StructureLevel"},{"type":"null"}],"description":"The volume (Bog); `null` when there is none."},"part":{"anyOf":[{"$ref":"#/components/schemas/StructureLevel"},{"type":"null"}],"description":"The part (Afsnit); `null` when there is none."},"chapter":{"anyOf":[{"$ref":"#/components/schemas/StructureLevel"},{"type":"null"}],"description":"The chapter (Kapitel); `null` when there is none."},"heading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading","description":"The heading directly above the position inside its chapter, or a guidance document's section title; `null` when there is none."},"paragraph":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paragraph","description":"The paragraph's number without the § sign (`\"42\"` for § 42); `null` when the position is not a numbered paragraph."},"appendix":{"anyOf":[{"$ref":"#/components/schemas/AppendixLocation"},{"type":"null"}],"description":"The appendix (Bilag); `null` otherwise."},"index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Index","description":"The place's position in the document's outline, from 0 (the title). `null` for a § inserted by an amending document, which is not part of the document's text. Valid for the document as stored now."}},"type":"object","title":"AmendedLocation","description":"A place in the document where an amendment is recorded."},"AmendingDocument":{"properties":{"accession_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accession Number","description":"The amending document's accession number ([A-Z]\\d{11}, e.g. `A20250903516`)."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The amending document's formal title, as the amendment records it; `null` when not populated."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The amending document's short title, e.g. `\"LOV nr 480 af 22/05/2024\"`; `null` when not populated."},"publication_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publication Date","description":"ISO 8601 date of the amending document's publication; `null` when not populated."},"location":{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"null"}],"description":"Where in the amending document the change was made; `null` when the amendment does not record it."}},"type":"object","title":"AmendingDocument","description":"The document that made a change, and where in it the change was\nmade."},"Amendment":{"properties":{"amending_document":{"$ref":"#/components/schemas/AmendingDocument","description":"The document that made the change."},"lead_in":{"type":"string","title":"Lead In","description":"The amending §'s opening as printed, its number first: the sentence naming the document it changes."},"instructions":{"items":{"type":"string"},"type":"array","title":"Instructions","description":"The amending §'s instructions that change the matched text, as recorded: each one word for word as one string, starting with its number, the wording it inserts on the lines after. The action space is wide (new content, reordering, removal, repeal of full chapters, paragraphs or parts, entry into force), so lengths vary."}},"type":"object","required":["amending_document","lead_in","instructions"],"title":"Amendment","description":"What one amending document did to the matched text, as recorded."},"AppendixLocation":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The appendix's title, e.g. `\"Bilag 1\"`; `null` when not populated."}},"type":"object","title":"AppendixLocation"},"DiscoverMatch":{"properties":{"accession_number":{"type":"string","title":"Accession Number","description":"The document's accession number ([A-Z]\\d{11}, e.g. `A20250903516`)."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The document's formal title."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The official citation of the current version, e.g. `\"LBK nr 418 af 18/04/2013\"`; `null` when not populated. Together with `accession_number`, the basis on which consumers determine what kind of document they are looking at."},"popular_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Popular Title","description":"The consumer-facing nickname, e.g. `\"Barselsorlovsloven\"`, when populated; `null` otherwise. There is no computed display-title field: coalesce client-side (`popular_title` when non-null, else `title`), so `title` means the same thing everywhere."},"url":{"type":"string","title":"Url","description":"The document's page at Retsinformation (`\"https://www.retsinformation.dk/eli/accn/A20250020629\"`)."},"ministry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ministry","description":"The ministry responsible for the document, as the registry stores it; `null` when not populated. Names follow the source's ministry vocabulary, which includes historical and renamed variants (`Skatteministeriet` and `Skatte- og Vækstministeriet` are two eras of the same administration), so values are registry-verbatim, not normalized against a ministry list."},"administrative_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administrative Authority","description":"The authority Retsinformation records as administering the document (\"Administrerende myndighed\"), as the source states it, e.g. `\"Erhvervsstyrelsen\"` or `\"Ligebehandlingsnævnet\"`; `null` when the source has none. Values are source-verbatim, not normalized against a list of authorities."},"publication_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publication Date","description":"ISO 8601 date of publication; `null` when not populated."},"signature_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Date","description":"ISO 8601 date of signature; `null` when not populated."},"is_historical":{"type":"boolean","title":"Is Historical","description":"Whether the document is marked historical (Retsinformation's `historisk`): a newer document has replaced it, or it has been repealed. This is a publication status, not a statement about legal effect. A historical document may still apply, and a current one may not have taken effect yet."},"historical_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Historical Date","description":"ISO 8601 date on which the document became historical, as the source records it. Set on almost every historical document and almost never on a current one; use `is_historical`, not this date, for the document's status."},"exact_match":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Exact Match","description":"Whether one of the document's names (formal title, official citation or popular title) equals the `title` filter exactly after normalization (trim, collapse whitespace, casefold, NFC). Computed by the server, so no client-side normalization is needed. `null` when the request has no `title` filter."}},"type":"object","required":["accession_number","url","is_historical"],"title":"DiscoverMatch","description":"One candidate document."},"DiscoverResponse":{"properties":{"total_count":{"type":"integer","title":"Total Count","description":"The number of documents the filters match in total, independent of the page's size or offset."},"offset":{"type":"integer","title":"Offset","description":"The requested page offset, echoed."},"limit":{"type":"integer","title":"Limit","description":"The requested page size, echoed."},"matched_ministries":{"items":{"type":"string"},"type":"array","title":"Matched Ministries","description":"When the request filters by `ministry`: the distinct ministry names the fragment matched (a fragment can match several, including historical or renamed variants), sorted. Empty when the request has no `ministry` filter."},"matches":{"items":{"$ref":"#/components/schemas/DiscoverMatch"},"type":"array","title":"Matches","description":"The page of matched documents, ordered deterministically by exactness (`exact_match` true first), match priority, publication date (descending, nulls last) and accession number. Empty when nothing matches."}},"type":"object","required":["total_count","offset","limit","matched_ministries","matches"],"title":"DiscoverResponse"},"DocumentAmendment":{"properties":{"amending_document":{"$ref":"#/components/schemas/AmendingDocument","description":"The document that made the change, and the § in it."},"amended_locations":{"items":{"$ref":"#/components/schemas/AmendedLocation"},"type":"array","title":"Amended Locations","description":"Where in this document the changes are recorded, in document order. Recorded for laws only, and not for every change, so `[]` does not mean the change has no place; the instructions are the authority either way."},"lead_in":{"type":"string","title":"Lead In","description":"The amending §'s opening as printed, its number first: the sentence naming the document it changes."},"instructions":{"items":{"type":"string"},"type":"array","title":"Instructions","description":"The amending §'s instructions that change the document, or, when the request names a part, only those recorded there: each one word for word as one string, starting with its number, the wording it inserts on the lines after."}},"type":"object","required":["amending_document","amended_locations","lead_in","instructions"],"title":"DocumentAmendment","description":"What one § of an amending document did to this document."},"DocumentAmendments":{"properties":{"accession_number":{"type":"string","title":"Accession Number","description":"The document's accession number ([A-Z]\\d{11}, e.g. `A20250903516`)."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The official citation of the current version, e.g. `\"LBK nr 418 af 18/04/2013\"`; `null` when not populated. Together with `accession_number`, the basis on which consumers determine what kind of document they are looking at."},"amended_locations":{"items":{"$ref":"#/components/schemas/AmendedLocation"},"type":"array","title":"Amended Locations","description":"Every place in this document where an amendment is recorded, each once, in document order, the same on every page. When the request names a part, only the places within it."},"amendments":{"items":{"$ref":"#/components/schemas/DocumentAmendment"},"type":"array","title":"Amendments","description":"One entry per § of an amending document, oldest amending document first. Only amending documents published on or after this document. An empty list does not mean the document is unchanged: not every amending document's changes are found."},"total_count":{"type":"integer","title":"Total Count","description":"The number of entries in total, independent of the page."},"limit":{"type":"integer","title":"Limit","description":"The requested page size, echoed."},"offset":{"type":"integer","title":"Offset","description":"The requested page offset, echoed."}},"type":"object","required":["accession_number","amended_locations","amendments","total_count","limit","offset"],"title":"DocumentAmendments"},"DocumentChange":{"properties":{"accession_number":{"type":"string","title":"Accession Number","description":"The document's accession number ([A-Z]\\d{11}, e.g. `A20250903516`)."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why the source flags the change, in the source's own vocabulary, shipped verbatim (the values known today: `NewDocument`, `DocumentContentChanged`, `DocumentMetadataChanged`, `DocumentMetadataChangedAndDocumentContentChanged`, `RemovedDocument`). Unknown values may arrive additively if the source adds one."},"change_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Date","description":"The source's own change date for this document, ISO 8601; it can be one day before the response's `date`."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The document's formal title, from the registry as it stood when the file was written; `null` when not populated. On a `RemovedDocument` record always `null`: the document is already out of the registry."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The official citation of the current version, e.g. `\"LBK nr 418 af 18/04/2013\"`; `null` when not populated. Together with `accession_number`, the basis on which consumers determine what kind of document they are looking at."},"popular_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Popular Title","description":"The consumer-facing nickname, e.g. `\"Barselsorlovsloven\"`, when populated; `null` otherwise. There is no computed display-title field: coalesce client-side (`popular_title` when non-null, else `title`), so `title` means the same thing everywhere."},"publication_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publication Date","description":"ISO 8601 date of publication; `null` when not populated."},"is_historical":{"type":"boolean","title":"Is Historical","description":"Whether the document was marked historical when the day's changes were published: a newer document has replaced it, or it has been repealed. This is a publication status, not a statement about legal effect. Always `false` on a `RemovedDocument` record, since the document is no longer in the corpus and has no status."},"historical_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Historical Date","description":"ISO 8601 date on which the document became historical, as the source records it. Set on almost every historical document and almost never on a current one; use `is_historical`, not this date, for the document's status."}},"type":"object","required":["accession_number","reason","change_date","is_historical"],"title":"DocumentChange","description":"One document's change, with its registry data as it stood when\nthe changes were published."},"DocumentChangesFeed":{"properties":{"date":{"type":"string","title":"Date","description":"The requested day, echoed."},"count":{"type":"integer","title":"Count","description":"The number of records in `changes` in this response."},"changes":{"items":{"$ref":"#/components/schemas/DocumentChange"},"type":"array","title":"Changes","description":"The source's full change list for the day, unfiltered, in the order the source reported it. Typical days carry tens to a few hundred records; no pagination."}},"type":"object","required":["date","count","changes"],"title":"DocumentChangesFeed"},"DocumentMetadata":{"properties":{"accession_number":{"type":"string","title":"Accession Number","description":"The document's accession number ([A-Z]\\d{11}, e.g. `A20250903516`). Any casing is accepted on lookup; the canonical form is uppercase."},"title":{"type":"string","title":"Title","description":"The document's formal title."},"popular_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Popular Title","description":"The consumer-facing nickname, e.g. `\"Barselsorlovsloven\"`, when populated; `null` otherwise. There is no computed display-title field: coalesce client-side (`popular_title` when non-null, else `title`), so `title` means the same thing everywhere."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The official citation of the current version, e.g. `\"LBK nr 418 af 18/04/2013\"`; `null` when not populated. Together with `accession_number`, the basis on which consumers determine what kind of document they are looking at."},"url":{"type":"string","title":"Url","description":"The document's page at Retsinformation (`\"https://www.retsinformation.dk/eli/accn/A20250020629\"`)."},"ministry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ministry","description":"The ministry responsible for the document, as the registry stores it; `null` when not populated. Names follow the source's ministry vocabulary, which includes historical and renamed variants (`Skatteministeriet` and `Skatte- og Vækstministeriet` are two eras of the same administration), so values are registry-verbatim, not normalized against a ministry list."},"administrative_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Administrative Authority","description":"The authority Retsinformation records as administering the document (\"Administrerende myndighed\"), as the source states it, e.g. `\"Erhvervsstyrelsen\"` or `\"Ligebehandlingsnævnet\"`; `null` when the source has none. Values are source-verbatim, not normalized against a list of authorities."},"publication_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publication Date","description":"ISO 8601 date of publication; `null` when not populated."},"signature_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signature Date","description":"ISO 8601 date of signature; `null` when not populated."},"historical_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Historical Date","description":"ISO 8601 date on which the document became historical, as the source records it. Set on almost every historical document and almost never on a current one; use `is_historical`, not this date, for the document's status."},"is_historical":{"type":"boolean","title":"Is Historical","description":"Whether the document is marked historical (Retsinformation's `historisk`): a newer document has replaced it, or it has been repealed. This is a publication status, not a statement about legal effect. A historical document may still apply, and a current one may not have taken effect yet."},"related_documents":{"items":{"$ref":"#/components/schemas/RelatedDocument"},"type":"array","title":"Related Documents","description":"The document's relations, all of them (uncapped), ordered deterministically by relation name, then publication date, then accession number, so the order is stable between requests. Not paginated; the largest documents carry thousands of entries."}},"type":"object","required":["accession_number","title","url","is_historical","related_documents"],"title":"DocumentMetadata"},"DocumentOutline":{"properties":{"accession_number":{"type":"string","title":"Accession Number","description":"The document's accession number ([A-Z]\\d{11}, e.g. `A20250903516`)."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The official citation of the current version, e.g. `\"LBK nr 418 af 18/04/2013\"`; `null` when not populated. Together with `accession_number`, the basis on which consumers determine what kind of document they are looking at."},"size":{"type":"integer","title":"Size","description":"The whole document's length in characters of markdown."},"entries":{"items":{"$ref":"#/components/schemas/OutlineEntry"},"type":"array","title":"Entries","description":"The document's parts in document order, every part of its text once. A `volume`, `part`, `chapter` or `heading` contains the parts after it that come below it in the order volume, part, chapter, heading, paragraph, up to the first part that does not. Other types contain nothing."}},"type":"object","required":["accession_number","size","entries"],"title":"DocumentOutline"},"LimitWindow":{"properties":{"limit":{"type":"integer","title":"Limit","description":"The window's request limit."},"remaining":{"type":"integer","title":"Remaining","description":"Requests left in the window after this one."},"reset":{"type":"integer","title":"Reset","description":"Seconds until the window resets."}},"type":"object","required":["limit","remaining","reset"],"title":"LimitWindow"},"Location":{"properties":{"volume":{"anyOf":[{"$ref":"#/components/schemas/StructureLevel"},{"type":"null"}],"description":"The volume (Bog); `null` when there is none."},"part":{"anyOf":[{"$ref":"#/components/schemas/StructureLevel"},{"type":"null"}],"description":"The part (Afsnit); `null` when there is none."},"chapter":{"anyOf":[{"$ref":"#/components/schemas/StructureLevel"},{"type":"null"}],"description":"The chapter (Kapitel); `null` when there is none."},"heading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading","description":"The heading directly above the position inside its chapter, or a guidance document's section title; `null` when there is none."},"paragraph":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paragraph","description":"The paragraph's number without the § sign (`\"42\"` for § 42); `null` when the position is not a numbered paragraph."},"appendix":{"anyOf":[{"$ref":"#/components/schemas/AppendixLocation"},{"type":"null"}],"description":"The appendix (Bilag); `null` otherwise."}},"type":"object","title":"Location"},"Note":{"properties":{"label":{"type":"string","title":"Label","description":"The note's marker exactly as it appears in `content`, in square brackets: `\"[1]\"`. The source's `1)` is written as `[1]` so it cannot be mistaken for a list label; any other marker keeps its text inside the brackets (`\"[*]\"`)."},"text":{"type":"string","title":"Text","description":"The note's text."}},"type":"object","required":["label","text"],"title":"Note"},"OutlineEntry":{"properties":{"index":{"type":"integer","title":"Index","description":"The part's address: its position in `entries`, from 0, the title always first. Valid for the document as stored now: an improved parse of the document may shift it, so `paragraph` is the reference to keep."},"type":{"type":"string","title":"Type","description":"What the part is (the type of the part, not of the document): `title` (the title and its footnotes), `preface`, `resume`, `text` (the text of a document without structure), `volume` (Bog), `part` (Afsnit), `chapter` (Kapitel), `heading` (a heading over a run of §), `paragraph` (a §, its stk. and numbered items included), `commencement_provision` (an amending act's provision on when its changes took effect, reprinted after the body of a consolidated law), `appendix` (Bilag) or `section` (a section of a guidance document). More types may be added."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The part's printed designation, e.g. `\"Kapitel 5\"`, `\"§ 42\"` or `\"Bilag 1\"`; `null` when the document gives none."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The part's heading text, e.g. `\"Hastighed\"`; `null` when it has none. For a `commencement_provision`, the lead-in sentence naming the amending act, cut at 100 characters on a word boundary and ended with \"…\" when longer."},"paragraph":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paragraph","description":"On a `paragraph` part, the § number without the § sign (`\"42\"` for § 42); `null` on every other type."},"size":{"type":"integer","title":"Size","description":"The part's length in characters of markdown, every part it contains included."}},"type":"object","required":["index","type","size"],"title":"OutlineEntry","description":"One part of the document."},"RelatedDocument":{"properties":{"relation":{"type":"string","enum":["changed_by","changes","concerns","consolidated_by","consolidates","enacted_by","subject_of"],"title":"Relation","description":"The relation between the document you looked up and the related one; the name is relative to the LOOKED-UP document. Closed vocabulary (all values listed in the schema):\n\n- `changed_by` / `changes`: the related document changed this one / this one changed the related document.\n- `consolidated_by` / `consolidates`: the related document consolidated this one (the related one is the newer consolidation) / this document consolidates the related one (the related one is the older document).\n- `concerns` / `subject_of`: this document concerns the related one / this document is subject of the related one.\n- `enacted_by`: the related document enacted this one."},"accession_number":{"type":"string","title":"Accession Number","description":"The related document's accession number."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The related document's formal title; `null` when the relation record carries none."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The related document's official citation; `null` when the relation record carries none."},"location":{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"null"}],"description":"Where in the related document the relation applies; set on `changed_by`, where `paragraph` is the related document's paragraph that made the change, otherwise `null`."},"publication_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publication Date","description":"ISO 8601 date of the related document's publication; `null` when not populated."}},"type":"object","required":["relation","accession_number"],"title":"RelatedDocument"},"SearchHit":{"properties":{"accession_number":{"type":"string","title":"Accession Number","description":"The document's accession number ([A-Z]\\d{11}, e.g. `A20250903516`)."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The document's formal title. `null` when the registry has no record of the document or is unavailable."},"popular_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Popular Title","description":"The consumer-facing nickname, e.g. `\"Barselsorlovsloven\"`, when populated; `null` otherwise. There is no computed display-title field: coalesce client-side (`popular_title` when non-null, else `title`), so `title` means the same thing everywhere."},"short_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Title","description":"The official citation of the current version, e.g. `\"LBK nr 418 af 18/04/2013\"`; `null` when not populated. Together with `accession_number`, the basis on which consumers determine what kind of document they are looking at."},"location":{"anyOf":[{"$ref":"#/components/schemas/Location"},{"type":"null"}],"description":"Where the passage sits in its document; `null` when the passage is a whole document or a resumé."},"url":{"type":"string","title":"Url","description":"The document at Retsinformation, followed by `#P` and the paragraph number when the passage is a numbered paragraph (`\"https://www.retsinformation.dk/eli/accn/A20260011829#P42\"` for § 42)."},"content":{"items":{"type":"string"},"type":"array","title":"Content","description":"The passage's full text (never an excerpt), ready to display, as pieces in document order. Usually one paragraph or section; for a document without such structure, its whole text or its resumé.\n\nMost passages are one continuous string. A passage that contains a table or an image is split into several pieces, with each table and image as a separate HTML string. Within a text piece, line breaks separate subsections and list items, and their labels stay in the text (`\"Stk. 2.\"`, `\"1)\"`). The first subsection has no `\"Stk. 1.\"` label, and a paragraph's § number is not part of the text. Footnotes are not part of the text either: a footnote's marker (`\"[1]\"`) stays where the note sits, and its text is in `notes`."},"notes":{"items":{"$ref":"#/components/schemas/Note"},"type":"array","title":"Notes","description":"The footnotes the source attaches to the passage, such as a reference to an EU directive the text implements, in document order. `[]` (never `null`) when there are none."},"amendments":{"items":{"$ref":"#/components/schemas/Amendment"},"type":"array","title":"Amendments","description":"What later amending documents did to the matched text: one entry per recorded change, in corpus order. Recorded for laws only, and not for every amending document, so `[]` (never `null`) does not mean the text is unchanged."},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"The relevance score the hits are ordered by, highest first. Its scale depends on the search mode, and it is not comparable across queries."}},"type":"object","required":["accession_number","url","content"],"title":"SearchHit"},"SearchResponse":{"properties":{"query":{"type":"string","title":"Query","description":"The query as received and used."},"count":{"type":"integer","title":"Count","description":"The number of hits in this response, at most `limit`."},"hits":{"items":{"$ref":"#/components/schemas/SearchHit"},"type":"array","title":"Hits","description":"The matched passages, best first by relevance score."}},"type":"object","required":["query","count","hits"],"title":"SearchResponse"},"StructureLevel":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The level's designation, e.g. `\"Kapitel 5\"`; `null` when the document gives none."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The level's heading text, e.g. `\"Hastighed\"`; `null` when not populated."}},"type":"object","title":"StructureLevel","description":"One level of a document's structure: its designation and its\nheading text, as the document prints them."},"Problem":{"title":"Problem","type":"object","required":["type","title","status","detail","code"],"properties":{"type":{"type":"string","description":"Always `about:blank`: the status and `code` carry the meaning."},"title":{"type":"string","description":"The HTTP status phrase."},"status":{"type":"integer","description":"The HTTP status code, repeated."},"detail":{"type":"string","description":"A human-readable explanation. Not stable: never parse it."},"code":{"type":"string","description":"The machine-readable error class to branch on. Values: `unauthorized`, `validation_failed`, `not_found`, `method_not_allowed`, `burst`, `daily_quota`, `internal_error`, `upstream_failure`, `busy`. New values may be added; treat an unknown value by its HTTP status."},"errors":{"type":"array","description":"On a 422 only: one entry per rejected parameter.","items":{"type":"object","required":["field","message"],"properties":{"field":{"type":"string","description":"The query or path parameter's name."},"message":{"type":"string","description":"Why the value was rejected."}}}}}}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"Your API key, sent as `Authorization: Bearer <key>`.","scheme":"bearer"}}},"tags":[{"name":"Account","description":"Your account is what your keys belong to. Its per-minute and daily limits are shared by all your keys. Plans and pricing are described on [https://lovapi.dk](https://lovapi.dk).\n\nEvery request with a valid key counts, including those that return 404 or 422. Requests rejected for a missing or invalid key (401), requests over the limit (429) and server errors (5xx) do not count, so retrying after a server error costs nothing.\n\nEvery response that counts tells you where you stand:\n\n- `RateLimit-Limit`: your limit.\n- `RateLimit-Remaining`: requests left.\n- `RateLimit-Reset`: seconds until the limit resets, at the end of the minute or at midnight UTC.\n\nThe headers describe whichever limit you are closer to reaching. A 429 also carries `Retry-After`, the number of seconds to wait before retrying. To see both limits at once, call `GET /account`."},{"name":"Search","description":"Search the text of current documents, those not marked historical. Each hit is one passage, such as a paragraph or a section, returned in full. Lexical search matches keywords. Semantic search matches meaning, so you can search with a plain-language question."},{"name":"Documents","description":"Find, describe and read documents, historical and amending documents included. Discover finds documents by name, metadata describes one document and its relations, the outline lists a document's parts, markdown returns its text, whole or one part, amendments lists what amending documents did to it, and the daily change feed lists the documents that changed on a given day."}],"servers":[{"url":"/v1"}]}