{"source":"geonorge","operation":"search_address","description":"Search Norwegian addresses by free text. Signature: search_address(text: string, optional, default None; kommunenummer: string, optional, default None; limit: integer, items, optional, default 20; query: string, optional, default None; offset: integer, items, optional, default 0).","signature":"search_address(text: string, optional, default None; kommunenummer: string, optional, default None; limit: integer, items, optional, default 20; query: string, optional, default None; offset: integer, items, optional, default 0)","parameters":[{"name":"text","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Address query, e.g. \"Karl Johans gate 1\" or \"Storgata\".","unit":null},{"name":"kommunenummer","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Optional 4-digit municipality code to restrict the search (e.g. \"0301\" for Oslo, \"4601\" for Bergen).","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer"},"required":false,"default":20,"description":"Max hits to return, 1 to 100 (default 20). Unit: items.","unit":"items"},{"name":"query","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Alias for `text` (use one or the other).","unit":null},{"name":"offset","type":"integer","schema":{"type":"integer","minimum":0,"default":0},"display_type":"integer","required":false,"default":0,"description":"Number of list items to skip before returning the page.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge/search_address?text={text}&kommunenummer={kommunenummer}&limit=20&query={query}&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"total_count":{"type":"integer"},"addresses":{"type":"array","items":{"type":"object","properties":{"address":{"type":["string","null"]},"postnummer":{"type":["string","null"]},"poststed":{"type":["string","null"]},"kommunenummer":{"type":["string","null"]},"kommunenavn":{"type":["string","null"]},"lat":{"type":["number","null"]},"lon":{"type":["number","null"]},"epsg":{"type":["string","null"]}},"additionalProperties":false,"required":["address","lat","lon"]}}},"additionalProperties":false,"required":["total_count","addresses"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["place"],"description":"Recognized records and stable operation identifiers are projected; an empty array means the successful payload contained no recognizable entity."},"error_contract":{"scope":"top-level HTTP error response; never part of a success payload","schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"details":{"type":"object"}},"additionalProperties":false,"required":["code","message","retryable"]},"suggestion":{"type":"string"},"_meta":{"type":"object","properties":{"retrieved_at":{"type":"string","format":"date-time"},"language":{"type":"string","const":"en"},"content_languages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"object"}}},"required":["retrieved_at","language","content_languages","sources"]},"_links":{"type":"object","properties":{"self":{"type":"string","format":"uri"},"api_index":{"type":"string","format":"uri"},"feedback":{"type":"string","format":"uri"}},"required":["self","api_index","feedback"],"additionalProperties":false}},"additionalProperties":false,"required":["error","suggestion","_meta","_links"]},"statuses":{"400":{"codes":["MISSING_PARAMETER","INVALID_PARAMETER","INVALID_REQUEST"],"retryable":false},"404":{"codes":["SOURCE_NOT_FOUND","OPERATION_NOT_FOUND","ENTITY_NOT_FOUND"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"502":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":true}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge/search_address/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge/search_address","source":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["total_count","addresses","addresses[].address","addresses[].postnummer","addresses[].poststed","addresses[].kommunenummer","addresses[].kommunenavn","addresses[].lat","addresses[].lon","addresses[].epsg"],"output_fields_truncated":false,"canonical_field_aliases":{"latitude":["addresses[].lat"],"longitude":["addresses[].lon"]},"response_example":{"source":"geonorge","operation":"search_address","parameters":{"text":"example value","kommunenummer":"example value","limit":20,"query":"example value"},"data":{"total_count":1,"addresses":[{"address":"example value","postnummer":"example value","poststed":"example value","kommunenummer":"example value","kommunenavn":"example value","lat":59.91,"lon":10.75,"epsg":"example value"}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"geonorge","name":"Geonorge","description":"Address search, place names, nearby places and reverse geocoding from the Norwegian Mapping Authority.","cache_ttl_seconds":60}]},"_provenance":{"data":{"source":"geonorge","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge"},"entities":{"source":"geonorge","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge/search_address","source":"https://allemannsdata.com/wiki/api/v1/kilder/geonorge","wiki":"https://allemannsdata.com/wiki/kilder/geonorge/search_address/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
