---
title: "Get Banco de España sector ratios for a company CNAE"
method: GET
path: "/api/v1/company/{slug}/bde"
tags: ["Companies"]
---

# Get Banco de España sector ratios for a company CNAE

`GET /api/v1/company/{slug}/bde`

## Request

- Base URL: `https://openmercantil.es`
- URL: `https://openmercantil.es/api/v1/company/{slug}/bde`
- Auth: one of:
  - none
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/openmercantil/apis/openmercantil-public-api/docs/api/v1/company/:slug/bde/get.ts> (a function with typed inputs; its response is checked against the schema)

Join the already admitted company_public_v2 identity to the immutable Central de Balances sector projection using the company's two-digit CNAE. The response binds both immutable generations. This is sector benchmarking, not a supervised-entity record, company-specific financial statement or score. coverage_status distinguishes a missing CNAE, an unprojected sector and a match; empty coverage never proves that no Banco de España data exists.

## Path parameters

- `slug` string, required

## Response `200`

CNAE sector-ratio projection or its documented empty shape

- CompanyBdeResponse: Banco de Espana Central de Balances ratios for the company's two-digit CNAE sector. These are sector metrics, not a supervised-entity record or company score.
  - `projection_status` 'available', required
  - `projection` 'bde_sector_ratios_v1', required
  - `slug` string, required
  - `is_alias` boolean, required
  - `identity_generation` string, required
  - `projection_generation` string, required
  - `projected_at` string, date-time, required
  - `source_catalog_version` string, required
  - `coverage_status` 'matched' | 'sector_not_projected' | 'cnae_unavailable', required
  - `has_data` boolean, required
  - `cnae_code` string
  - `sector_code` string
  - `metrics` object, required
  - `_source_catalog` SourceCatalogEnvelope, required
    - `catalog_version` string, required
    - `policy_fingerprint` string, required
    - `policy_effective_date` string, date
    - `sources` object, required
  - `_data_sources_used` PublicSourcePolicyMetadata[], required
    - `slug` string, required
    - `name` string, required
    - `license` string, required
    - `license_url` string, uri, nullable
    - `attribution_required` boolean, required
    - `attribution_text` string, nullable
    - `official_url` string, uri, nullable
    - `reuse_conditions` string, required: Condiciones de reutilizacion que el consumidor debe conservar al presentar o transformar el dato.
    - `policy_effective_date` string, date, required
    - `reviewed_at` string, date, required
    - `data_updated_at` string, date-time, nullable
    - `catalog_version` string, required
  - `_attributions` object

## Other responses

- `404`: Resource not found
- `429`: Rate limit exceeded
- `503`: The public read failed closed because its legal source catalog, subject classification, bounded projection, database helper or required artifact is unavailable. Clients must not infer an empty result.

## Changes

- **2026-07-26** `996f96a11758`: 22 info
  - api operation id `getCompanyBySlugBde` was added
  - the endpoint scheme security `apiKey` was added to the API
  - the endpoint scheme security `bearerAuth` was added to the API
  - added the non-success response with the status `404`
  - …18 more

[Operation history](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/changes/api/v1/company/:slug/bde/get.md)

---

[API](https://skmtc.dev/openmercantil/apis/openmercantil-public-api.md) - [All operations](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/revisions/601ff6123c86?raw)
