---
title: "Search EIC code database by code or company name"
method: POST
path: "/api/eic-codes/search"
tags: ["EIC Code Management"]
---

# Search EIC code database by code or company name

`POST /api/eic-codes/search`

## Request

- Base URL: `https://api.cernion.de`
- URL: `https://api.cernion.de/api/eic-codes/search`
- Auth: none declared

Search 72,580+ EIC codes from ENTSO-E and AGSI/GIE.

**At least one of 'code' or 'name' is required.**

**Parameter Details:**
- **code**: Exact 16-character EIC code (e.g., "21X000000001254A")
- **name**: Company name with fuzzy matching (e.g., "Stadtwerke", "RWE", "Netze BW")
- **country**: ISO 3166-1 alpha-2 code - Common: DE (Germany), FR (France), NL (Netherlands), AT (Austria), CH (Switzerland), PL (Poland), CZ (Czech Republic)
- **sector**: Filter by energy sector - "electricity" or "gas"
- **limit**: Results limit (1-100, default: 10)

**Use Cases:**
- Find valid operator codes for AGSI gas storage queries
- Research market partners and grid operators
- Validate EIC codes before API calls

## Query parameters

- `token` string

## Request body

- object
  - `code` string: Exact EIC code (16 characters, starts with 2 digits + X)
  - `name` string: Company/operator name (fuzzy search, minimum 3 characters recommended)
  - `country` 'AT' | 'BE' | 'BG' | 'CH' | 'CZ' | 'DE' | 'DK' | 'EE' | 'ES' | 'FI' | 'FR' | 'GB' | 'GR' | 'HR' | 'HU' | 'IE' | 'IT' | 'LT' | 'LU' | 'LV' | 'NL' | 'NO' | 'PL' | 'PT' | 'RO' | 'SE' | 'SI' | 'SK': ISO 3166-1 alpha-2 country code
  - `sector` 'electricity' | 'gas': Energy sector filter
  - `limit` integer: Maximum number of results
  - `format` 'json' | 'csv' | 'xlsx' | 'xls': Output format. "csv" and "xls"/"xlsx" trigger a file download.
  - `token` string: Optional Cernion MCP token for this request. Overrides CERNION_TOKEN when provided.

## Response `200`

Search results with matching EIC codes

## Other responses

- `400`: Validation error - at least code or name required

---

[API](https://skmtc.dev/cernion/apis/cernion-energy-tools-api.md) · [All operations](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cernion/apis/cernion-energy-tools-api/revisions/cdb94473b538?raw)
