{"source":"lottstift","operation":"list_datasets","description":"Find official allocation spreadsheets and the years actually published. Signature: list_datasets(scheme: one of: vat, surplus, sports, optional, default None).","signature":"list_datasets(scheme: one of: vat, surplus, sports, optional, default None)","parameters":[{"name":"scheme","type":"string","schema":{"anyOf":[{"enum":["vat","surplus","sports"],"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"vat (voluntary organisations), surplus (Norsk Tipping) or sports (sports facilities). None lists all three schemes. VAT lists since 2019, sports lists since 2018 and surplus lists since 2017. Older files and payout ledgers without recipient organisation numbers are excluded.","unit":null}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift/list_datasets?scheme={scheme}","not_paged":"Returns the supported publication catalogue in full.","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift/list_datasets?scheme=vat","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"count":{"type":"integer"},"datasets":{"type":"array","items":{"type":"object","properties":{"dataset_id":{"type":"string"},"scheme":{"type":"string"},"name":{"type":"string"},"source_url":{"type":"string"},"year":{"type":"integer"}},"additionalProperties":false}},"source_url":{"type":["string","null"]},"coverage_note":{"type":["string","null"]}},"additionalProperties":false},"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","ENDPOINT_NOT_FOUND"],"retryable":false},"405":{"codes":["METHOD_NOT_ALLOWED"],"retryable":false},"429":{"codes":["RATE_LIMITED","GATEWAY_RATE_LIMITED"],"retryable":true},"503":{"codes":["SOURCE_UNAVAILABLE"],"retryable":true},"500":{"codes":["INTERNAL_ERROR"],"retryable":false}}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift/list_datasets/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift/list_datasets","source":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["count","datasets","datasets[].dataset_id","datasets[].scheme","datasets[].name","datasets[].source_url","datasets[].year","source_url","coverage_note"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["datasets[].name"]},"response_example":{"source":"lottstift","operation":"list_datasets","parameters":{"scheme":"vat"},"data":{"count":1,"datasets":[{"dataset_id":"example-id","scheme":"example value","name":"Example","source_url":"https://example.invalid/resource","year":1}],"source_url":"https://example.invalid/resource","coverage_note":"example value"},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"lottstift","name":"Voluntary-sector allocations (Lottstift)","description":"Find VAT compensation for voluntary organizations and sports facilities, and allocations from Norsk Tipping's surplus. Search published spreadsheets by recipient, organization number or municipality and rank recipients. Published years vary by scheme; amounts are allocations or approvals, not necessarily payments. Older files and ledgers without recipient organization numbers are excluded.","publisher":"Lotteri- og stiftelsestilsynet","license":null,"cache_ttl_seconds":3600,"documentation":"https://lottstift.no/opne-data/"}]},"_provenance":{"data":{"source":"lottstift","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift"},"entities":{"source":"lottstift","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift/list_datasets","source":"https://allemannsdata.com/wiki/api/v1/kilder/lottstift","wiki":"https://allemannsdata.com/wiki/kilder/lottstift/list_datasets/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
