{"source":"eurlex","operation":"search_eu_acts","description":"Search adopted EU regulations, directives and decisions by words in their English title. Signature: search_eu_acts(query: string, required; act_type: string, optional, default None; year_from: integer, optional, default None; year_to: integer, optional, default None; in_force_only: yes/no, optional, default False; eea_relevant_only: yes/no, optional, default False; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0).","signature":"search_eu_acts(query: string, required; act_type: string, optional, default None; year_from: integer, optional, default None; year_to: integer, optional, default None; in_force_only: yes/no, optional, default False; eea_relevant_only: yes/no, optional, default False; limit: integer, items, optional, default 25; offset: integer, items, optional, default 0)","parameters":[{"name":"query","type":"string","schema":{"type":"string"},"required":true,"default":null,"description":"English words that must all appear in the title, e.g. \"batteries\", \"data protection\", \"artificial intelligence\". Whole words only; end a word of 4+ letters with \"*\" for a prefix match (\"batter*\" finds battery and batteries). Words under 3 letters are ignored. An act's number (\"2016 679\") finds the acts that cite it in their title; fetch the act itself with get_eu_act.","unit":null},{"name":"act_type","type":"string","schema":{"anyOf":[{"type":"string"},{"type":"null"}]},"required":false,"default":null,"description":"Optional \"regulation\", \"directive\" or \"decision\". Includes the implementing and delegated variants.","unit":null},{"name":"year_from","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Optional earliest year of the act's date.","unit":null},{"name":"year_to","type":"integer","schema":{"anyOf":[{"type":"integer"},{"type":"null"}]},"required":false,"default":null,"description":"Optional latest year of the act's date.","unit":null},{"name":"in_force_only","type":"boolean","schema":{"type":"boolean"},"required":false,"default":false,"description":"Only acts currently in force.","unit":null},{"name":"eea_relevant_only","type":"boolean","schema":{"type":"boolean"},"required":false,"default":false,"description":"Only acts marked \"Text with EEA relevance\", the candidates for incorporation into the EEA Agreement and so into Norwegian law.","unit":null},{"name":"limit","type":"integer","schema":{"type":"integer","minimum":1,"maximum":100,"default":25},"required":false,"default":25,"description":"Max acts to return, 1-200 (default 20). Unit: items. Through this API: default 25, maximum 100.","unit":"items"},{"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/eurlex/search_eu_acts?query={query}&act_type={act_type}&year_from={year_from}&year_to={year_to}&in_force_only=false&eea_relevant_only=false&limit=25&offset=0","example_url":"https://allemannsdata.com/wiki/api/v1/kilder/eurlex/search_eu_acts?query=batteries&act_type=regulation&eea_relevant_only=True","schema_scope":"#/data in the successful operation envelope","response_schema":{"type":"object","properties":{"query":{"type":"string"},"acts":{"type":"array","items":{"type":"object","properties":{"celex_id":{"type":"string"},"title":{"type":["string","null"]},"act_type":{"type":["string","null"],"enum":["regulation","directive","decision",null]},"date":{"type":["string","null"],"format":"date"},"in_force":{"type":["boolean","null"]},"eea_relevant":{"type":["boolean","null"]},"eli_url":{"type":["string","null"],"format":"uri"},"eur_lex_url":{"type":"string","format":"uri"}},"additionalProperties":false,"required":["celex_id","title","act_type","date","in_force","eea_relevant","eli_url","eur_lex_url"]}}},"additionalProperties":false,"required":["query","acts"]},"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/eurlex/search_eu_acts/schema","operation":"https://allemannsdata.com/wiki/api/v1/kilder/eurlex/search_eu_acts","source":"https://allemannsdata.com/wiki/api/v1/kilder/eurlex","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"},"output_fields":["query","acts","acts[].celex_id","acts[].title","acts[].act_type","acts[].date","acts[].in_force","acts[].eea_relevant","acts[].eli_url","acts[].eur_lex_url"],"output_fields_truncated":false,"canonical_field_aliases":{"name":["acts[].title"],"date":["acts[].date"]},"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":["acts[].date"]},"response_example":{"source":"eurlex","operation":"search_eu_acts","parameters":{"query":"batteries","act_type":"regulation","eea_relevant_only":true,"limit":25,"offset":0},"data":{"query":"example value","acts":[{"celex_id":"example-id","title":"Example","act_type":"regulation","date":"2026-01-15","in_force":true,"eea_relevant":true,"eli_url":"https://example.invalid/resource","eur_lex_url":"https://example.invalid/resource"}]},"entities":[],"_meta":{"retrieved_at":"2026-01-15T12:00:00Z","language":"en","content_languages":["en"],"sources":[{"id":"eurlex","name":"EUR-Lex (EU law)","description":"Search adopted EU regulations, directives and decisions by title and fetch one act by CELEX number with dates, in-force status, the EEA-relevance flag, ELI/EUR-Lex links and the plain-language EUR-Lex summary.","publisher":"Publications Office of the European Union","license":"http://data.europa.eu/eli/dec/2011/833/oj","cache_ttl_seconds":3600,"documentation":"https://op.europa.eu/en/web/webtools/linked-data-and-sparql"}]},"_provenance":{"data":{"source":"eurlex","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/eurlex"},"entities":{"source":"eurlex","source_api":"https://allemannsdata.com/wiki/api/v1/kilder/eurlex","derived_from":"#/data","description":"Normalized projection of data."}},"_links":{"self":"https://allemannsdata.com/wiki/api/v1/kilder/eurlex/search_eu_acts","source":"https://allemannsdata.com/wiki/api/v1/kilder/eurlex","wiki":"https://allemannsdata.com/wiki/kilder/eurlex/search_eu_acts/","feedback":"https://allemannsdata.com/wiki/api/v1/feedback"}}}
