How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OpenMercantil Datasets API

Bulk exports (CSV / JSON / aggregated stats)

OpenMercantil Datasets API is one of 18 APIs that OpenMercantil publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Datasets. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 13 operations across 13 paths, organized into 3 resource areas, and defines 18 schemas. It is described by OpenAPI 3.1.0, at version 1.9.3.

Requests are made against a single base URL, https://openmercantil.es.

13 operations 13 paths 18 schemas 13 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.9.3
Base URL
https://openmercantil.es
Authentication
API Key, HTTP Bearer
Terms of Service
Resource Areas
3

Authentication & Security 2

OpenMercantil Datasets API declares 2 security schemes for authenticating requests. An API key is passed in the header as X-API-Key (apiKey). It accepts HTTP bearer tokens (opaque omk_* credential) (bearerAuth).

  • apiKey — Optional opaque omk API credential for public GETs. Anonymous access remains valid; a credential with the operation's x-api-credential-scope (or public:read) s…
  • bearerAuth — Optional Authorization: Bearer transport for the same opaque omk API credential accepted by X-API-Key. It is not a JWT or OAuth access token.

Paths & Operations 13

Across 13 paths, the API surfaces 13 operations — 13 GET. They span 3 resource areas: Datasets, Public Procurement, Companies. Each is listed below with its method, path, parameters, and response codes.

Datasets 8

Bulk exports (CSV / JSON / aggregated stats)

GET
/api/v1/datasets/public
List generation-bound public company downloads
listPublicCompanyDownloads 1 param → 200304429503
GET
/api/v1/ccaa/stats.json
Aggregates by autonomous community (CCAA)
getCcaaStatsJson 1 param → 200304429503
GET
/api/v1/ccaa/statsdeprecated
Get CCAA aggregates through the suffix-less legacy alias
getLegacyCcaaStats 1 param → 200304429503
GET
/api/v1/sectores/stats.json
Aggregates by CNAE sector
getSectoresStatsJson 1 param → 200304429503
GET
/api/v1/sectores/statsdeprecated
Get CNAE-sector aggregates through the suffix-less legacy alias
getLegacySectoresStats 1 param → 200304429503
GET
/api/v1/sectores/stats.csv
Aggregates by CNAE sector (CSV)
getSectoresStatsCsv 1 param → 200304429503
GET
/api/v1/export/eventsdeprecated
Bulk BORME export (offline artifact required)
getExportEvents → 503
GET
/api/v1/export/companiesdeprecated
Request an offline company export artifact (currently unavailable)
getExportCompanies 6 params → 400401403429503
Public Procurement 4
GET
/api/v1/contracts/top-companies
Corporate suppliers ranked by PLACSP award procedures
getContractsTopCompanies 1 param → 200400422429500503
GET
/api/v1/contracts/top-personsdeprecated
Top persons by PLACSP-signatory companies
getContractsTopPersons → 429503
GET
/api/v1/contracts/top-companies.csv
Corporate suppliers by award procedures (CSV)
getContractsTopCompaniesCsv 1 param → 200400422429500503
GET
/api/v1/contracts/top-persons.csvdeprecated
Top persons by PLACSP-signatory companies (CSV)
getContractsTopPersonsCsv → 400429503
Companies 1
GET
/api/v1/company/{slug}/export
Export a single company report
getCompanyBySlugExport 1 param → 200400404429503

Schemas 18

The contract defines 18 schemas that model the data the API accepts and returns. The most detailed are ErrorResponse (35 properties), PublicCompanyDownloadCatalog (15 properties), PublicSourcePolicyMetadata (12 properties), CompanyIdentity (12 properties). Each schema is shown below with its type and property counts.

AggregateProcurementFields
object
6 properties 6 required
BormeEvent
object
Sanitized documentary BORME event; additional source fields remain backward compatible.
10 properties
CcaaStatsResponse
object
4 properties 4 required
CcaaStatsRow
CompanyIdentity
object
Stable company identity fields. Historical report builders may append documented BORME fields.
12 properties
CompanyReport
object
Sanitized company report. The stable envelope is explicit; versioned BORME report fields may be added.
7 properties
ErrorResponse
object
Closed compatibility envelope for public/account errors. Route-specific schemas narrow these fields further where required.
35 properties 1 required
JsonValue
A JSON value used only inside explicitly documented extension maps.
OfficerDocumentaryMention
object
Documentary officer mention. It never contains DNI, contact details or a personal address.
7 properties
OfflineProjectionError
object
4 properties 1 required
ProjectionUnavailableError
object
Fail-closed projection outage. Clients must not reinterpret this response as an empty or negative result.
3 properties 3 required
PublicCompanyDownload
object
7 properties 7 required
PublicCompanyDownloadCatalog
object
15 properties 15 required
PublicSourcePolicyMetadata
object
12 properties 8 required
SectorStatsResponse
object
4 properties 4 required
SectorStatsRow
SourceCatalogEnvelope
object
4 properties 3 required
TenderSupplierResponse
object
10 properties 9 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

openmercantil-datasets-api-openapi.yml Raw ↑

Other APIs OpenMercantil publishes across the network.

OpenMercantil API Credentials API
OpenMercantil Billing API
OpenMercantil BORME API
OpenMercantil Companies API
OpenMercantil Graph API
OpenMercantil Integrations API
OpenMercantil Legal API
OpenMercantil Persons API
OpenMercantil Public Procurement API
OpenMercantil Risk Signals API
OpenMercantil Search API
OpenMercantil Sectors API
Where this information came from

This is an independent, third-party profile of OpenMercantil Datasets API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.