Published public-dataset counters
Changed onReturn the number of legal entities actually published in the active company_public_v2 sidecar, plus an optional offline person-mention approximation. It never exposes the raw 2.8M-row companies population and never runs a request-path COUNT. Sidecar unavailability is 503, not a zero/null company count.
Request
- Base URLhttps://openmercantil.es
- Auth
- none
- or API key in header X-API-Key
- or HTTP bearer
- TypeScriptA 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
Stats response
Example response
{
"total_persons_approx": 970000
}Changes
- breaking
the response property
became nullable for the status - info
api operation id
getStatswas 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
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the
response property const value1.2was added for 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
- breaking