Lovdata API, åpne datasett (lover og forskrifter)
Levert av Lovdata · org.nr. 934282744
ÅpenIngen autentiseringXMLtar.bz234 endepunkter
Gjeldende lover og gjeldende sentrale forskrifter som komplette datasett, ajourført med endringer, og Norsk Lovtidend avd. I per år. Pakkene er tar.bz2 med én XML-fil per dokument og hentes uten bruker eller nøkkel. List-endepunktet viser hvilke pakker som finnes og når de sist ble oppdatert. Ikke et søke-API.
Kom i gang
curl "https://api.lovdata.no/v1/publicData/list" curl -O "https://api.lovdata.no/v1/publicData/get/gjeldende-lover.tar.bz2"
Endepunkter (34)
Content services · 10
- GET
/baseHistoryChange log for legal source - GET
/documentHistoryDocument change log - GET
/documentIndexGet the index for a specific document - GET
/documentMetaGet metadata for a single document - GET
/listBaseList all documents in a legal source - GET
/lookupCheck the existence of a document or reference - GET
/renderRefIDSimple method to render documents or parts as HTML - GET
/v1/documentPartChangesDetailed information about promulgated changes to parts of regulation - GET
/v1/download/documentDownload documents or parts of documents in a variety of formats - GET
/v1/legalSource/listList all legal sources with descriptions
API-documentation · 5
- GET
/apichanges - GET
/apichanges.md - GET
/apichanges.rss - GET
/privacy - GET
/version
Structured rules · 5
- GET
/v1/structuredRules/get/{base}/{ruleFile}Get a single document in structured format - GET
/v1/structuredRules/get/{base}/{ruleFile}/{date}Get the version of the document in force at the given date - GET
/v1/structuredRules/listList legal sources containing available documents - GET
/v1/structuredRules/list/{base}List available documents in a given legal source - GET
/v1/structuredRules/timeline/{base}/{ruleFile}List the available versions of the given document
AI functionality · 4
- POST
/v1/ai/generateResponseGenerate a list of LLM responses for a chat given a list of messages and a list of section IDs - GET
/v1/ai/strategySearchSearch using a specified strategy, given a text query - POST
/v1/ai/strategySearchSearch using a specified strategy, given a text query - POST
/v2/ai/selectionList/generateResponseGenerate a list of LLM responses for a chat over document sections from a selection list
Services · 3
- GET
/genrefLocate references in the given input text - POST
/genrefLocate references in the given input text - GET
/v1/searchFull-text search across all legal sources
Public data · 2
- GET
/v1/publicData/get/{filename}Download a public data package - GET
/v1/publicData/listList available public data packages
Vis 3 grupper til
System calls · 2
- GET
/ping - GET
/v1/userinfo
Vocabularies · 2
- GET
/vocabulary/legalAreasList all legal areas - GET
/vocabulary/legalSourcesList all legal sources (bases)
Document upload · 1
- POST
/v1/upload/{baseName}Upload documents to a legal source