What compliance workflows should a Spanish public records API support?

A suitable API should support onboarding, periodic monitoring, investigations, and evidence retrieval without forcing analysts to search each official portal manually. Test complete workflows rather than comparing endpoint counts.

For onboarding, the API should accept existing identifiers, locate the legal entity, and return relevant corporate, insolvency, procurement, and regulatory records. Responses should distinguish confirmed matches from candidates requiring human review.

Monitoring requires more than repeating the onboarding query. Compliance teams need durable watchlists, newly published events, deduplication, and enough context to decide whether a change is material. Useful events include appointments and resignations, capital changes, dissolutions, insolvency publications, public-contract awards, and regulatory sanctions.

Investigations need the reverse path: an analyst should be able to move from a result to the underlying publication, inspect the original wording, and reconstruct what the system knew at a particular time. Results should be exportable with identifiers, timestamps, source references, and matching evidence.

Do not assume one risk score can replace these records. A score may help prioritize work, but compliance decisions should remain traceable to specific events. Forma separates normalized corporate events in Official Company Signals from higher-risk public events in Public Risk Signals, allowing teams to choose the evidence appropriate to each workflow.

Which Spanish sources should the API cover?

At minimum, coverage should be explicit for BORME, the Plataforma de Contratación del Sector Público, the Registro Público Concursal, and sector-specific regulators relevant to your counterparties. “Spanish public records” is not meaningful unless the provider names its sources, fields, dates, and exclusions.

BORME is central to corporate-event monitoring. The Spanish State Official Gazette Agency, or AEBOE, explains that BORME’s first section contains registered acts and other acts published by the Commercial Registry, while its second section contains legal notices. Its open-data service provides a REST endpoint for each publication date, with document links in PDF, HTML, and XML; available API summaries begin in January 2009. The source also lists notices such as capital increases and reductions, mergers, dissolutions, transformations, and declarations of insolvency in its BORME open-data FAQ.

BORME is not a substitute for every Registry document or a current certified extract. Ask which fields come directly from publications, which are parsed or inferred, and when a primary Registry document is necessary.

PLACSP matters when supplier due diligence includes public-sector activity. The platform’s OpenPLACSP manual states that its open data follows Spain’s public-sector information reuse framework and is distributed using Atom/XML; downloadable datasets are also grouped into compressed files. Procurement coverage should identify the buyer, tender identifier, procedure, lots, bidders where published, awardee, value, dates, status, and source notice. Forma’s Tender Intelligence is one example of a product boundary focused on this domain.

The Registro Público Concursal is a separate source for formal insolvency and restructuring events. The Registry says its purpose includes publishing court resolutions, negotiation openings, judicial approval of restructuring plans, liquidations, asset sales, and related entries. It also warns that the Colegio de Registradores supplies the portal technology but does not create or modify submitted information and cannot guarantee completeness because publication depends on third parties (Registro Público Concursal legal notice).

Regulatory coverage should be defined regulator by regulator. For example, the CNMV maintains a public sanctions register and states that serious and very serious infringements are published under Spain’s securities-market framework (CNMV sanctions register). Ask which additional authorities are included and whether the provider captures decisions, appeals, corrections, and effective dates.

How should entity resolution work across names and historical records?

The API should resolve records using stable identifiers where available, while treating names, addresses, and officers as supporting evidence rather than conclusive proof. It should expose how each match was made and how confident the provider is.

Test difficult examples: companies with common names, punctuation differences, abbreviations, renamed entities, relocated offices, and names reused after dissolution. A system that performs well only with an exact current legal name will create manual work in production.

The data model should retain observed names instead of overwriting them with the latest name. Each alias should have a source and, where available, a validity or publication period. The same principle applies to addresses, legal form, officers, and status: investigators need a history, not merely a mutable profile.

Ask whether the provider maintains one internal entity identifier across sources and returns source-specific identifiers alongside it. A BORME publication, procurement notice, and insolvency entry should be joined only when evidence supports the connection. Ambiguous matches should remain candidates rather than being silently merged.

Finally, test explainability. A useful response might say that an exact identifier matched while the legal name differed because a later BORME act recorded a rename. A bare confidence score cannot show whether the system relied on an identifier, a name-and-address combination, or an unsupported inference.

How fresh and complete should the data be?

Freshness must be measured from official publication to provider availability, while completeness should be evaluated separately by source, record type, and historical period. “Updated daily” does not show when a specific publication became queryable or whether failed imports were recovered.

Request the source’s publication or event date, provider ingestion time, and response or retrieval time. These distinguish a late official publication from a delayed pipeline. For corrections and reprocessed records, the API should identify when the normalized representation changed.

Historical depth should be stated as dates, not “full history.” AEBOE says its BORME summary API begins in January 2009, while its searchable database for second-section legal notices includes material published since 2001. Coverage may differ by section, field, or document format, so ask for a coverage matrix and known-gap register.

Cross-referencing should add evidence without erasing disagreement. If one source shows an old name while a later source shows a new one, both observations should survive with dates and citations. Ask how the provider handles corrections, duplicate notices, removed documents, late-arriving records, and backfills.

Run a reconciliation test against a fixed sample of official publications. Measure missing records, duplicates, incorrect entity links, field-level parsing errors, and ingestion delay across quiet days, heavy publication days, and poorly formatted records.

What API reliability and failure handling should you verify?

Verify authentication, documented quotas, latency, availability, pagination stability, retry behavior, and error semantics under normal and degraded conditions. The integration should fail visibly and recover predictably without duplicating work or losing events.

Authentication should support secret rotation without downtime and separate development and production credentials. Rate limits must be stated as enforceable numbers with a documented response when the limit is reached. Test burst and sustained traffic, large historical queries, concurrent pagination, and behavior near a billing or credit boundary. Compare expected call volume with the provider’s API pricing and credits, including retries, monitoring, and backfills.

Failure responses should distinguish invalid input, authentication failure, quota exhaustion, unavailable upstream data, and internal errors. The IETF’s RFC 9457 defines a standard problem-details format for structured API errors. For throttling, HTTP 429 and an actionable retry interval are preferable to an unexplained empty result.

Clients should use bounded retries with backoff for transient failures and avoid treating an empty response as proof that no record exists. The IETF’s RFC 9110 explains when idempotent requests can be repeated after communication failures.

Ask for service-level objectives and incident history, then verify behavior in a sandbox. Your telemetry should record request IDs, status codes, latency, retry count, result count, and the most recent successfully processed publication date.

What provenance and citations make compliance decisions auditable?

Every material result should point to the original authority and preserve enough metadata to reproduce the finding. At minimum, retain the source name, URL, publication identifier, publication date, retrieval timestamp, matched entity identifier, and relevant excerpt or field location.

For BORME, normalized JSON is convenient but is not the legally authoritative artifact. AEBOE states that, from 1 January 2009, the electronic BORME has the legal effects of the printed edition and that authenticity can be checked against the electronically signed original using its CVE, or electronic verification code (AEBOE legal notice). An audit-ready API should retain that path to the official document.

Provenance should cover transformations too. Ask for parser or schema versions, whether raw sources are retained, how corrections propagate, and whether previously returned responses can be reconstructed. If the system classifies an event as a risk signal, the output should separate the published fact from the provider’s interpretation.

Matching provenance is equally important. Store why the event was attached to the entity, not just which entity was chosen. When a human overrides a match or disposition, preserve the original result, reviewer, decision time, and reason.

Retention should align with the compliance purpose and applicable data-protection obligations. Public availability does not remove the need for access controls, minimization, review procedures, and defensible retention periods.

What should be on a pre-integration evaluation checklist?

A pre-integration review should combine source validation, representative data tests, technical load tests, security review, legal review, and a short production-like pilot. Do not approve the provider until evidence can be carried from API response to an analyst’s final case record.

Begin with a written coverage matrix listing each official source, record category, first available date, expected update schedule, documented exclusions, and source-level disclaimer. Select a test corpus containing active and dissolved companies, renamed entities, common names, insolvency records, procurement activity, sanctions, corrections, and known no-hit cases.

For every test entity, examine recall, false matches, duplicate suppression, historical continuity, and links to primary evidence. Confirm that “no result” is distinguishable from an unsupported source, delayed ingestion, invalid query, or upstream outage.

Then test the API contract: authentication and rotation, stable versioning, pagination, date filters, bulk retrieval, timeouts, rate-limit responses, retry safety, webhook or polling behavior, idempotency, schema changes, and deprecation notice. Validate that observability can detect stalled ingestion even when requests return HTTP 200.

Review commercial terms for quotas, credits, overages, data retention, support response, redistribution, and exit. Establish how you will export identifiers, evidence, and monitoring state if you change provider. Require a process for reporting parsing or matching errors and obtaining a traceable correction.

Finally, run a pilot through the real workflow. Have analysts review results, open source documents, record dispositions, and measure time saved as well as errors introduced. The best Spanish public records API is the one that produces defensible evidence under your actual policies, volumes, and risk thresholds—not the one with the longest feature list.

Is BORME alone enough for Spanish company due diligence?

No. BORME provides essential corporate acts and legal notices, but insolvency, procurement, and sector-specific regulatory facts may originate in other official systems.

The right source set depends on the decision. A basic corporate change alert may begin with BORME, while supplier onboarding can also require insolvency and public-contract checks.

Should an API return a compliance risk score?

A score can prioritize reviews, but it should not conceal the underlying records, matching logic, or source limitations. Teams should be able to reproduce the evidence and apply their own policy thresholds.

Treat the score as a classification layer. Preserve the official facts, rule or model version, and reasons affecting the result.

How long should a Spanish public records API pilot run?

Run it long enough to observe historical retrieval and at least one complete monitoring cycle across the required sources. The decisive factor is coverage of representative events and failure cases, not a fixed number of calendar days.

Define acceptance thresholds before the pilot begins. Include match accuracy, missing-event rate, ingestion delay, API failure recovery, analyst review time, and audit-record completeness.

FAQ:

  • Is BORME alone enough for Spanish company due diligence? → No. BORME covers essential corporate acts and notices, but insolvency, procurement, and regulatory checks can require separate official sources.
  • Should an API return a compliance risk score? → A score may prioritize reviews, but the API should also expose the underlying records, source citations, matching logic, and classification version.
  • How long should a Spanish public records API pilot run? → Run the pilot until it covers historical retrieval, at least one full monitoring cycle, representative events, and realistic failure scenarios.