Regobs API (observasjoner av snø, is, vann og skred)
Levert av Norges vassdrags- og energidirektorat · org.nr. 970205039
ÅpenIngen autentiseringJSON28 endepunkter
Feltobservasjoner fra publikum og fagfolk: snødekke, skred, faretegn, isforhold, flom og jordskred, med bilder, posisjon og tidspunkt. Datagrunnlaget bak Varsom og Regobs-appen. Søk er en POST med filtre i JSON.
Kom i gang
curl -X POST https://api.regobs.no/v5/Search \
-H "Content-Type: application/json" -d '{"NumberOfRecords":3,"LangKey":1}'Endepunkter (28)
Search · 8
- POST
/SearchReturns a list of complete registrations that matches your filter. Empty list if no registrations found. Use POST /Search/AtAGlance for faster search. - POST
/Search/AtAGlanceSimplified search for registrations. Returns less data per registration, so faster than /Search Returns empty list if no registrations found. Returns only first attachment and count on how many other attachments user can expect when opening a detailed info - POST
/Search/AttachmentsSearch for images only - POST
/Search/CountReturns search result count - POST
/Search/DeletedRegistrationsReturns list of regIds from deleted registrations that can be filtered with criteria model. Used with offline syncing on mobile devices. - POST
/Search/MyRegistrationsReturns a list of complete registrations that were registered by the logged in user. Empty list if no registrations found. - POST
/Search/MyRegistrationsCountReturns number of registrations that were registered by the logged in user - GET
/Search/SearchCriteria/{geoHazards}/{langKey}Returns relevant search criteria for the specified geo hazard types and language. This can help you to find the right criteria to use in the other search methods.
Registration · 7
- POST
/RegistrationCreate a new registration. The purpose is to send in one or more forms. - GET
/Registration/Caaml/{regId}Get a registration in CAAML format - POST
/Registration/PlotPreviewPngGenerate a preview figure for a snow profile registration. - POST
/Registration/Validate/{id}Validate registration data. - DELETE
/Registration/{id}Delete registration - PUT
/Registration/{id}Update registration. Updating existing obsLocation with new values will be possible only if there is no other registrations connected to that location from before. Otherwise new values are ignored. User don't get any error message. - GET
/Registration/{regId}/{langKey}Get registration by regId.
Account · 4
- GET
/Account/GetObserver - GET
/Account/Groups - GET
/Account/Mypage - PUT
/Account/UpdateObserverSet nickname for an observer
Trip · 3
- POST
/Trip - PUT
/Trip - GET
/Trip/ObserverTripsFetches GeoJSON representations of the pre-approved observation trips. Only available for users in Obskorps administrative group.
Attachment · 2
- POST
/Attachment/UploadUpload an image to a registration - GET
/Attachment/{format}/{id}Get Attachment file by id
Location · 2
- GET
/Location/WithinRadiusReturns a list of locations within the given radius from the given coordinates. For an unauthenticated client, it only returns public ice locations. For an authenticated client, it returns public locations as well as the authenticated user's private locations. Empty list if no registrations found. - GET
/Location/{locationId}
Vis 2 grupper til
Helptext · 1
- GET
/HelpTextGet a list of helptext objects.
KdvElements · 1
- GET
/KdvElementsReturns id, name, and description for data types. This is most often used in input fields, dropdowns etc. KDVElements that belong to a geo hazard are prefixed with the corresponding hazard (Snow_, Ice_, Water_, Landslide_). If a type is missing in given language, we will fill the holes with equivalent types in English (if they exists)