Aggregates by CNAE sector
Changed onReturn per-CNAE section totals from the offline projection. The ETag is bound to the shared asv1 stats generation and uses 60-second must-revalidate caching. Procurement fields distinguish award procedures from contracts and never expose an untyped monetary rollup. Also available as CSV. Returns 503 instead of executing a live GROUP BY.
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/sectores/stats.json/get.tsA function with typed inputs. Its response is checked against the schema.
Headers
Optional RFC 9110 entity-tag validator. Weak validators, comma-separated validator lists and * are accepted.
Response
Sector stats
Changes
- info
api operation id
getSectoresStatsJsonwas 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 required property
to the 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 - info
added the required property
to the response with the status
- info