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

Codex · Lead Gen

How to Use Annuaire des Entreprises company search in Codex

Returns French legal entities and matching establishments for a company-name or filtered search. Use it to resolve an unfamiliar business name or build a shortlist by industry and territory.

Prompts to try with Annuaire des Entreprises company search in Codex

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

Use Annuaire des Entreprises company search to find La Poste and build a candidate-selection table in this project showing returned company names, SIRENs, and addresses.

Annuaire des Entreprises company searchCodex
Try asking
  • Use Annuaire des Entreprises company search for software companies in Rhône and add the returned company identities to this project's research table, deduplicated by SIREN.

  • Use Annuaire des Entreprises company search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Annuaire des Entreprises company search and tell me what changed since last week.

  • Check Annuaire des Entreprises company search and summarize what you find in three bullet points.

How to set up Annuaire des Entreprises company search 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 Annuaire des Entreprises company search

    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": "recherche-entreprises-api-gouv-fr/companies/search_companies",
        "input": {
          "q": "<q>"
        }
      }'

Then paste one of the prompts above: Codex finds Annuaire des Entreprises company search on Spiral, shows the price and runs it.

Annuaire des Entreprises company search providers and prices

Spiral runs Annuaire des Entreprises company search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaLead Gen
API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search companies
recherche-entreprises-api-gouv-fr/companies/search_companies

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 10001

Page number (1-based). Pass next_page from the previous answer. page * per_page may not exceed 10,000.

Statusactive or ceased

Administrative state of the legal unit in Sirene.

Per page1 to 2510

Results per page, 1-25 (API cap).

Person typeexecutive or elected_official

Restrict the person filters to executives (dirigeants) or local elected officials (élus).

Revenue maxa number

Maximum revenue of the latest published accounts, euros.

Revenue mina number

Minimum revenue (chiffre d'affaires) of the latest published accounts, euros. Units without published accounts never match.

Sort by sizeon or off

true: order by company size (number of establishments) instead of relevance.

Net income maxa number

Maximum net income of the latest published accounts, euros.

Net income mina number

Minimum net income (résultat net) of the latest published accounts, euros (negative allowed).

Every API field of API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search companies is on its tool page: open its card above.

What can you do with Annuaire des Entreprises company search in Codex?

Build company matching and location views around French SIRENs and establishment SIRETs. A coding agent can use returned identities, addresses, and available financial summaries to populate your project's organization records.

Resolve company names in a supplier database

Find candidate legal entities for a supplier name, then compare their registered identities and establishments. Use SIREN to distinguish companies with similar names.

Build a local supplier shortlist

Find registered business locations around a project site or search by industry and territory. Review the resulting companies' identity and available financial information before selecting candidates.

Compare potential store locations

Build a picture of registered businesses around proposed locations. Compare establishments separately from legal entities so a company with several sites does not inflate the company count.

Prepare a company research brief

Summarize a known company or discover candidates by name, industry, or location. Include registered identity, establishment information, headcount information, and available financial summaries.

Match local branches to legal entities

Associate business locations with their company SIRENs. Use the resulting mapping to separate a local establishment from the legal entity recorded in a purchasing system.

Maintain an organization directory

Refresh registered company information for known SIRENs or rerun searches for an industry or local area. Compare saved results to identify changes observed between checks.

Questions about Annuaire des Entreprises company search in Codex

Can Codex use Annuaire des Entreprises company search?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Annuaire des Entreprises company search like any built-in tool.

How much does Annuaire des Entreprises company search 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 Annuaire des Entreprises company search in Codex?

No. Spiral runs Annuaire des Entreprises company search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Annuaire des Entreprises company search in Codex?

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

Does Codex wait while Annuaire des Entreprises company search runs?

Annuaire des Entreprises company search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

How fresh is Annuaire des Entreprises data?

The API imports its search index daily. That describes the search index refresh, so it should not be presented as a live feed of company changes.

Does the API include every French business record?

No. The official catalog excludes non-diffusible businesses and predecessor or successor links between establishments, so these results cannot reconstruct every business or establishment history.

Can several business locations belong to the same company?

Yes. A company can have several establishment SIRETs but one company SIREN. Count SIRENs for legal entities and SIRETs for locations.

Are financial figures available for every company?

The financial source covers figures available as open data. Its ratios are organized by SIREN and accounts closing date, so compare the reporting periods before comparing companies.

How many companies can a search return per page?

The source limits each search page to 25 company results. A single page is therefore a bounded selection, not necessarily the complete matching list.

Get started

Start using Annuaire des Entreprises company search 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