emendrixConnect your AIAccount

About this site

The JSON API

The record this site renders, as files a program can fetch. There is no query endpoint, no account and no key: every answer is a file, and the record's files are the committed bytes of the changelogs repository, at the same relative paths as in a clone of it.

Three ways in

/api/v1/substances.json lists every CAS and EC number an entry in the record prints, and /api/v1/substances/<scheme>-<value>.json gives each one's entries and changes as data.

Layout

PathWhat it isFrom
/api/this page, with the CI example at its endthe site build
/api/v1/index.jsonthe root index: one row per actthe record, served as committed
/api/v1/<act_dir>/index.jsonone act's versions, and every change per provisionthe record
/api/v1/<act_dir>/changes/<version>.jsonone version's payload, with the textsthe record
/api/v1/catalogue.jsonlabels, aliases, sectors, page and feed addressesthe site build
/api/v1/amending.jsonevery amending act the record names, with its number, label and pagethe site build
/api/v1/schema/<name>.schema.jsonthe JSON Schema of each documentthe site build
/api/v1/substances.jsonevery CAS and EC number an entry printsthe site build
/api/v1/substances/<scheme>-<value>.jsonone number's entries and changesthe site build

<act_dir> is the act's corpus and key, and <version> the version it is the payload of. Every path an index names is relative to /api/v1/. The schemas: act-index, change, entry, index, register, twins, catalogue, amending, substance. Each carries its own file name as a relative $id.

The three dates

updated_on on a version's row is the latest of detected_on and every repair's date, the field to sort by to see what moved since you last looked.

Where the sources differ: signals and reasons

Three signals look at every transition: structural_diff, corpus_metadata and instruction_parse. Each reports one status per change:

A change is disputed when one signal observed it and another is absent, or when the signals that observed it name kinds of change that share nothing. Each such change carries a dispute_reason, every other change carries null, and every row of an act index carries the field whether or not an older payload stored it. Filter on the reason or on the signal triple, never on disputed alone. The seven reasons, in the order they are tried:

A reason is a reading of stored verdicts and says nothing about the law. The methodology page explains each signal and how often the sources differ.

Units no change carries

Corrections

The record is corrected forward and its history is never rewritten. A repaired version gets a new sha256, a later updated_on and one more repairs row; a change a repair withdraws disappears from provisions. Key cached rows on (act, version, location, occurrence) and re-read a version whenever its sha256 moves.

Polling, CORS and keys

Poll the root index, never the whole tree. An act's index_sha256 moves exactly when its act index's bytes move, and a version's sha256 exactly when its payload's do, so a consumer holding a file whose hash still matches has nothing to fetch.

Any origin may GET any file. There are no credentials, no keys and no cookies, and no rate promise: a client that polls more often than the record is written gets the same bytes and gains nothing.

Licence

The record is licensed as its changelogs repository states, which also says on what terms the legislative text it quotes is reused.

Examples

Every act, with its newest version, its counts and its title:

curl -fsSL https://emendrix.eu/api/v1/index.json \
  | jq -r '.acts[] | [.key, .newest_version, .changes, .disputed, .title] | @tsv'

The newest change to AR 1 of 32006R1907:

curl -fsSL https://emendrix.eu/api/v1/eu/32006R1907/index.json \
  | jq '.provisions["AR 1"][0]'

Search

A search service answers on this host, live, under /search/v1/. /search/v1/provisions and /search/v1/changes take a query q and return coordinates, excerpts and links to the pages that tell each provision's history and to EUR-Lex; /search/v1/text returns one provision's verbatim text per call, paged, and never more than one. A similar match is a similarity match, not a statement that a provision is about the query. Every answer is computed when it is asked for, carries noindex and is rate limited; none of it is a file of the record.

The MCP server

A verified change record for EU law, for people and their AI.

The same record, for a model: a read-only MCP server at /mcp, answering streamable HTTP with one JSON response per request, with no session, no key and no account. Its sixteen tools are list_acts, find_provisions, changes_since, provision_history, get_change, get_event, list_disputed, find_substance, search_provisions, search_changes, provision_text, provision_twins, changes_to, resolve_citation, amending_act and text_dates, and its four resources emendrix://acts, emendrix://acts/{act}, emendrix://changes/{act}/{version}/{location} and emendrix://methodology. Every result carries the disclaimer and the file each fact was read from, with that file's sha256.

Three prompts, what_changed, dependency_check and omnibus_overview, package the common jobs; the Claude Code plugin adds the same server and a skill: /plugin marketplace add emendrix/emendrix, then /plugin install emendrix@emendrix. Cite as: Emendrix record, <act> <provision>, version <version>, <page address>.

Use it for questions about what changed in a provision of an EU act it watches, when it changed, and where the sources differ about it; list_acts names every act it watches. It covers only those acts, read in English: not national law, and not a Member State's transposition of a directive.

It searches the stored provision texts and the change records by meaning and by words, returning coordinates, excerpts and links; provision_twins names the provision of a sister act that is textually similar, which is not to say equivalent. A similar match is a similarity match, not a statement that a provision is about the query. No bulk text: provision_text returns one provision per call, by design. It decides nothing: it does not interpret law, and it resolves no free reference beyond an act's names and the provision forms below. Name an act by its key, label, long name or alias, as list_acts gives them, and a provision as AR 50, Article 50(7), Art. 50, a bare 50(7), AN IV or Annex 4; every answer says how it read them, in resolved, and a point below a paragraph is left unread and said, never guessed.

Four tools answer a whole question in one call. changes_to checks up to 500 provisions or acts at once, answers each with one status (changed, pending, no_change_recorded, not_watched or unread) and returns a watermark, an opaque value to pass back unchanged next time to see only what is newer; changes_since takes and returns the same value. resolve_citation reads citations as written into act keys and locations by a fixed grammar, and says what it left unread. amending_act lists every stored change attributed to one amending act, grouped by the watched act it amended. text_dates lists the dates the amended texts name, as stored; a date a text names is not, by itself, a date it applies from.

Budget: up to 120 requests a minute from one address; a refusal is a JSON-RPC error with retry_after. Prefer one call with a larger limit over many small ones.

The server describes itself at /mcp/server-card, and the site's /.well-known/api-catalog names this endpoint and the JSON API. What it counts, per day and with no address, is on /privacy/; the terms it is offered on, on /terms/.

A client that takes a URL needs only https://emendrix.eu/mcp. In Claude Code:

claude mcp add --transport http emendrix https://emendrix.eu/mcp

In a client configured by a JSON file:

{
  "mcpServers": {
    "emendrix": {
      "type": "http",
      "url": "https://emendrix.eu/mcp"
    }
  }
}

For setup in a chat app or an editor, step by step, see Connect your AI.

Watch a provision from CI

A GitHub Actions workflow that opens an issue when a provision you pin has a newer change. It is an example to adapt rather than a maintained action: set PIN to the act and the canonical location, and SEEN to the version you have already reviewed. It needs no secret beyond the job's own token and dedupes by issue title. It uses jq and gh, which GitHub-hosted runners have preinstalled.

# .github/workflows/regulations.yml: opens an issue when a provision you pin changes.
on:
  schedule: [{ cron: "17 6 * * 1" }]
  workflow_dispatch: {}
permissions: { issues: write }
jobs:
  check:
    runs-on: ubuntu-latest
    env:
      PIN: "32017R0745 AN I"
      SEEN: "02017R0745-20260101"
      GH_TOKEN: ${{ github.token }}
      GH_REPO: ${{ github.repository }}
    steps:
      - run: |
          act=${PIN%% *}; loc=${PIN#* }
          slug=$(printf '%s' "$loc" | tr 'A-Z ' 'a-z-' | tr -d '()')
          curl -fsSL -A "emendrix-snippet/1" "https://emendrix.eu/api/v1/eu/$act/index.json" -o idx.json
          new=$(jq -r --arg l "$loc" '.provisions[$l][0].version // empty' idx.json)
          if [ -z "$new" ] || [ "$new" = "$SEEN" ]; then exit 0; fi
          title="$act $loc changed: $new"
          gh issue list --state all --search "\"$title\" in:title" --json title -q '.[].title' \
            | grep -qxF "$title" && exit 0
          row=$(jq -c --arg l "$loc" '.provisions[$l][0]' idx.json)
          gh issue create --title "$title" --body "$(printf '%s\n\n%s\n\n%s' \
            "Newest index row: $row" \
            "History, verbatim text and citations: https://emendrix.eu/acts/$act/$slug/" \
            "Not legal advice: computed by emendrix from published texts, with no lawyer's review.")"

The emendrix-snippet/1 user agent lets the example's use be counted from the server's own request lines, with no cookies and no tracking; change it if you would rather not be counted.