Get sector aggregated ratios
Changed onReturn 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.
Request
- Base URLhttps://openmercantil.es
- Auth
- none
- or API key in header X-API-Key
- or HTTP bearer
- TypeScripthttps://skmtc.dev/openmercantil/apis/openmercantil-public-api/docs/api/v1/sector/:cnae/ratios/get.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
Exact two-digit CNAE division present in the reviewed BdE aggregate.
Headers
Optional RFC 9110 entity-tag validator. Weak validators, comma-separated validator lists and * are accepted.
Response
Sector ratios
Changes
- breaking
for the
pathrequest parametercnae, the minLength was increased from0to2 - breaking
added the pattern
^[0-9]{2}$to thepathrequest parametercnae - warning
for the
pathrequest parametercnae, the maxLength was set to2 - info
api operation id
getSectorByCnaeRatioswas added - info
the endpoint scheme security
apiKeywas added to the API - info
the endpoint scheme security
bearerAuthwas added to the API - info
added the new optional
headerrequest parameterIf-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
- breaking