GnistAI GnistAI
Log in

Lovdata (Norwegian Law)

Norwegian laws (lover) and regulations (forskrifter) — search legislation, read law text, browse sections.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 type: collected dataset type type collected dataset collected dataset lifecycle: flagship lifecycle lifecycle flagship flagship Legal

Data source: Lovdata (lovdata.no)

REST Bridge Endpoint https://context.gnist.ai/rest/lovdata/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (5)

search_legislation

Search Norwegian laws and regulations on Lovdata.

Lovdata is Norway's official source for legislation, including laws (lover),
regulations (forskrifter), and court decisions.

Args:
query: Search term — law name, topic, or keyword.
doc_type: Document type to search: 'lover' (laws, default) or 'forskrifter' (regulations).
max_results: Maximum results (1-50, default 20).

Returns:
Dict with 'query', 'count', and 'results' list.
Each result has: title, identifier, url, date, department.

ParameterTypeRequiredDescription
querystringrequiredSearch term — law name, topic, or keyword.
doc_typeanyoptionalDocument type to search: 'lover' (laws, default) or 'forskrifter' (regulations). (default: "lover")
max_resultsintegeroptionalMaximum results (1-50, default 20). (default: 20)
Request Body
{
  "query": "example"
}
get_law

Get an overview of a Norwegian law, including title, metadata, and table of contents.

Args:
law_path: The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven
(Company Act) or '2005-06-17-62' for arbeidsmiljøloven (Working Environment Act).

Returns:
Dict with title, short_title, identifier, department, url, and chapters list.
Each chapter has: chapter_id, title, and sections list.

ParameterTypeRequiredDescription
law_pathstringrequiredThe law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven (Company Act) or '2005-06-17-62' for arbeidsmiljøloven (Working Environment Act).
Request Body
{
  "law_path": "123456789"
}
get_law_section

Get the full text of a specific section (paragraph) of a Norwegian law.

Args:
law_path: The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven.
section: Section number, e.g. '1-1' or '3-4'. The § symbol is optional.

Returns:
Dict with section_id, title, content (full text), and url.

ParameterTypeRequiredDescription
law_pathstringrequiredThe law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven.
sectionstringrequiredSection number, e.g. '1-1' or '3-4'. The § symbol is optional.
Request Body
{
  "law_path": "123456789",
  "section": "123456789"
}
get_regulation

Get an overview of a Norwegian regulation (forskrift).

Args:
regulation_path: The regulation's date-number identifier,
e.g. '2019-12-09-1698' for a specific regulation.

Returns:
Dict with title, identifier, department, url, and chapters list.

ParameterTypeRequiredDescription
regulation_pathstringrequiredThe regulation's date-number identifier, e.g. '2019-12-09-1698' for a specific regulation.
Request Body
{
  "regulation_path": "123456789"
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
Request Body
{
  "feedback": "example"
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/rest/lovdata/search_legislation" \
  -H "Content-Type: application/json" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"query": "example"}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/rest/lovdata/search_legislation",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    json={
  "query": "example"
},
)
print(resp.json())

Related Toolkits (Legal)

Resources