OpenAPI Specification
openapi: 3.0.3
info:
title: OpenMercantil Public Billing System API
version: 1.4.0
description: 'Public JSON API for Spanish company information derived from BORME and other
public sources. OpenMercantil is independent and informational; it is not
the BOE, BORME or Registro Mercantil and does not replace official
certificates or registry extracts. The API is free and public, requires no
API key, and is rate-limited per IP. Versions v1.0 through v1.4 are
available and documented at https://openmercantil.es/api/documentacion.
'
termsOfService: https://openmercantil.es/terminos-de-uso
contact:
name: OpenMercantil
url: https://openmercantil.es/soporte
email: social@openmercantil.es
license:
name: CC BY 4.0 For Derived Public-Data Outputs
url: https://creativecommons.org/licenses/by/4.0/
servers:
- url: https://openmercantil.es
description: Production
tags:
- name: System
description: Service health and metadata
paths:
/api/v1/health:
get:
tags:
- System
summary: Service Health
operationId: getHealth
description: Return service status, freshness and dataset counters when available.
responses:
'200':
description: Health response
content:
application/json:
schema:
$ref: '#/components/schemas/Health'
components:
schemas:
Health:
type: object
properties:
status:
type: string
version:
type: string
companies_indexed:
type: integer
events_indexed:
type: integer
last_updated:
type: string
nullable: true
additionalProperties: true
securitySchemes:
sessionCookie:
type: apiKey
in: cookie
name: session
description: Session cookie issued after web sign-in, required only for billing endpoints.