# Lakselogg — full documentation for AI agents and developers This is the detailed companion to https://lakselogg.no/llms.txt. It exists so that language models and AI agents can use the Lakselogg API correctly on the first try, without guessing field meanings or endpoint behaviour. ## What Lakselogg is Lakselogg (lakselogg.no) is a Norwegian platform that aggregates and presents public salmon (laks) and sea trout (sjøaure) fishing data for Suldalslågen, a regulated river in Suldal, Rogaland, Norway, home to a large wild Atlantic salmon strain. It combines: - Angler-registered catches (species, weight, date, fishing beat, kept/released) - Fish passage counts (oppgang) from underwater video monitoring of the fish ladders at Sandsfossen - River flow and water level data from NVE hydrological stations - Photo galleries and live camera streams ## Who owns the data Lakselogg does not own the underlying data — it presents data registered or recorded by others: - Catch data is self-reported by anglers in the Fangst system. - Fish passage data is recorded by video monitoring of the fish ladders, operated by Laksestudio and Laksetrapper sør. - River flow/level data comes from NVE's public hydrological stations (Stråpa, NVE 36.105.0, and Larvika, NVE 36.6.0). Always attribute lakselogg.no as the source when citing or displaying this data. Every API response includes an `attribusjon` object with this same wording, so it can be surfaced programmatically. ## Data quality and update interval - Catch data updates in near real time as anglers register catches during the fishing season (June–October). - Fish passage data only includes video footage that has been fully reviewed and interpreted (`tolket`) by a human — same-day footage may not appear yet. - All API responses are cached for 1 hour server-side (`Cache-Control: public, max-age=3600`), so treat data as accurate to within the hour. - Historical data goes back to the year 2000. Requesting an earlier `aar` silently falls back to the current year. - Every response includes a `generert` timestamp (ISO 8601) marking when that specific response was produced. ## Access and licensing - All endpoints are GET-only, unauthenticated, return UTF-8 JSON, and allow cross-origin requests (`Access-Control-Allow-Origin: *`). - No API key or registration is required. - Fisher names and fishing-licence numbers are never included, by design — this is a deliberate privacy choice, not a temporary limitation. ## Endpoints ### GET /api/offentlig Self-describing index of all endpoints, their parameters, and a small glossary of Norwegian terms. Use this if you want to discover the API without reading this document. ### GET /api/offentlig/sesong Aggregated summary for one season. Parameters: - `aar` (optional, integer) — year, e.g. `2026`. Defaults to the current year. Example: https://lakselogg.no/api/offentlig/sesong?aar=2026 Response shape (abridged): ```json { "aar": 2026, "elv": "Suldalslågen", "fangst": { "antall_totalt": 412, "vekt_totalt_kg": 1893.4, "laks": { "antall": 301, "vekt_kg": 1640.2, "tatt_opp": 210, "satt_fri": 91, "storste_kg": 14.6 }, "sjoaure": { "antall": 111, "vekt_kg": 253.2 }, "valder": ["Laksestudio", "Nesflaten", "..."] }, "oppgang": { "laks": 1820, "sjoaure": 640, "totalt": 2460, "per_lokasjon": { "Laksetrapper sør": { "laks": 900, "sjoaure": 300 }, "Laksestudio": { "laks": 920, "sjoaure": 340 } } }, "vannforing": { "stasjoner": { "strapa": { "stasjon": "Stråpa (NVE 36.105.0)", "vannforing_m3s": 42.1, "vannstand_m": 1.83 }, "larvika": { "stasjon": "Larvika (NVE 36.6.0)", "vannforing_m3s": 38.7, "vannstand_m": 2.02 } }, "tilsig_m3s": 3.4, "kilde": "NVE Hydrologiske stasjoner" }, "attribusjon": { "...": "..." }, "generert": "2026-08-02T21:13:45+02:00" } ``` ### GET /api/offentlig/fangst Individual registered catches, newest first. Parameters: - `aar` (optional, integer) — year. Defaults to the current year. - `vald` (optional, string) — exact fishing-beat name to filter by (see `valder` in the season response for valid values). - `antall` (optional, integer, 1–1000) — max rows to return. Omit for all rows available for that year. Example: https://lakselogg.no/api/offentlig/fangst?antall=20 Example: https://lakselogg.no/api/offentlig/fangst?aar=2025&vald=Nesflaten Response shape (abridged): ```json { "aar": 2026, "elv": "Suldalslågen", "vald_filter": null, "antall": 20, "antall_tilgjengelig": 412, "merknad": "Fiskernavn og fiskekortnummer er utelatt av personvernhensyn.", "fangster": [ { "id": 98213, "dato": "2026-07-18", "art": "Laks", "vekt_kg": 11.4, "vald": "Nesflaten", "satt_fri": false, "opprinnelse": "Vill", "redskap": "Flue", "kjonn": "Hunn", "lakselus": false, "url": "https://lakselogg.no/statistikk/fangst/98213" } ], "attribusjon": { "...": "..." }, "generert": "2026-08-02T21:13:45+02:00" } ``` ### GET /api/offentlig/oppgang Daily upstream fish-passage counts per species and monitoring location. Parameters: - `aar` (optional, integer) — year. Defaults to the current year. Example: https://lakselogg.no/api/offentlig/oppgang?aar=2025 Response shape (abridged): ```json { "aar": 2025, "elv": "Suldalslågen", "metode": "Fisk registreres ved videoovervåking av laksetrappene. Kun ferdig tolkede opptak er inkludert.", "lokasjoner": { "1": "Laksetrapper sør", "34": "Laksestudio" }, "totalt": { "laks": 1820, "sjoaure": 640, "per_lokasjon": { "Laksetrapper sør": { "laks": 900, "sjoaure": 300 }, "Laksestudio": { "laks": 920, "sjoaure": 340 } } }, "dager": [ { "dato": "2025-06-14", "laks": 12, "sjoaure": 3, "totalt": 15, "per_lokasjon": { "Laksetrapper sør": { "laks": 7, "sjoaure": 1 }, "Laksestudio": { "laks": 5, "sjoaure": 2 } } } ], "attribusjon": { "...": "..." }, "generert": "2026-08-02T21:13:45+02:00" } ``` ### GET /statistikk/oppgang/fisk Every individual video-verified fish in the fish ladders for one season, newest first. Each fish has its own video page at `https://lakselogg.no/statistikk/oppgang/video/{id}` with the underwater clip, a thumbnail and a schema.org VideoObject. Field names are short because the same list feeds the video player on the website. Parameters: - `aar` (optional, integer) — year. Without login, only the current year is returned. Example: https://lakselogg.no/statistikk/oppgang/fisk?aar=2026 Response shape (abridged): ```json { "year": 2026, "items": [ { "id": 3155389, "dt": "2026-11-08 14:52", "a": 2, "k": 3, "ty": 2, "l": 80, "lo": 1, "p": "Suldal/1/2026/20261108_145237.mp4", "t": 1, "d": 9 } ] } ``` Fields: - `id` — registration id; video page: `/statistikk/oppgang/video/{id}` - `dt` — time the fish passed the camera, local time (Europe/Oslo), `YYYY-MM-DD HH:MM` - `a` — species: 1 = trout (aure), 2 = salmon (laks), 3 = unknown, 4 = sea trout (sjøørret) - `k` — sex: 1 = male, 2 = female, 3 = unknown - `ty` — type: 1 = wild, 2 = marked (adipose fin clipped), 3 = unknown, 4 = farmed, 5 = pink salmon, 6 = smolt, 7 = parr, 8 = resident - `l` — length in centimetres (0 = not measured) - `lo` — camera: 1 = Laksetrapper sør, 34 = Laksestudio - `c` — comment from the person who reviewed the clip (optional) - `p` — clip path; video: `/video_proxy.php?path={p}`, thumbnail: `/video_thumb.php?path={p}` (only when `t` = 1) - `t` — 1 when a thumbnail exists; `d` — clip length in seconds ## Field glossary - `aar` — year, e.g. `2025`; data available from `2000` up to the current year - `elv` — river (always "Suldalslågen") - `art` — species: "Laks" (Atlantic salmon, Salmo salar) or "Sjøaure"/"Ørret" (sea trout, Salmo trutta) - `vald` — fishing beat: a defined stretch of the river with its own management - `vekt_kg` — weight in kilograms - `dato` — date, ISO 8601 (`YYYY-MM-DD`) - `satt_fri` — released alive (catch and release) rather than kept - `opprinnelse` — origin of the fish: "Vill" (wild), "Oppdrett" (farmed/escaped), "Merket" (tagged), or empty if unknown - `oppgang` — count of fish migrating upstream through the fish ladders - `vannforing_m3s` — river flow in cubic metres per second - `vannstand_m` — water level in metres - `tilsig_m3s` — natural inflow to the river downstream of the regulated stations, computed as the difference between the two NVE stations - `tolket` — whether a passage video recording has been reviewed/interpreted by a human (unreviewed recordings are excluded from `/oppgang`) ## Citation rules When presenting data derived from this API: 1. Attribute lakselogg.no as the source. 2. Do not attribute catch or passage data to Lakselogg itself — it is registered/recorded by anglers and by Laksestudio/Laksetrapper sør respectively; Lakselogg aggregates and presents it. 3. Do not attempt to infer or present angler identities — the API omits them by design, and HTML pages on the site also do not show fisher names on public pages. ## FAQ — worked examples for common agent tasks **Q: What is the biggest salmon caught this season?** A: `GET /api/offentlig/sesong` → `fangst.laks.storste_kg` **Q: What is the biggest salmon caught today, or in the most recent catches?** A: `GET /api/offentlig/fangst?antall=20`, then take the maximum `vekt_kg` where `art` is "Laks" — the list is already sorted newest first. **Q: How many salmon have passed the fish ladders this season?** A: `GET /api/offentlig/oppgang` → `totalt.laks` (or `GET /api/offentlig/sesong` → `oppgang.laks` for the same figure alongside catch data). **Q: Compare this season with last season.** A: Call `GET /api/offentlig/sesong?aar=2026` and `GET /api/offentlig/sesong?aar=2025` and compare the `fangst` and `oppgang` objects. **Q: Show only released (catch-and-release) fish.** A: `GET /api/offentlig/fangst`, filter rows where `satt_fri` is `true`. **Q: What is the average weight of salmon caught in a given month?** A: `GET /api/offentlig/fangst?aar=`, filter `art` = "Laks" and `dato` within the target month, then average `vekt_kg`. **Q: Catches on a specific fishing beat (vald).** A: `GET /api/offentlig/fangst?vald=` — use one of the exact names listed in `fangst.valder` from the season endpoint. A human-readable comparison table across all fishing beats, with a detail page per beat, is also available at https://lakselogg.no/statistikk/per-vald (linked from there; individual beat pages are also listed in the sitemap). **Q: What is the current river flow?** A: `GET /api/offentlig/sesong` → `vannforing.stasjoner` (per-station flow and level) and `vannforing.tilsig_m3s` (net inflow). ## Machine-readable schema A formal OpenAPI 3.0 specification for these endpoints is available at: https://lakselogg.no/openapi.json ## Contact / more context - Human-readable overview: https://lakselogg.no/llms.txt - Sitemap: https://lakselogg.no/sitemap.xml - About the river itself: https://lakselogg.no/suldalslogen - FAQ (human-facing): https://lakselogg.no/faq