search_news

Search geolocated Norwegian news and police events.

Signature: search_news(query: string, optional, default None; since: string, optional, default None; until: string, optional, default None; kind: one of: news, police, optional, default None; lat: decimal number, decimal degrees (WGS84), optional, default None; lon: decimal number, decimal degrees (WGS84), optional, default None; radius_km: decimal number, kilometres, optional, default 25; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)

Direct GET

For navigating agents: open the HTML page with parameters in the URL. The result is fetched and displayed without screenshots or form filling.

Open this validated HTML GET URL

https://allemannsdata.com/wiki/kilder/nyheter/search_news/?query={query}&since={since}&until={until}&kind={kind}&lat={lat}&lon={lon}&radius_km=25&limit=25&offset=0

Replace {query}, {since}, {until}, {kind}, {lat}, {lon}, {radius_km}, {limit}, {offset} with values. Remove unused optional parameters from the URL.

For software and dashboards: Read the operation descriptor. The JSON GET template is https://allemannsdata.com/wiki/api/v1/kilder/nyheter/search_news?query={query}&since={since}&until={until}&kind={kind}&lat={lat}&lon={lon}&radius_km=25&limit=25&offset=0. Open this exact request as JSON.

ParameterRequirementJSON typeDescription
queryoptionalunionFree-text term matched case-insensitively against each event's name, summary and location (client-side; the API has no text search). E.g. "brann", "Bergen", "trafikkulykke".
sinceoptionalunionISO 8601 UTC lower bound on when the event was seen, e.g. "2026-07-10T00:00:00Z". Default: 24 hours ago.
untiloptionalunionISO 8601 UTC upper bound. Default: open-ended.
kindoptionalunion"news" for news media only, "police" for police log (politiloggen) entries only. Default: both.
latoptionalunionCentre latitude (WGS84) for an area search. Give lat and lon together to only return events within radius_km of the point. Unit: decimal degrees (WGS84).
lonoptionalunionCentre longitude (WGS84). Unit: decimal degrees (WGS84).
radius_kmoptionalnumberSearch radius in km around lat/lon (default 25). Unit: kilometres.
limitoptionalintegerMax events to return, 1 to 100 (default 25). Unit: items. Through this API: default 25, maximum 100.
offsetoptionalintegerSkip this many matching events (for pagination). Unit: items.
Generated JavaScript, Python and response structure

Use JSON when the user requests code, machine-readable data, value extraction or further computation. Use the HTML GET page to identify the correct source and verify parameters.

Example for generated JavaScript and Python

https://allemannsdata.com/wiki/api/v1/kilder/nyheter/search_news?query={query}&since={since}&until={until}&kind={kind}&lat={lat}&lon={lon}&radius_km=25&limit=25&offset=0

Replace URL placeholders and remove unused optional parameters.

JavaScript in a dashboard

const url = "https://allemannsdata.com/wiki/api/v1/kilder/nyheter/search_news?query={query}&since={since}&until={until}&kind={kind}&lat={lat}&lon={lon}&radius_km=25&limit=25&offset=0";
const response = await fetch(url);
if (!response.ok) {
  const failure = await response.json();
  throw new Error(`${failure.error.code}: ${failure.error.message} ${failure.suggestion}`);
}
const result = await response.json();
const data = result.data;

Python without additional packages

import json
from urllib.request import urlopen

url = "https://allemannsdata.com/wiki/api/v1/kilder/nyheter/search_news?query={query}&since={since}&until={until}&kind={kind}&lat={lat}&lon={lon}&radius_km=25&limit=25&offset=0"
with urlopen(url) as response:
    result = json.load(response)
data = result["data"]

Response structure

{
  "source": "nyheter",
  "operation": "search_news",
  "parameters": {},
  "data": {},
  "entities": [],
  "_meta": {"retrieved_at": "...", "sources": [], "cache": {}},
  "_links": {"self": "...", "source": "...", "wiki": "...", "feedback": "..."}
}
Form for manual use

The form is a fallback for people and browser agents that cannot open the GET URL directly.

Type: string. Free-text term matched case-insensitively against each event's name, summary and location (client-side; the API has no text search). E.g. "brann", "Bergen", "trafikkulykke".
Type: string. ISO 8601 UTC lower bound on when the event was seen, e.g. "2026-07-10T00:00:00Z". Default: 24 hours ago.
Type: string. ISO 8601 UTC upper bound. Default: open-ended.
Type: one of: news, police. "news" for news media only, "police" for police log (politiloggen) entries only. Default: both.
Type: decimal number. Centre latitude (WGS84) for an area search. Give lat and lon together to only return events within radius_km of the point. Unit: decimal degrees (WGS84).
Type: decimal number. Centre longitude (WGS84). Unit: decimal degrees (WGS84).
Type: decimal number. Search radius in km around lat/lon (default 25). Unit: kilometres.
Type: integer. Max events to return, 1 to 100 (default 25). Unit: items. Through this API: default 25, maximum 100.
Type: integer. Skip this many matching events (for pagination). Unit: items.

Result

Source: Norwegian news events. Retrieved 2026-11-15T14:42:28Z in 0.498 seconds.

Showing 2 of 286 results in compact format.

  1. name:
    Trafikk – Kvinesdal
    id:
    politilogg-26nnkf-2
    lat:
    58.52206
    lon:
    6.95177
  2. name:
    Trafikk – Stord
    id:
    politilogg-26qdr6-1
    lat:
    59.86009
    lon:
    5.40923
Show all fields in HTML
since:
2026-11-14T14:42:28.314002+00:00
until:
not reported by source
total:
286
matched:
2
offset:
0
count:
2
items:

2 results

  1. id:
    politilogg-26nnkf-2
    name:
    Trafikk – Kvinesdal
    lat:
    58.52206
    lon:
    6.95177
    source:
    Politiloggen
    summary:
    Bilberger er på vei og vil hente bilen. Politiet har tatt avhør av fører og passasjerene som var igjen på stedet. Politiet avslutter og oppretter sak.
    location:
    Kvinesdal
    link:
    https://www.politiet.no/politiloggen?id=26nnkf-2
    severity:
    low
    tags:

    2 results

    1. trafikk
    2. kvinesdal
    is_active:
    no
    pub_date:
    2026-11-14T23:15:44.8544991+00:00
    first_seen:
    2026-11-14T23:49:49.629249+00:00
    last_seen:
    2026-11-15T01:15:48.209644+00:00
  2. id:
    politilogg-26qdr6-1
    name:
    Trafikk – Stord
    lat:
    59.86009
    lon:
    5.40923
    source:
    Politiloggen
    summary:
    Fører og passasjer framstår uskadd men blir tatt med av ambulanse til legevakten for en videre sjekk. Et felt er stengt. Trafikken blir dirigert forbi stedet. Bilberger er rekvirert.
    location:
    Stord
    link:
    https://www.politiet.no/politiloggen?id=26qdr6-1
    severity:
    low
    tags:

    2 results

    1. trafikk
    2. stord
    is_active:
    no
    pub_date:
    2026-11-14T16:14:38.411927+00:00
    first_seen:
    2026-11-14T16:22:26.691506+00:00
    last_seen:
    2026-11-14T18:14:09.176830+00:00
Will you use the result in generated code?

Open the same result as JSON

Is data missing or incorrect? Send feedback about this result.

Continue exploring

How an AI agent should use this page

Ground rule: Navigate with HTML GET links to keep explanations and relationships. Use the page's JSON alternative only when concrete values must be extracted, compared or computed.

How to use the search_news lookup

  1. Replace the placeholders in the HTML GET template; remove optional parameters you do not need.
  2. Check types, units, limits and ID formats in the parameter table.
  3. Follow linked results to canonical pages before combining sources.

Misreading to avoid: An empty list means "no results for this lookup". An error message or unavailable source does not mean the data does not exist.

Source-specific next step

Go to the source page for other operations. Use the JSON template only after the HTML result shows that the parameters and source are correct.