{"source":"sodir","operation":"get_field_production","description":"Get the reported production history for one field.","parameters":[{"name":"field","schema":{"type":"string"},"required":true,"default":null,"description":"Field name, e.g. \"EKOFISK\". An unambiguous partial name works."},{"name":"resolution","schema":{"type":"string"},"required":false,"default":"yearly","description":"\"yearly\" (default) or \"monthly\"."},{"name":"from_year","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Optional inclusive year bounds."},{"name":"to_year","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Optional inclusive year bounds."},{"name":"limit","schema":{"type":"integer"},"required":false,"default":200,"description":"Maximum rows to return (default 200, max 200). Monthly series run to hundreds of rows, so bound the years for a long field."},{"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."}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/sodir/get_field_production?field={field}&resolution=yearly&from_year={from_year}&to_year={to_year}&limit=200&offset=0","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"field":{"type":"string"},"resolution":{"type":"string","enum":["yearly","monthly"]},"count":{"type":"integer"},"returned":{"type":"integer"},"production":{"type":"array","items":{"type":"object","properties":{"field":{"type":["string","null"]},"year":{"type":["integer","null"]},"month":{"type":["integer","null"]},"oil_mill_sm3":{"type":["number","null"]},"gas_bill_sm3":{"type":["number","null"]},"ngl_mill_sm3":{"type":["number","null"]},"condensate_mill_sm3":{"type":["number","null"]},"oil_equivalent_mill_sm3":{"type":["number","null"]},"produced_water_mill_sm3":{"type":["number","null"]}},"additionalProperties":false}},"note":{"type":["string","null"]}},"additionalProperties":false,"required":["field","resolution","count","returned","production"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"intentionally_none","entity_types":[],"description":"No stable cross-source entity projection is defined for this operation; entities is intentionally empty."},"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/sodir/get_field_production/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/sodir/get_field_production","source":"https://allemannsdata.com/wiki/api/v1/kilder/sodir","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["field","resolution","count","returned","production","production[].field","production[].year","production[].month","production[].oil_mill_sm3","production[].gas_bill_sm3","production[].ngl_mill_sm3","production[].condensate_mill_sm3","production[].oil_equivalent_mill_sm3","production[].produced_water_mill_sm3","note"],"output_fields_truncated":false,"canonical_field_aliases":{},"response_example":{"source":"sodir","operation":"get_field_production","parameters":{"field":"example value","resolution":"yearly","from_year":1,"to_year":1,"limit":200},"data":{"field":"example value","resolution":"yearly","count":1,"returned":1,"production":[{"field":"example value","year":1,"month":1,"oil_mill_sm3":1.0,"gas_bill_sm3":1.0,"ngl_mill_sm3":1.0,"condensate_mill_sm3":1.0,"oil_equivalent_mill_sm3":1.0,"produced_water_mill_sm3":1.0}],"note":"example value"},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"sodir","name":"Sokkeldirektoratet factpages","description":"Fields, production, reserves, wellbores, discoveries, production licences, companies and offshore facilities on the Norwegian continental shelf.","cache_ttl_seconds":3600,"documentation":"https://www.sodir.no/fakta/om-oss/apne-data/faktasider-og-faktakart-teknisk-informasjon/"}]},"_provenance":{"data":{"source":"sodir","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/sodir"},"entities":{"source":"sodir","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/sodir","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/sodir/get_field_production","source":"https://allemannsdata.com/wiki/api/v1/kilder/sodir","wiki":"https://allemannsdata.com/wiki/kilder/sodir/get_field_production/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
