Data source: Entur
https://context.gnist.ai/rest/entur/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (3)
search_stopsSearch for transit stops by name.
Args:
query: Stop name or partial name to search for.
lat: Optional latitude to boost nearby results.
lon: Optional longitude to boost nearby results.
limit: Maximum number of results (default 5).
Returns:
List of stops with id, name, lat, lon, description.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Stop name or partial name to search for. |
lat | any | optional | Optional latitude to boost nearby results. |
lon | any | optional | Optional longitude to boost nearby results. |
limit | integer | optional | Maximum number of results (default 5). (default: 5) |
{
"query": "example"
}get_departuresGet upcoming departures from a transit stop.
Args:
stop_id: The stop ID (e.g. NSR:StopPlace:59872 for Oslo S).
Use search_stops to find IDs.
limit: Maximum number of departures (default 10).
Returns:
List of departures with line, destination, expected_departure,
aimed_departure, realtime, transport_mode, platform.
| Parameter | Type | Required | Description |
|---|---|---|---|
stop_id | string | required | The stop ID (e.g. NSR:StopPlace:59872 for Oslo S). Use search_stops to find IDs. |
limit | integer | optional | Maximum number of departures (default 10). (default: 10) |
{
"stop_id": "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/entur/search_stops" \
-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/entur/search_stops",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
json={
"query": "example"
},
)
print(resp.json())