Data source: Congress.gov, EUR-Lex, Finlex, Stortinget, Riksdagen
https://context.gnist.ai/rest/legislation/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (4)
search_legislationSearch legislation across US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.
Queries all legislative databases in parallel and returns unified results
sorted by date (most recent first). Each result includes the jurisdiction,
identifier, title, status, and a link to the original source.
Examples:
search_legislation(query="climate change")
search_legislation(query="artificial intelligence", jurisdiction="EU")
search_legislation(query="tax reform", year=2025, jurisdiction="US")
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search query — keywords, bill name, or topic. |
max_results | integer | optional | Maximum number of results per source. (default: 10) |
year | any | optional | Filter by year. |
jurisdiction | any | optional | Filter by jurisdiction: US, EU, FI, NO, or SE. Omit to search all. |
{
"query": "example"
}get_recent_legislationGet recent legislative activity across all jurisdictions.
Returns the most recent bills, regulations, and parliamentary cases
from US Congress, EU EUR-Lex, Finnish Finlex, Norwegian Stortinget, and Swedish Riksdagen.
Examples:
get_recent_legislation()
get_recent_legislation(jurisdiction="NO", max_results=5)
| Parameter | Type | Required | Description |
|---|---|---|---|
max_results | integer | optional | Maximum results per source. (default: 10) |
jurisdiction | any | optional | Filter by jurisdiction: US, EU, FI, NO, or SE. Omit for all. |
{
"query": "example"
}list_legislation_sourcesList all registered legislative data sources and their status.
Examples:
list_legislation_sources()
{
"query": "example"
}report_feedbackReport 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"feedback": "example"
}Quick Start
curl -X POST "https://context.gnist.ai/rest/legislation/search_legislation" \
-H "Content-Type: application/json" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"query": "example"}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/rest/legislation/search_legislation",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={
"query": "example"
},
)
print(resp.json())