API for Danish law.

Laws, statutory orders and guidance from Retsinformation, split into sections and passages you can search and cite. Ask the law plain questions, and get the relevant passages together with the amendments that affect them. Updated every day.

Start on the free plan: 60 requests a day.

  1. Færdselsloven § 42

    Kapitel 5 · Hastighed · Generelle hastighedsbegrænsninger

    På andre veje end motorveje og motortrafikveje må køretøjers hastighed ikke overstige følgende grænser:

    1) i tættere bebygget område: 50 km i timen,

    2) uden for tættere bebygget område: 80 km i timen.

    Stk. 2. På motorveje må hastigheden ikke overstige 130 km i timen.

    Stk. 3. På motortrafikveje må hastigheden ikke overstige 80 km i timen.

    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.

    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.

    LBK nr 118 af 12/01/2026

  2. Færdselsloven § 44

    Kapitel 6 · Særlige regler for færdsel på motorvej og motortrafikvej · Motorvej

    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.

    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.

    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.

    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.

    LBK nr 118 af 12/01/2026

  3. Hastighedsbekendtgørelsen § 4

    Højere hastighedsgrænse

    På motortrafikveje kan en højere hastighedsgrænse end den generelle fastsættes til 90 eller 100 km i timen. En hastighedsgrænse på 100 km i timen kan alene fastsættes på motortrafikvejsstrækninger med midterautoværn og uden kryds i niveau.

    Stk. 2. Ved fastsættelse af en hastighedsgrænse efter stk. 1 skal de i § 3, stk. 2, nævnte forhold indgå i vurderingen.

    BEK nr 3 af 03/01/2022

A real response from the API. Ask in English, and the law comes back in Danish, as published.

From publication to data

Retsinformation publishes Danish law as one XML file per document. Searching retsinformation.dk finds documents, but not the passages inside them. An amendment sits in its own document, not next to the passage it changes. LovAPI turns all of it into data you can build on.

Retsinformation: an excerpt of the Rent Act's XML
<Paragraf id="idd74370d4-8bff-4d37-b2bd-848a90264818" localId="11">
  <Explicatus>§ 11.</Explicatus>
  <Stk id="id969bac07-02c2-4835-9b60-ccce4aba7aca">
    <Exitus>
      <Linea>
        <Char>En lejeaftale og andre aftaler om det lejede skal udfærdiges skriftligt, når en af parterne kræver det.</Char>
      </Linea>
    </Exitus>
  </Stk>
  <Stk id="id7ab6fbd1-2266-4f20-856d-de6d9c8f8063">
    <Explicatus>Stk. 2.</Explicatus>
    <Exitus>
      <Linea>
        <Char>En lejeaftale anses for indgået på lovens vilkår, i det omfang der ikke udtrykkeligt er fastsat andet i aftalen.</Char>
      </Linea>
    </Exitus>
  </Stk>
  …
  <Stk id="id8680f699-28f4-4781-bca5-175c7f52169e">
    <Explicatus>Stk. 5.</Explicatus>
    …
  </Stk>
</Paragraf>
An excerpt of the one XML file that holds the whole act. The section ends at subsection 5. Subsection 6, added by an amending act in 2023, is in another document.
LovAPI: the search "lejeloven paragraf 11"
{
  "accession_number": "A20220034130",
  "popular_title": "Lejeloven",
  "short_title": "LOV nr 341 af 22/03/2022",
  "location": {
    "chapter": {"name": "Kapitel 2", "title": null},
    "heading": "Lejeaftalens udformning og indhold",
    "paragraph": "11"
  },
  "url": "https://www.retsinformation.dk/eli/accn/A20220034130#P11",
  "content": [
    "En lejeaftale og andre aftaler om det lejede skal udfærdiges skriftligt, når en af parterne kræver det.\n  Stk. 2. En lejeaftale anses for indgået på lovens vilkår, … Stk. 5. …"
  ],
  "change_annotations": [
    {
      "short_title": "LOV nr 1790 af 28/12/2023",
      "location": {"paragraph": "4"},
      "publication_date": "2023-12-28",
      "text": "… 1. I § 11 indsættes som stk. 6:\nStk. 6. For lejeaftaler om ustøttede private ungdomsboliger, …"
    }
  ],
  "score": 13.84522
}
The top result, shortened. The 2023 amendment comes with the section it changes.
  • Citable units

    Each search result is one whole section, one named passage or one appendix, with its accession number and §. It fits in a context window and can be cited as it is.

  • Amendments and relations

    When an amending act changes a section, the amendment comes with that very section as an annotation. Each document knows its relations: what it amends, what amends it, and what has replaced it.

  • Two kinds of search

    When you know what you are looking for, lexical search hits it exactly: "lejeloven paragraf 11" returns § 11 as the top result. Semantic search finds meaning, so an AI agent can pass the user's question straight on.

  • Updated every day

    The search index is updated daily, and our change feed shows which documents were published, changed or removed on a given date.

Build with LovAPI

Give your AI agent Danish law

A language model knows the law as it stood when the model was trained. With LovAPI as a tool, the agent searches today's text and cites the section its answer rests on.

If you use an MCP client such as Claude Code or Cursor, it takes one command. Read about the MCP server. If you build the agent yourself, give it search as a tool.

claude mcp add --transport http lovapi \
  https://api.lovapi.dk/v1/mcp \
  --header "Authorization: Bearer $LOVAPI_KEY"

Build legal products

Find documents by name, fetch metadata and relations, and keep your own document list up to date with the daily change feed.

  1. GET /documents/discover?title=lejelovenFind the document and its accession number.
  2. GET /documents/{accession_number}Fetch metadata and relations.
  3. GET /search/semanticSearch all current documents, or only the ones you have chosen.
  4. GET /documents/changes/{date}Keep the list up to date, once a day.

The API

  • Search

    Search the text of current documents, the ones not marked historical.

    GET /search/lexical Exact lookups, e.g. "lejeloven paragraf 11" GET /search/semantic Questions in plain language, also in English, e.g. "what is the speed limit on the motorway?"
  • Documents

    Find documents by name, fetch metadata and relations, and read a document's whole text as markdown. Historical documents and amending acts included.

    GET /documents/discover GET /documents/{accession_number} GET /documents/{accession_number}/markdown
  • Daily changes

    See which documents were published, changed or removed on a given day.

    GET /documents/changes/{date}

What is included

Every document published on Retsinformation. Each document has an accession number whose first letter gives the document's class, e.g. A20260011829.

A
Laws
B
Statutory orders
C
Circulars and guidance
L
Statutory orders promulgating international agreements
O
Ombudsman case reports, inspections and follow-ups
U
Court decisions
W
Decisions of boards and tribunals
X
Binding tax-law answers
Y
Statements of opinion

Search covers current documents. Document lookups cover every document, historical documents and amending acts included.

Pricing

Every plan gives access to the whole API. The plans differ only in how many requests you can send.

  • Free

    DKK 0

    • 60 requests a day
    • 6 a minute
    Get started
  • Lite

    DKK 99/mo.

    • 300 requests a day
    • 60 a minute
    Choose Lite
  • Pro

    DKK 1,499/mo.

    • 15,000 requests a day
    • 240 a minute
    Choose Pro

Prices exclude VAT. The limits apply per account and are shared by all of the account's keys. Requests that fail on the server do not count.

FAQ

Isn't the data already free on Retsinformation?

Yes, and Retsinformation is the source of our data. But each document is published as one XML file. To use them in software, you first have to write a parser that handles the XML's many formats and errors. Then you have to split the text, link the amendments to the passages they affect, build a search index and keep it all up to date every day. And you have to pay for the servers that run the search index and the embedding model around the clock. LovAPI does that.

Can I use LovAPI with Claude or other AI agents?

Yes. Connect an MCP client such as Claude Code or Cursor to our MCP server, or give the agent search as a tool, as in the example above. The OpenAPI schema describes the whole API and works directly with tools that generate clients.

What does it mean that a document is historical?

Retsinformation marks a document historical when a newer document has replaced it, or when it has been repealed. It is a publication status, not an assessment of legal effect. A historical document can still apply, and a current document may not have taken effect yet.

How current is the data?

The search index is updated every day. What an amending act does to a text comes with that text as annotations. Amendments are never merged into the text itself.

What counts as a request?

Every request with a valid key counts, including those that return 404 or 422. Requests with a missing or invalid key (401), over the limit (429) and server errors (5xx) do not count. Every response tells you in its RateLimit headers how many requests you have left.