---
title: "Export a single company report"
method: GET
path: "/api/v1/company/{slug}/export"
tags: ["Companies", "Datasets"]
---

# Export a single company report

`GET /api/v1/company/{slug}/export`

## Request

- Base URL: `https://openmercantil.es`
- URL: `https://openmercantil.es/api/v1/company/{slug}/export`
- Auth: none declared
- TypeScript: <https://skmtc.dev/openmercantil/apis/openmercantil-public-api/docs/api/v1/company/:slug/export/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the same policy-filtered cached company projection as the canonical company route, serialized as downloadable JSON. The response is capped at 8 MiB and fails closed instead of rebuilding an oversized payload.

## Path parameters

- `slug` string, required

## Response `200`

Export

- CompanyReport: Sanitized company report. The stable envelope is explicit; versioned BORME report fields may be added.
  - `company` CompanyIdentity: Stable company identity fields. Historical report builders may append documented BORME fields.
    - `slug` string
    - `name` string
    - `cif` string, nullable
    - `province` string, nullable
    - `status` string, nullable
    - `status_detail` string, nullable
    - `status_date` string, nullable
    - `cnae` string, nullable
    - `cnae_source` string, nullable
    - `first_seen` string, nullable
    - `last_seen` string, nullable
    - `acts_count` integer
  - `events` BormeEvent[]
    - `id` string, nullable
    - `date` string, nullable
    - `publish_date` string, nullable
    - `type` string, nullable
    - `act_type` string, nullable
    - `title` string, nullable
    - `text` string, nullable
    - `province` string, nullable
    - `source` string, nullable
    - `source_url` string, uri, nullable
  - `officers` OfficerDocumentaryMention[]
    - `name` string
    - `person_slug` string, nullable
    - `role` string, nullable
    - `appointed_at` string, nullable
    - `ended_at` string, nullable
    - `source` string, nullable
    - `source_url` string, uri, nullable
  - `summary` object: Versioned aggregate fields emitted by the report artifact.
  - `_source_catalog` SourceCatalogEnvelope
    - `catalog_version` string, required
    - `policy_fingerprint` string, required
    - `policy_effective_date` string, date
    - `sources` object, required
  - `_data_sources_used` PublicSourcePolicyMetadata[]
    - `slug` string, required
    - `name` string, required
    - `license` string, required
    - `license_url` string, uri, nullable
    - `attribution_required` boolean, required
    - `attribution_text` string, nullable
    - `official_url` string, uri, nullable
    - `reuse_conditions` string, required: Condiciones de reutilizacion que el consumidor debe conservar al presentar o transformar el dato.
    - `policy_effective_date` string, date, required
    - `reviewed_at` string, date, required
    - `data_updated_at` string, date-time, nullable
    - `catalog_version` string, required
  - `_attributions` string[]

## Other responses

- `400`: Invalid request
- `404`: Resource not found
- `429`: Rate limit exceeded
- `503`: Bounded cached company projection unavailable

## Changes

- **2026-07-26** `996f96a11758`: 1 warning, 39 info
  - deleted the `query` request parameter `format`
  - api operation id `getCompanyBySlugExport` was added
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `400`
  - …36 more

[Operation history](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/changes/api/v1/company/:slug/export/get.md)

---

[API](https://skmtc.dev/openmercantil/apis/openmercantil-public-api.md) - [All operations](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openmercantil/apis/openmercantil-public-api/revisions/601ff6123c86?raw)
