Sectors

Get sector aggregated ratios

Changed on

Return Banco de Espana Central de Balances aggregate metrics by two-digit CNAE division and year from the immutable, hash-addressed sector_ratios_public_v1 bundle. Coverage is sector-aggregate only: it contains neither individual-company data nor a company score. The endpoint fails closed with 503, without a raw/request-path fallback, when activation, manifest, file hash or public-source catalog authority cannot be verified.

get/api/v1/sector/{cnae}/ratios

Request

Path parameters

cnaestring required

Exact two-digit CNAE division present in the reviewed BdE aggregate.

Headers

If-None-Matchstring

Optional RFC 9110 entity-tag validator. Weak validators, comma-separated validator lists and * are accepted.

Response

Sector ratios

codestring required

Changes

    • breaking

      for the path request parameter cnae, the minLength was increased from 0 to 2

    • breaking

      added the pattern ^[0-9]{2}$ to the path request parameter cnae

    • warning

      for the path request parameter cnae, the maxLength was set to 2

    • info

      api operation id getSectorByCnaeRatios was added

    • info

      the endpoint scheme security apiKey was added to the API

    • info

      the endpoint scheme security bearerAuth was added to the API

    • info

      added the new optional header request parameter If-None-Match

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status