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: string, 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.
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: string. "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.
Type: integer. Skip this many matching events (for pagination). Unit: items.

Result

Source: Norwegian news events. Retrieved 2026-10-23T13:47:53Z in 2.901 seconds.

Showing 2 of 356 results in compact format.

  1. name:
    Trafikk – Klepp
    id:
    politilogg-26dxvx-2
    lat:
    58.73288
    lon:
    5.35903
  2. name:
    – Eg er ikkje direkte negativ, men meiner heller ikkje at me gjev grønt lys og seier køyr på
    id:
    news-e1a2153e195502dd-no2
    lat:
    61.40422
    lon:
    7.28924
Show all fields in HTML
since:
2026-10-22T13:47:53.284542+00:00
until:
not reported by source
total:
356
matched:
2
offset:
0
count:
2
items:

2 results

  1. id:
    politilogg-26dxvx-2
    name:
    Trafikk – Klepp
    lat:
    58.73288
    lon:
    5.35903
    source:
    Politiloggen
    summary:
    Partene i trafikkuhellet fyller ut skademeldinger. Politiet har avsluttet på stedet. Ingen sak.
    location:
    Klepp
    link:
    https://www.politiet.no/politiloggen
    severity:
    low
    tags:

    2 results

    1. trafikk
    2. klepp
    is_active:
    no
    pub_date:
    2026-10-23T07:34:17.6927577+00:00
    first_seen:
    2026-10-23T07:40:10.316985+00:00
    last_seen:
    2026-10-23T09:38:33.670233+00:00
  2. id:
    news-e1a2153e195502dd-no2
    name:
    – Eg er ikkje direkte negativ, men meiner heller ikkje at me gjev grønt lys og seier køyr på
    lat:
    61.40422
    lon:
    7.28924
    source:
    Sogn Avis
    summary:
    Politikerne ba om mer informasjon før en eventuell etablering av mottak for cruiseskip i Gaupne.
    location:
    Vestland
    link:
    https://www.sognavis.no/eg-er-ikkje-direkte-negativ-men-meiner-heller-ikkje-at-me-gjev-gront-lys-og-seier-koyr-pa/s/80-115-27360
    severity:
    low
    tags:

    5 results

    1. cruise
    2. Gaupne
    3. politikk
    4. mottak
    5. vestland
    pub_date:
    2026-10-23T02:30:00+00:00
    first_seen:
    2026-10-23T03:14:15.869570+00:00
    last_seen:
    2026-10-23T04:30:19.862259+00:00
limit:
25
returned:
2
has_more_results:
yes
next_offset:
2
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.