{"source":"kudos","operation":"search_documents","description":"Full-text search in the public documents of Kudos (DF\u00d8). Signature: search_documents(query: string, optional, default None; type: string, optional, default None; published_year_from: integer, optional, default None; published_year_to: integer, optional, default None; ministry: string, optional, default None; government_entity: string, optional, default None; other_actor: string, optional, default None; sort: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"search_documents(query: string, optional, default None; type: string, optional, default None; published_year_from: integer, optional, default None; published_year_to: integer, optional, default None; ministry: string, optional, default None; government_entity: string, optional, default None; other_actor: string, optional, default None; sort: string, optional, default None; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"query","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Search text, at least 2 characters, e.g. \"spesialpedagogikk\".","unit":null},{"name":"type","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Document type, or several separated by commas: Evaluering, Forh\u00e5ndsutredning, Instruks, KVU/KS1/KS2, Kartlegging, Kunnskapsoppsummering, Melding til Stortinget, NOU, Omr\u00e5degjennomgang, Proposisjon til Stortinget, Retningslinjer, Revisjonsberetning, Riksrevisjonsrapport, Statusrapport, Strategi/plan, Studie, Tildelingsbrev, Tilskuddsbrev, Ukategorisert, Veileder, \u00c5rsrapport.","unit":null},{"name":"published_year_from","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Earliest publication year.","unit":null},{"name":"published_year_to","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Latest publication year.","unit":null},{"name":"ministry","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Exact ministry name as listed by list_actors with type=ministry, e.g. \"Kunnskapsdepartementet (KD)\".","unit":null},{"name":"government_entity","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Exact government entity name as listed by list_actors with type=government_entity, e.g. \"Utdanningsdirektoratet (UDIR)\".","unit":null},{"name":"other_actor","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Exact name of another actor, as listed by list_actors with type=other_actor.","unit":null},{"name":"sort","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"relevance (default with a query), newest or oldest.","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"default":25,"description":"Max documents to return, 1-100 (default 25). Unit: items. Through this API: default 25, maximum 100.","unit":"items"},{"name":"offset","type":"integer","schema":{"type":"integer"},"required":false,"default":0,"description":"Documents to skip before the first one returned (default 0); with limit, pages through every match. Unit: items.","unit":"items"}],"json_get_url_template":"https://allemannsdata.com/wiki/api/v1/kilder/kudos/search_documents?query={query}&type={type}&published_year_from={published_year_from}&published_year_to={published_year_to}&ministry={ministry}&government_entity={government_entity}&other_actor={other_actor}&sort={sort}&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/kudos/search_documents?query=spesialpedagogikk&type=Evaluering","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"count":{"type":"integer"},"returned":{"type":"integer"},"documents":{"type":"array","items":{"type":"object","properties":{"document_id":{"type":"string"},"type":{"type":"string"},"title":{"type":"string"},"abstract":{"type":"string"},"language":{"type":"string"},"publish_date":{"type":"string","format":"date"},"concerned_year_from":{"type":"integer"},"concerned_year_to":{"type":"integer"},"authors":{"type":"array","items":{"type":"string"}},"kudos_url":{"type":"string"},"source_url":{"type":"string"},"files":{"type":"array","items":{"type":"object","properties":{"file_id":{"type":"string"},"filename":{"type":"string"},"description":{"type":"string"},"mimetype":{"type":"string"},"pages":{"type":"integer"},"size_bytes":{"type":"integer"},"is_primary":{"type":"boolean"},"url":{"type":"string"},"source_url":{"type":"string"}},"additionalProperties":false,"required":["file_id","filename"]}},"owners":{"type":"array","items":{"type":"object","properties":{"actor_id":{"type":"string"},"organization_id":{"type":"string"},"name":{"type":"string"},"entity_name":{"type":"string"},"abbreviation":{"type":"string"},"actor_type":{"type":"string","enum":["Government","Ministry","Other"]},"aliases":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["actor_id","name"]}},"recipients":{"type":"array","items":{"type":"object","properties":{"actor_id":{"type":"string"},"organization_id":{"type":"string"},"name":{"type":"string"},"entity_name":{"type":"string"},"abbreviation":{"type":"string"},"actor_type":{"type":"string","enum":["Government","Ministry","Other"]},"aliases":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["actor_id","name"]}},"publishers":{"type":"array","items":{"type":"object","properties":{"actor_id":{"type":"string"},"organization_id":{"type":"string"},"name":{"type":"string"},"entity_name":{"type":"string"},"abbreviation":{"type":"string"},"actor_type":{"type":"string","enum":["Government","Ministry","Other"]},"aliases":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["actor_id","name"]}},"authoring_actors":{"type":"array","items":{"type":"object","properties":{"actor_id":{"type":"string"},"organization_id":{"type":"string"},"name":{"type":"string"},"entity_name":{"type":"string"},"abbreviation":{"type":"string"},"actor_type":{"type":"string","enum":["Government","Ministry","Other"]},"aliases":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"required":["actor_id","name"]}}},"additionalProperties":false,"required":["document_id","type","title"]}}},"additionalProperties":false,"required":["count","returned","documents"]},"response_schema_status":{"status":"declared","codegen_safe":true,"description":"Maintained response contract."},"entity_projection":{"status":"projected","entity_types":["organization"],"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","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/kudos/search_documents/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/kudos/search_documents","source":"https://allemannsdata.com/wiki/api/v1/kilder/kudos","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["count","returned","documents","documents[].document_id","documents[].type","documents[].title","documents[].abstract","documents[].language","documents[].publish_date","documents[].concerned_year_from","documents[].concerned_year_to","documents[].authors","documents[].kudos_url","documents[].source_url","documents[].files","documents[].files[].file_id","documents[].files[].filename","documents[].files[].description","documents[].files[].mimetype","documents[].files[].pages","documents[].files[].size_bytes","documents[].files[].is_primary","documents[].files[].url","documents[].files[].source_url","documents[].owners","documents[].owners[].actor_id","documents[].owners[].organization_id","documents[].owners[].name","documents[].owners[].entity_name","documents[].owners[].abbreviation"],"output_fields_truncated":true,"canonical_field_aliases":{"name":["documents[].title","documents[].owners[].name","documents[].recipients[].name","documents[].publishers[].name","documents[].authoring_actors[].name"]},"temporal_conventions":{"timezone":"calendar_dates","join_guidance":"date-time fields are RFC 3339 with an explicit offset (Z, +00:00 or the Europe/Oslo offset); compare absolute instants, not clock text. date fields are calendar dates without a time zone.","date_fields":["documents[].publish_date"]},"response_example":{"source":"kudos","operation":"search_documents","parameters":{"query":"spesialpedagogikk","type":"Evaluering","limit":25,"offset":0},"data":{"count":1,"returned":1,"documents":[{"document_id":"example-id","type":"example value","title":"Example","abstract":"example value","language":"example value","publish_date":"2026-01-15","concerned_year_from":1,"concerned_year_to":1,"authors":["example value"],"kudos_url":"https://example.invalid/resource","source_url":"https://example.invalid/resource","files":[{"file_id":"example-id","filename":"Example","description":"example value","mimetype":"example value","pages":1,"size_bytes":1,"is_primary":true,"url":"https://example.invalid/resource","source_url":"https://example.invalid/resource"}],"owners":[{"actor_id":"example-id","organization_id":"example-id","name":"Example","entity_name":"Example","abbreviation":"example value","actor_type":"Government","aliases":["example value"]}],"recipients":[{"actor_id":"example-id","organization_id":"example-id","name":"Example","entity_name":"Example","abbreviation":"example value","actor_type":"Government","aliases":["example value"]}],"publishers":[{"actor_id":"example-id","organization_id":"example-id","name":"Example","entity_name":"Example","abbreviation":"example value","actor_type":"Government","aliases":["example value"]}],"authoring_actors":[{"actor_id":"example-id","organization_id":"example-id","name":"Example","entity_name":"Example","abbreviation":"example value","actor_type":"Government","aliases":["example value"]}]}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"kudos","name":"Kudos public documents (DF\u00d8)","description":"Find reports, evaluations, NOUs, white papers, strategies, allocation letters and annual reports published by Norwegian ministries and government agencies. Search by topic, type, year or organization, then read a document's metadata, files and extracted full text from Kudos, the public-sector knowledge-document archive run by DF\u00d8.","publisher":"Direktoratet for forvaltning og \u00f8konomistyring (DF\u00d8)","license":null,"cache_ttl_seconds":3600,"documentation":"https://kudos.dfo.no/apne-data"}]},"_provenance":{"data":{"source":"kudos","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/kudos"},"entities":{"source":"kudos","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/kudos","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/kudos/search_documents","source":"https://allemannsdata.com/wiki/api/v1/kilder/kudos","wiki":"https://allemannsdata.com/wiki/kilder/kudos/search_documents/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
