Skip to content

Commit 67a3cc4

Browse files
authored
Merge pull request #5 from r33hab/curate-local-and-institution-apis
Curate county, municipal and institution APIs; drop dead and placeholder links
2 parents 7e310c4 + f857b5f commit 67a3cc4

26 files changed

Lines changed: 13290 additions & 6662 deletions

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project are documented here. The format follows
44
[Keep a Changelog](https://keepachangelog.com), newest first, grouped by date.
55

6+
## 2026-11-10
7+
### Added
8+
- Twenty more curated APIs from counties, municipalities and smaller institutions, each probed live: NDLA's open APIs (search, articles, images, audio, concepts, learning paths, subject taxonomy, oEmbed) with their OpenAPI specs, Nasjonalmuseet's collection API (Linked Art and IIIF without a key), Norid RDAP for .no domains, the BIBSYS authority file (SRU), Nord Pool's day-ahead prices for NO1 to NO5, ReMidt's waste collection calendar (also Fosen), and the ArcGIS map servers of Bergen, Fredrikstad, IKT Agder (Arendal, Grimstad, Froland) and the Vestland, Trøndelag, Troms and Agder county municipalities.
9+
- `registry/retired.yaml`: harvested entries whose service a manual check found gone are left out of the registry, with the reason; the catalogue still lists them, so the weekly harvest would otherwise bring them back. Starts with Oslo's two HC-plasser WFS entries, whose host no longer resolves.
10+
### Changed
11+
- The six NDLA APIs that Felles datakatalog lists under Vestland fylkeskommune (NDLA's host county) are curated under "NDLA (Vestland fylkeskommune)" with real endpoints and content licences instead of the catalogue's GPL code licence.
12+
- `sikt-bibsys-sru` also lists the catalogue's OAI-PMH endpoint.
13+
### Fixed
14+
- Harvested entries carried placeholder links from the catalogue (`http://example.com/` as endpoint for NDLA, NVE HydAPI and a Kartverket test service); URLs on the RFC 2606 example domains and localhost are now dropped at harvest.
15+
616
## 2026-10-21
717
### Fixed
818
- 969 of the 1048 harvested APIs showed "tilgang ukjent" because Felles datakatalog leaves access rights blank for most map services. Access now falls back to Geonorge's kartkatalog record for the service (760), then to the access rights of the datasets the service serves (151), with the strictest value when the two disagree (10). The remaining 48 were checked by hand (an anonymous call and the owner's docs) and recorded with the reason in `registry/access-review.yaml`; 5 stay unknown, each with a caveat saying why (dead address, 403, no endpoint). Every harvested entry now says where its access value came from, and the API page shows it.

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Regler som holder kvaliteten oppe:
5353
- **Tilgang som katalogene ikke oppgir** (verken Felles datakatalog, Geonorge eller datasettene tjenesten leverer)
5454
sjekkes for hånd og føres i `registry/access-review.yaml` med katalogens URI, verdien, og en kort `reason` om hva
5555
du så: et anonymt kall, dokumentasjonen. Gir katalogene en verdi senere, vinner den over gjennomgangen.
56+
- **Tjenester som er borte** (vertsnavnet finnes ikke lenger) men fortsatt står i katalogen, føres i
57+
`registry/retired.yaml` med katalogens URI og en kort `reason`. Da holdes de utenfor registeret til linjen fjernes.
5658
- **Private tjenester** tas med når de er åpne og brukes mye av norske utviklere, med `sector: privat`.
5759
- **Åpne, men uannonserte API-er** (JSON bak en offentlig nettside, en Swagger ingen lenker til) tas med når de
5860
svarer uten innlogging, med taggen `undocumented`.

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ A GitHub Actions workflow does the same every Monday and commits the result.
8888

8989
| Source | Entries | Notes |
9090
|---|---|---|
91-
| Felles datakatalog (Digdir) | about 1 060 | Everything agencies have registered as a data service, with endpoints, specs, licences and keywords pulled over SPARQL |
92-
| Curated YAML in `registry/curated/` | 145 | Brønnøysundregistrene, SSB, Entur, MET, Kartverket, Nav, Skatteetaten, Digdir, Altinn, Vegvesen, Norges Bank, Stortinget, NVE, Udir, FHI, Helsedirektoratet, Lovdata, Elhub, Sikt, Tolletaten, Fiskeridirektoratet, Finanstilsynet, Vinmonopolet, Luftfartstilsynet and more, each with access, auth, formats, docs and a `quick_start` that was run before it was committed |
93-
| OpenAPI documents | 119 specs, 1 313 operations | Resolved behind `spec_url` and Swagger UI pages; the Petstore sample that unconfigured Swagger UIs ship is filtered out |
91+
| Felles datakatalog (Digdir) | about 1 080 | Everything agencies have registered as a data service, with endpoints, specs, licences and keywords pulled over SPARQL |
92+
| Curated YAML in `registry/curated/` | 165 | Brønnøysundregistrene, SSB, Entur, MET, Kartverket, Nav, Skatteetaten, Digdir, Altinn, Vegvesen, Norges Bank, Stortinget, NVE, Udir, FHI, Helsedirektoratet, Lovdata, Elhub, Sikt, NDLA, Nasjonalmuseet, Norid, Tolletaten, Fiskeridirektoratet, Finanstilsynet, Vinmonopolet, Luftfartstilsynet, county and municipal map servers and more, each with access, auth, formats, docs and a `quick_start` that was run before it was committed |
93+
| OpenAPI documents | 140 specs, 2 179 operations | Resolved behind `spec_url` and Swagger UI pages; the Petstore sample that unconfigured Swagger UIs ship is filtered out |
9494

9595
Every curated entry is link-checked (`ok`, `answers`, `missing`) and the verdict is shown on its page.
9696

@@ -103,7 +103,7 @@ OpenAPI docs ──▶ enrich ──┘ registry/operations.json
103103
```
104104

105105
- **Harvest** reads Felles datakatalog through its search API (the list) and SPARQL endpoint (the fields the list leaves out), joined on the data service URI.
106-
- **Access** comes from the service's own access rights in the catalogue; when those are blank (most map services), from Geonorge's kartkatalog record for the service, then from the access rights of the datasets it serves (the strictest wins, and a disagreement between Geonorge and the datasets takes the strictest value). What none of them answer is checked by hand and recorded with the reason in `registry/access-review.yaml`. Each entry's `source.access_from` says which one decided, and the site shows it.
106+
- **Access** comes from the service's own access rights in the catalogue; when those are blank (most map services), from Geonorge's kartkatalog record for the service, then from the access rights of the datasets it serves (the strictest wins, and a disagreement between Geonorge and the datasets takes the strictest value). What none of them answer is checked by hand and recorded with the reason in `registry/access-review.yaml`. Each entry's `source.access_from` says which one decided, and the site shows it. Placeholder links the catalogue holds (`example.com`) are dropped, and services a manual check found gone are left out through `registry/retired.yaml`.
107107
- **Curate** merges hand-written YAML on top: curated fields win, harvested fields fill gaps, matched by catalogue URI or identical endpoint.
108108
- **Enrich** fetches OpenAPI and Swagger documents, including the ones hidden behind a Swagger UI page, and indexes every operation.
109109
- **Build** writes `registry.json` (the product), `llms.txt`, and an SQLite FTS5 index that is rebuilt on demand.
@@ -149,7 +149,7 @@ src/norapi/
149149
check.py link checker
150150
site.py static site generator
151151
cli.py / mcp_server.py
152-
registry/ curated YAML, access-review.yaml, registry.json, llms.txt, specs.json, operations.json
152+
registry/ curated YAML, access-review.yaml, retired.yaml, registry.json, llms.txt, specs.json, operations.json
153153
site/assets/ design tokens, stylesheet, client-side search, Open Graph image
154154
tests/ unit tests on recorded fixtures, no network
155155
docs/adr/ decisions
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
updated: 2026-11-10
2+
provider:
3+
name: Agder fylkeskommune
4+
orgnr: "921707134"
5+
sector: fylke
6+
apis:
7+
- id: agder-fylkeskommune-kartserver
8+
title: Agder fylkeskommunes kartserver (ArcGIS REST)
9+
title_en: Agder county map server (ArcGIS REST)
10+
description: >-
11+
Fylkeskommunens kartlag: kulturminnevern (SEFRAK-bygninger, arkeologiske registreringer,
12+
friluftslivskartlegging), arealregnskap per kommune og flybilder (ABI) som ImageServer. Hvert lag spørres med
13+
/query og svarer i JSON eller GeoJSON. Uten nøkkel.
14+
category: kart-og-geodata
15+
access: open
16+
auth: none
17+
formats: [JSON, GeoJSON]
18+
endpoints:
19+
- https://karttjenester.agderfk.no/arcgis/rest/services
20+
docs_url: https://karttjenester.agderfk.no/arcgis/rest/services
21+
probe_url: https://karttjenester.agderfk.no/arcgis/rest/services?f=json
22+
keywords: [agder, fylkeskommune, kart, arcgis, sefrak, kulturminner, arealregnskap, flybilder, gis]
23+
tags: [no-auth]
24+
caveats:
25+
- Ingen lisens oppgitt.
26+
quick_start: |
27+
curl "https://karttjenester.agderfk.no/arcgis/rest/services?f=json"
28+
curl "https://karttjenester.agderfk.no/arcgis/rest/services/Kulturminnevern/sefrak/MapServer/0/query?where=1%3D1&outFields=*&resultRecordCount=5&f=geojson"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
updated: 2026-11-10
2+
provider:
3+
name: Bergen kommune
4+
orgnr: "964338531"
5+
sector: kommune
6+
apis:
7+
- id: bergen-kommune-kartserver
8+
title: Bergen kommunes kartserver (ArcGIS REST)
9+
title_en: Bergen municipality map server (ArcGIS REST)
10+
description: >-
11+
Bergen kommunes egne kartlag i over 30 mapper: Bymiljøetaten (badeplasser, bytrær, brøyteroder, boligsoner for
12+
parkering), kommuneplanens arealdel, kulturminner, naturrisiko og klima, solkart og statistikk per grunnkrets og
13+
levekårssone. Hvert lag spørres med /query og svarer i JSON eller GeoJSON. Uten nøkkel.
14+
category: kart-og-geodata
15+
access: open
16+
auth: none
17+
formats: [JSON, GeoJSON]
18+
endpoints:
19+
- https://kart.bergen.kommune.no/arcgis/rest/services
20+
docs_url: https://kart.bergen.kommune.no/arcgis/rest/services
21+
probe_url: https://kart.bergen.kommune.no/arcgis/rest/services?f=json
22+
keywords: [bergen, kart, arcgis, kartlag, badeplasser, bytrær, kommuneplan, kulturminner, gis]
23+
tags: [no-auth]
24+
caveats:
25+
- Ingen lisens oppgitt.
26+
- Lagene er kommunens arbeidskart; navn og innhold endres uten varsel.
27+
quick_start: |
28+
# mappene og tjenestene på serveren
29+
curl "https://kart.bergen.kommune.no/arcgis/rest/services?f=json"
30+
# badeplassene som GeoJSON
31+
curl "https://kart.bergen.kommune.no/arcgis/rest/services/Bymiljoetaten/Badeplasser_i_Bergen/MapServer/0/query?where=1%3D1&outFields=*&f=geojson"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
updated: 2026-11-10
2+
provider:
3+
name: Fredrikstad kommune
4+
orgnr: "940039541"
5+
sector: kommune
6+
apis:
7+
- id: fredrikstad-kommune-kartserver
8+
title: Fredrikstad kommunes kartserver (ArcGIS REST)
9+
title_en: Fredrikstad municipality map server (ArcGIS REST)
10+
description: >-
11+
Hele kartserveren bak Fredrikstads mange enkeltlag i katalogen: plan og regulering, kulturetaten (skulpturer,
12+
turforslag, anlegg), Borg havn, renovasjon, bakgrunnskart og lag for nabokommunene Hvaler og Sarpsborg. Hvert lag
13+
spørres med /query og svarer i JSON eller GeoJSON. De fleste mappene er åpne uten nøkkel.
14+
category: kart-og-geodata
15+
access: open
16+
auth: none
17+
formats: [JSON, GeoJSON]
18+
endpoints:
19+
- https://arcgis.fredrikstad.kommune.no/server/rest/services
20+
docs_url: https://arcgis.fredrikstad.kommune.no/server/rest/services
21+
probe_url: https://arcgis.fredrikstad.kommune.no/server/rest/services?f=json
22+
keywords: [fredrikstad, hvaler, sarpsborg, kart, arcgis, reguleringsplan, kommuneplan, skulptur, gis]
23+
tags: [no-auth]
24+
caveats:
25+
- Ingen lisens oppgitt.
26+
- Enkelte mapper (blant annet helse og velferd, eiendomsskatt) krever innlogging.
27+
quick_start: |
28+
curl "https://arcgis.fredrikstad.kommune.no/server/rest/services?f=json"
29+
# skulpturer i Fredrikstad som GeoJSON
30+
curl "https://arcgis.fredrikstad.kommune.no/server/rest/services/Kulturetaten/Skulptur/FeatureServer/0/query?where=1%3D1&outFields=*&f=geojson"

‎registry/curated/ikt-agder.yaml‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
updated: 2026-11-10
2+
provider:
3+
name: IKT Agder IKS
4+
orgnr: "985359385"
5+
sector: kommune
6+
apis:
7+
- id: ikt-agder-kartserver
8+
title: Kartserver for Arendal, Grimstad og Froland (IKT Agder)
9+
title_en: Map server for Arendal, Grimstad and Froland (IKT Agder)
10+
description: >-
11+
Det interkommunale IT-selskapets kartserver med én mappe per kommune: kommuneplaner, reguleringsplaner, grunnkart,
12+
flom- og kvikkleiresoner og planinnsyn for Arendal, Grimstad og Froland. Lagene spørres med /query (JSON eller
13+
GeoJSON) og finnes også som WMS. Uten nøkkel.
14+
category: kart-og-geodata
15+
access: open
16+
auth: none
17+
formats: [JSON, GeoJSON, WMS]
18+
endpoints:
19+
- https://karttjenester.ikt-agder.no/arcgis/rest/services
20+
docs_url: https://karttjenester.ikt-agder.no/arcgis/rest/services
21+
probe_url: https://karttjenester.ikt-agder.no/arcgis/rest/services?f=json
22+
keywords: [arendal, grimstad, froland, agder, kart, arcgis, kommuneplan, reguleringsplan, flomsone, gis]
23+
tags: [no-auth]
24+
caveats:
25+
- Ingen lisens oppgitt.
26+
quick_start: |
27+
curl "https://karttjenester.ikt-agder.no/arcgis/rest/services/grimstad?f=json"
28+
# 200-års flomsone i Grimstads kommuneplan
29+
curl "https://karttjenester.ikt-agder.no/arcgis/rest/services/grimstad/Kommuneplan2026/MapServer/80/query?where=1%3D1&outFields=*&resultRecordCount=1&f=geojson"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
updated: 2026-11-10
2+
provider:
3+
name: Nasjonalmuseet
4+
orgnr: "985686092"
5+
sector: stat
6+
apis:
7+
- id: nasjonalmuseet-api
8+
title: Nasjonalmuseets samlings-API
9+
title_en: National Museum of Norway collection API
10+
description: >-
11+
Rundt 60 000 verk fra Nasjonalmuseets samling: kunst, design, arkitektur og kunsthåndverk. Linked Art-endepunktene
12+
(JSON-LD) og IIIF-manifestene med bildene svarer uten nøkkel; /api/v1 har tekst-, filter- og semantisk søk og
13+
krever en gratis nøkkel som utstedes automatisk.
14+
category: kultur-og-kunnskap
15+
access: open
16+
auth: none
17+
formats: [JSON, JSON-LD, IIIF]
18+
endpoints:
19+
- https://api.nasjonalmuseet.no/api/linkedart/object
20+
- https://api.nasjonalmuseet.no/api/v1/
21+
docs_url: https://api.nasjonalmuseet.no/api/docs
22+
spec_url: https://api.nasjonalmuseet.no/api/openapi.json
23+
probe_url: https://api.nasjonalmuseet.no/api/linkedart/object/text-search?q=munch
24+
keywords: [kunst, museum, maleri, samling, munch, linked art, iiif, art collection]
25+
tags: [no-auth]
26+
caveats:
27+
- "/api/v1 krever en gratis nøkkel i X-API-Key; registrering på /api/v1/keys/register."
28+
- Vilkårene på /api/v1/terms var merket som plassholdertekst, ikke gjennomgått, da oppføringen ble laget (10.11.2026).
29+
quick_start: |
30+
curl "https://api.nasjonalmuseet.no/api/linkedart/object/text-search?q=munch"

0 commit comments

Comments
 (0)