{"openapi":"3.2.0","info":{"title":"digitapulia.eu — EU digital rules","version":"1.0.0","description":"The EU digital rules, their dates and, for each directive, the national measures the 27 States notified; for each regulation, the national laws that apply it in the countries read; the open EU calls for funding tied to each rule, from the Funding & Tenders Portal (CC BY 4.0). Text written and translated by AI. Information, not legal advice: the official text prevails. Read-only, free, no key: static files prepared once a day. Assistants: the MCP server at https://digitapulia.eu/assistenti, 100 calls an hour per address."},"servers":[{"url":"https://digitapulia.eu/v1"}],"paths":{"/{lang}/rules.json":{"get":{"summary":"Every rule followed, with its type, date and next date","parameters":[{"$ref":"#/components/parameters/lang"}],"responses":{"200":{"description":"Every rule followed, with its type, date and next date","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rules"}}}},"404":{"description":"Not a rule followed, or not one of the 27"}}}},"/{lang}/rules/{celex}.json":{"get":{"summary":"One rule — official title, dates, link to EUR-Lex, its open calls for funding, and for a directive the state of the 27, for a regulation the national laws of the countries read (national_laws) and those not read yet","parameters":[{"$ref":"#/components/parameters/lang"},{"$ref":"#/components/parameters/celex"}],"responses":{"200":{"description":"One rule — official title, dates, link to EUR-Lex, its open calls for funding, and for a directive the state of the 27, for a regulation the national laws of the countries read (national_laws) and those not read yet","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rule"}}}},"404":{"description":"Not a rule followed, or not one of the 27"}}}},"/{lang}/rules/{celex}/countries/{country}.json":{"get":{"summary":"For a directive, the national measures one State notified — type, act, gazette, number, date; for a regulation, the laws of the State that apply it","parameters":[{"$ref":"#/components/parameters/lang"},{"$ref":"#/components/parameters/celex"},{"$ref":"#/components/parameters/country"}],"responses":{"200":{"description":"For a directive, the national measures one State notified — type, act, gazette, number, date; for a regulation, the laws of the State that apply it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountryMeasuresOrLaws"}}}},"404":{"description":"Not a rule followed, or not one of the 27"}}}},"/{lang}/calls.json":{"get":{"summary":"The open calls for funding tied to the rules followed, nearest deadline first","parameters":[{"$ref":"#/components/parameters/lang"}],"responses":{"200":{"description":"The open calls for funding tied to the rules followed, nearest deadline first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Calls"}}}},"404":{"description":"Not a rule followed, or not one of the 27"}}}},"/{lang}/alerts.json":{"get":{"summary":"The alerts of the last 90 days, newest first — new_call, call_deadline_ahead, new_law and correction included","parameters":[{"$ref":"#/components/parameters/lang"}],"responses":{"200":{"description":"The alerts of the last 90 days, newest first — new_call, call_deadline_ahead, new_law and correction included","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alerts"}}}},"404":{"description":"Not a rule followed, or not one of the 27"}}}},"/{lang}/state.json":{"get":{"summary":"The whole free state in one file — every rule with the 27, their measures or the national laws, and its open calls, and the alerts","parameters":[{"$ref":"#/components/parameters/lang"}],"responses":{"200":{"description":"The whole free state in one file — every rule with the 27, their measures or the national laws, and its open calls, and the alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/State"}}}},"404":{"description":"Not a rule followed, or not one of the 27"}}}}},"components":{"parameters":{"lang":{"name":"lang","in":"path","required":true,"schema":{"type":"string","enum":["it","en","es","de","fr"]}},"celex":{"name":"celex","in":"path","required":true,"schema":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"example":"32022L2555"},"country":{"name":"country","in":"path","required":true,"schema":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"example":"ITA"}},"schemas":{"Notice":{"type":"object","properties":{"ai":{"type":"string"},"legal":{"type":"string"}},"required":["ai","legal"],"additionalProperties":false,"description":"The two fixed sentences of the AI label, in the language asked"},"Measure":{"type":"object","properties":{"type":{"type":["string","null"]},"act":{"type":["string","null"]},"gazette":{"type":["string","null"]},"number":{"type":["string","null"]},"notified":{"type":["string","null"],"format":"date"}},"required":["type","act","gazette","number","notified"],"additionalProperties":false},"RuleSummary":{"type":"object","properties":{"celex":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"name":{"type":"string","description":"The common name"},"topic":{"type":"string"},"type":{"type":"string","enum":["directive","regulation"]},"official_title":{"type":["string","null"],"description":"As the Union writes it"},"act_date":{"type":["string","null"],"format":"date"},"next_date":{"oneOf":[{"type":"null"},{"type":"object","properties":{"date":{"type":"string","format":"date"},"kind":{"type":"string","enum":["act","entry_into_force","transposition","application"]}},"required":["date","kind"],"additionalProperties":false}]},"url":{"type":"string","format":"uri"}},"required":["celex","name","topic","type","official_title","act_date","next_date","url"],"additionalProperties":false},"Rules":{"type":"object","properties":{"rules":{"type":"array","items":{"$ref":"#/components/schemas/RuleSummary"}},"lang":{"type":"string","enum":["it","en","es","de","fr"]},"read_at":{"type":"string","format":"date-time","description":"When the source was read"},"source":{"type":"string"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["rules","lang","read_at","source","notice"],"additionalProperties":false},"Rule":{"type":"object","properties":{"celex":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"name":{"type":"string","description":"The common name"},"topic":{"type":"string"},"type":{"type":"string","enum":["directive","regulation"]},"official_title":{"type":["string","null"],"description":"As the Union writes it"},"act_date":{"type":["string","null"],"format":"date"},"next_date":{"oneOf":[{"type":"null"},{"type":"object","properties":{"date":{"type":"string","format":"date"},"kind":{"type":"string","enum":["act","entry_into_force","transposition","application"]}},"required":["date","kind"],"additionalProperties":false}]},"url":{"type":"string","format":"uri"},"eli":{"type":["string","null"]},"in_force":{"type":"boolean"},"dates":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"kind":{"type":"string","enum":["act","entry_into_force","transposition","application"]}},"required":["date","kind"],"additionalProperties":false}},"official_link":{"type":"string","format":"uri"},"national_measures":{"type":"object","properties":{"countries_notified":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"official_link":{"type":"string","format":"uri"},"countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"name":{"type":"string"},"measures":{"type":"integer","minimum":0,"description":"How many national measures the State notified"},"last_notified":{"type":["string","null"],"format":"date"},"url":{"type":"string","format":"uri"}},"required":["country","name","measures","last_notified","url"],"additionalProperties":false},"minItems":27,"maxItems":27}},"required":["countries_notified","total","official_link","countries"],"additionalProperties":false},"national_laws":{"type":"array","items":{"$ref":"#/components/schemas/NationalLaws"},"minItems":27,"maxItems":27},"calls":{"type":"array","items":{"$ref":"#/components/schemas/Call"}},"lang":{"type":"string","enum":["it","en","es","de","fr"]},"read_at":{"type":"string","format":"date-time","description":"When the source was read"},"source":{"type":"string"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["celex","name","topic","type","official_title","act_date","next_date","url","eli","in_force","dates","official_link","calls","lang","read_at","source","notice"],"additionalProperties":false},"NationalLaw":{"type":"object","properties":{"id":{"type":"string","description":"The country and the source identifier; unique with rule"},"rule":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"name":{"type":"string","description":"The official name, in its own language"},"title":{"type":["string","null"],"description":"The official title, when the name does not say it"},"date":{"type":["string","null"],"format":"date"},"kind":{"type":"string","enum":["law","delegation"],"description":"delegation: the law only empowers the Government to apply the regulation"},"amended":{"type":"boolean","description":"Older than the regulation, or undated: it applies it because it was amended"},"official_link":{"type":"string","format":"uri"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["id","rule","name","title","date","kind","amended","official_link","notice"],"additionalProperties":false},"NationalLaws":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"name":{"type":"string"},"status":{"type":"string","enum":["read","not_read"],"description":"read with no laws: searched, nothing found on that day in that source"},"read_at":{"type":"string","format":"date-time","description":"Present when read"},"source":{"type":"string","description":"The source line, in the language asked"},"source_link":{"type":"string","format":"uri"},"coverage":{"type":"string","description":"What the source says it contains, when it says it; in the language asked"},"laws":{"type":"array","items":{"$ref":"#/components/schemas/NationalLaw"}}},"required":["country","name","status"],"additionalProperties":false,"description":"For a regulation, the laws of one State that apply it, selected by AI from the passages that cite the regulation: it can be wrong"},"CountryLaws":{"type":"object","properties":{"celex":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"country":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"country_name":{"type":"string"},"rule_name":{"type":"string"},"national_laws":{"$ref":"#/components/schemas/NationalLaws"},"lang":{"type":"string","enum":["it","en","es","de","fr"]},"read_at":{"type":"string","format":"date-time","description":"When the source was read"},"source":{"type":"string"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["celex","country","country_name","rule_name","national_laws","lang","read_at","source","notice"],"additionalProperties":false},"CountryMeasuresOrLaws":{"oneOf":[{"$ref":"#/components/schemas/CountryMeasures"},{"$ref":"#/components/schemas/CountryLaws"}]},"CountryMeasures":{"type":"object","properties":{"celex":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"country":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"country_name":{"type":"string"},"rule_name":{"type":"string"},"measures":{"type":"array","items":{"$ref":"#/components/schemas/Measure"}},"official_link":{"type":"string","format":"uri"},"lang":{"type":"string","enum":["it","en","es","de","fr"]},"read_at":{"type":"string","format":"date-time","description":"When the source was read"},"source":{"type":"string"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["celex","country","country_name","rule_name","measures","official_link","lang","read_at","source","notice"],"additionalProperties":false},"Call":{"type":"object","properties":{"id":{"type":"string","description":"The portal's topic identifier, or the cascade call's number"},"name":{"type":"string","description":"The official name, as the portal writes it"},"kind":{"type":"string","enum":["grant","cascade"]},"programme":{"type":"string"},"project":{"type":"string","description":"For a cascade call, the funded project that opens it"},"opens":{"type":"string","format":"date"},"deadline":{"type":"string","format":"date"},"rules":{"type":"array","items":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"minItems":1},"summary":{"type":["string","null"],"description":"In the language asked, written and translated by AI; null until its translation passes the check of numbers and dates"},"portal_link":{"type":"string","format":"uri"},"read_at":{"type":"string","format":"date-time"},"source":{"type":"string","description":"The source line, in the language asked"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["id","name","kind","programme","opens","deadline","rules","summary","portal_link","read_at","source","notice"],"additionalProperties":false},"Calls":{"type":"object","properties":{"calls":{"type":"array","items":{"$ref":"#/components/schemas/Call"}},"lang":{"type":"string","enum":["it","en","es","de","fr"]},"read_at":{"type":"string","format":"date-time","description":"When the source was read"},"source":{"type":"string"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["calls","lang","read_at","source","notice"],"additionalProperties":false},"Alert":{"type":"object","properties":{"id":{"type":"integer","minimum":0},"type":{"type":"string","enum":["new_measure","date_ahead","date_passed","new_rule","correction","new_call","call_deadline_ahead","new_law"]},"rule":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"country":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"call":{"type":"string","description":"For an alert about a call, the identifier of the call"},"rules":{"type":"array","items":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"description":"For an alert about a call, every rule the call is tied to"},"law":{"type":"string","description":"For an alert about a national law, its id; rule says which regulation"},"text":{"type":"string"},"official_link":{"type":"string","format":"uri"},"read_at":{"type":"string","format":"date-time"},"source":{"type":"string"},"corrects":{"type":"integer","minimum":0,"description":"For a correction, the id of the alert it corrects"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["id","type","rule","text","official_link","read_at","source","notice"],"additionalProperties":false},"Alerts":{"type":"object","properties":{"alerts":{"type":"array","items":{"$ref":"#/components/schemas/Alert"}},"lang":{"type":"string","enum":["it","en","es","de","fr"]},"read_at":{"type":"string","format":"date-time","description":"When the source was read"},"source":{"type":"string"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["alerts","lang","read_at","source","notice"],"additionalProperties":false},"State":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"object","properties":{"celex":{"type":"string","pattern":"^3\\d{4}[LR]\\d{4}$"},"name":{"type":"string","description":"The common name"},"topic":{"type":"string"},"type":{"type":"string","enum":["directive","regulation"]},"official_title":{"type":["string","null"],"description":"As the Union writes it"},"act_date":{"type":["string","null"],"format":"date"},"next_date":{"oneOf":[{"type":"null"},{"type":"object","properties":{"date":{"type":"string","format":"date"},"kind":{"type":"string","enum":["act","entry_into_force","transposition","application"]}},"required":["date","kind"],"additionalProperties":false}]},"url":{"type":"string","format":"uri"},"eli":{"type":["string","null"]},"in_force":{"type":"boolean"},"dates":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"kind":{"type":"string","enum":["act","entry_into_force","transposition","application"]}},"required":["date","kind"],"additionalProperties":false}},"official_link":{"type":"string","format":"uri"},"national_measures":{"type":"object","properties":{"countries_notified":{"type":"integer","minimum":0},"total":{"type":"integer","minimum":0},"official_link":{"type":"string","format":"uri"},"countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 3166-1 alpha-3"},"name":{"type":"string"},"measures":{"type":"integer","minimum":0,"description":"How many national measures the State notified"},"last_notified":{"type":["string","null"],"format":"date"},"url":{"type":"string","format":"uri"},"measure_list":{"type":"array","items":{"$ref":"#/components/schemas/Measure"}}},"required":["country","name","measures","last_notified","url","measure_list"],"additionalProperties":false},"minItems":27,"maxItems":27}},"required":["countries_notified","total","official_link","countries"],"additionalProperties":false},"national_laws":{"type":"array","items":{"$ref":"#/components/schemas/NationalLaws"},"minItems":27,"maxItems":27},"calls":{"type":"array","items":{"$ref":"#/components/schemas/Call"}}},"required":["celex","name","topic","type","official_title","act_date","next_date","url","eli","in_force","dates","official_link","calls"],"additionalProperties":false}},"alerts":{"type":"array","items":{"$ref":"#/components/schemas/Alert"}},"lang":{"type":"string","enum":["it","en","es","de","fr"]},"read_at":{"type":"string","format":"date-time","description":"When the source was read"},"source":{"type":"string"},"notice":{"$ref":"#/components/schemas/Notice"}},"required":["rules","alerts","lang","read_at","source","notice"],"additionalProperties":false}}}}