Spiral gives your agent every tool with one account. Browse the tools →

Codex · Public Records

How to Use EUR-Lex Official Journal publications in Codex

Returns acts published in the Official Journal on a selected date, with titles and publication references. Use it to review a day's legislation or information notices and identify documents for further reading.

Prompts to try with EUR-Lex Official Journal publications in Codex

Copy an example into Codex, or ask in your own words.

Use EUR-Lex Official Journal publications for May 4, 2016, and build a table in this project showing the returned titles and publication references.

EUR-Lex Official Journal publicationsCodex
Try asking
  • Use EUR-Lex Official Journal publications to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from EUR-Lex Official Journal publications and tell me what changed since last week.

  • Check EUR-Lex Official Journal publications and summarize what you find in three bullet points.

  • Pull the newest data from EUR-Lex Official Journal publications and give me the result as a table.

How to set up EUR-Lex Official Journal publications in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run EUR-Lex Official Journal publications

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "eu-institutions-law-eur-lex-official/law/official_journal",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: Codex finds EUR-Lex Official Journal publications on Spiral, shows the price and runs it.

EUR-Lex Official Journal publications providers and prices

Spiral runs EUR-Lex Official Journal publications through Alexandria. Open a card for today's price, with every fee included.

AlexandriaPublic Records
EU law and public tenders · Official journal
eu-institutions-law-eur-lex-official/law/official_journal

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 500100

limit

Offset0 to 100000

offset

SeriesL, C, or allall

L = legislation, C = information and notices.

Every API field of EU law and public tenders · Official journal is on its tool page: open its card above.

What can you do with EUR-Lex Official Journal publications in Codex?

Build a research view that connects EU publications, act records, provisions, and national implementation references. Use CELEX to keep documents aligned across language versions.

Build a regulatory research workspace

Collect title matches, act details, relevant provisions, publication references, and notified national measures into a research view organized by CELEX.

Reconstruct a directive's publication and implementation history

Find the directive, inspect its dates, read the relevant articles, review its publication-day entries, and assemble the national measures reported for it.

Maintain a directive watchlist

Review new publication entries and title matches, revisit tracked act records and text, and compare reported national measures with previous results.

Prepare an EU policy newsletter

Select relevant Official Journal entries, find related legislation, confirm document details, and read the provisions behind each proposed newsletter item.

Create a publication reference archive

Organize selected Official Journal dates and subject searches into an archive containing act references, detailed records, and readable document text.

Questions about EUR-Lex Official Journal publications in Codex

Can Codex use EUR-Lex Official Journal publications?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run EUR-Lex Official Journal publications like any built-in tool.

How much does EUR-Lex Official Journal publications cost in Codex?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use EUR-Lex Official Journal publications in Codex?

No. Spiral runs EUR-Lex Official Journal publications on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up EUR-Lex Official Journal publications in Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while EUR-Lex Official Journal publications runs?

EUR-Lex Official Journal publications runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

How far back does EUR-Lex's Official Journal archive go?

EUR-Lex holds electronic versions of all Official Journals back to December 30, 1952. That is the archive's starting point, rather than a guarantee that every historical document exists in every current EU language.

How quickly does newly published legislation appear?

EUR-Lex updates daily, but full legal and bibliographic information for a newly published act can take up to two working days. A publication can therefore appear before its detailed metadata is complete.

Does the same act have a different identifier in each language?

CELEX identifies the document regardless of language. Use that identifier to keep references to the same act together when working across EUR-Lex's 24 official EU languages.

Does EUR-Lex include the text of every national implementing measure?

No. Its national transposition collection includes measure titles, but the corresponding national texts are available only where provided.

Is the readable web text the authentic Official Journal?

The HTML presentation is informational and is not authentic. Since October 1, 2023, each act is published individually as an authentic Official Journal PDF.

Get started

Start using EUR-Lex Official Journal publications in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options