# Catalonia Public Tenders & Contract Awards (PSCP) (`hispanodata/catalonia-public-tenders-pscp`) Actor

Get public tenders (licitacions, licitaciones), awards, winners and minor contracts from Catalonia's official procurement platform (PSCP): Generalitat, councils, hospitals, universities. Filter by CPV, keyword, province, value. Official open data.

- **URL**: https://apify.com/hispanodata/catalonia-public-tenders-pscp.md
- **Developed by:** [Agusti Garcia](https://apify.com/hispanodata) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Catalonia Public Tenders & Contract Awards (PSCP)

Get **public tenders, awards, winners and minor contracts from Catalonia** as clean JSON/Excel: Generalitat de Catalunya, ajuntaments (city councils), diputacions, consorcis, hospitals, universities and public companies. Data comes from the **official open-data feed of Catalonia's Public Procurement Services Platform** (*Plataforma de serveis de contractació pública*, PSCP), published under an open licence that allows commercial reuse.

Catalonia publishes on its **own platform**, separate from Spain's central PLACSP. The open dataset holds about **2 million publications** (the oldest from 2010; minor contracts since 2018).

### What you get

- **Open calls for tenders** (*licitacions / licitaciones*) with budget, estimated value, CPV, contract type, procedure, place of execution, **submission deadline** and link.
- **Awards and formalised contracts** with **winner name and tax ID** (companies), amount awarded, number of offers received and SME status.
- **Minor contracts** (*contractes menors*): who sells what to each council, for how much.
- Prior notices, market consultations, cancellations and void tenders.

### Why use it instead of the raw open-data portal?

- **English, analysis-ready fields** (budgetExVat, estimatedValue, submissionDeadline, awardees\[]…) instead of 60+ Catalan columns, numbers as numbers and multi-winner fields split into a list.
- **Simple filters**: keywords, **CPV prefixes**, contract type, province, contracting body, value range, *only tenders still open*.
- **Incremental mode** (`onlyNew`): schedule it daily and receive only new tenders. Perfect for **tender alerts**.
- **GDPR-safe**: winners who are **natural persons** (self-employed) are redacted, and their names are removed from titles.

### Use cases

- **Tender alerts** for companies and consultancies (IT, construction, cleaning, health, events…).
- **Competitive intelligence**: who wins which contracts, at what price, with how many competitors.
- **Sales prospecting** of public buyers: which councils buy your kind of product.
- **Journalism and transparency** analysis of public spending.

### Input

```json
{
  "phases": ["open"],
  "cpvPrefixes": ["72"],
  "provinces": ["barcelona"],
  "onlyOpenForSubmission": true,
  "daysBack": 30,
  "maxItems": 500
}
```

Phases: `open`, `award`, `formalization`, `minorContract`, `priorNotice`, `futureAlert`, `marketConsultation`, `evaluation`, `cancellation`. Max 5,000 records per run.

### Output example

```json
{
  "id": "ce44de91-bf8e-4e83-9b70-88fc09f47bb6_1200272",
  "phase": "open",
  "publishedAt": "2026-11-09T11:18:00",
  "title": "Servei d'operacions, administració de sistemes i BaaS/DRaaS",
  "fileNumber": "CSI-2027-22",
  "contractType": "services",
  "procedure": "Obert",
  "cpv": "72600000-6",
  "lotNumber": "1",
  "lotDescription": "Operació i Administració de Sistemes (N2/N3).",
  "contractingBody": "Consorci Sanitari Integral",
  "department": "Departament de Salut",
  "nuts": "ES51",
  "duration": "1 any",
  "budgetExVat": 323925.0,
  "estimatedValue": 1295700.0,
  "submissionDeadline": "2026-12-07T14:00:00",
  "awardees": [],
  "url": "https://contractaciopublica.cat/ca/detall-publicacio/ce44de91-bf8e-4e83-9b70-88fc09f47bb6/300926044",
  "source": "Generalitat de Catalunya. Departament d'Economia i Finances. …",
  "sourceLastUpdated": "2026-11-10T09:00:18+00:00"
}
```

Award example (`awardees`): `[{"name": "ALO SYSTEMS, SL", "taxId": "B65266199", "isNaturalPerson": false, "idType": "NIF", "smeStatus": "PIME"}]`.

### Pricing

Pay per result: about **$2 per 1,000 records**, plus a small start fee per run.

### Data source and licence

- Source: **Generalitat de Catalunya. Departament d'Economia i Finances**, dataset *Contractació pública a Catalunya: publicacions a la Plataforma de serveis de contractació pública* (https://analisi.transparenciacatalunya.cat/d/ybgg-dgi6), under the **Llicència oberta d'ús d'informació - Catalunya**, which allows reuse, distribution and transformation, including for commercial purposes, provided that the source is cited, the last update date is reported and the meaning of the information is not altered. Every record carries `source` and `sourceLastUpdated` for that purpose: keep them when you republish.
- **Not affiliated** with, sponsored or endorsed by the Generalitat de Catalunya. Its logos and marks are not used.
- Values are returned as published; fields are renamed and reformatted only (original Catalan values are kept in `phaseOriginal` and `contractTypeOriginal`).

### Personal data

Some minor contracts are awarded to self-employed individuals. The source already masks their ID numbers; this Actor also **replaces their names** with `[natural person - redacted]` and removes those names from titles and descriptions. Free-text titles written by the contracting bodies can still mention people (for example an artist's stage name). If you process such data you are the controller under the GDPR and must have a legal basis; do not use this data for marketing to individuals.

*Aviso (ES/CA): dades obertes de la Generalitat de Catalunya reutilitzades d'acord amb la Llicència oberta d'ús d'informació - Catalunya. Eina no oficial. Les persones físiques adjudicatàries es redacten.*

**Keywords:** licitaciones Cataluña, licitacions públiques, contractació pública Catalunya, concursos públicos, adjudicaciones, contratos menores, contractes menors, PSCP, Generalitat de Catalunya, alertas de licitaciones, CPV.

# Actor input Schema

## `phases` (type: `array`):

Which publications to return. 'open' = calls for tenders (anuncis de licitació). 'award' and 'formalization' include winners and amounts. 'minorContract' = aggregated minor contracts (contractes menors).

## `keywords` (type: `array`):

Match any word in the title, object or lot description (case-insensitive; Catalan or Spanish as published, e.g. 'neteja', 'software', 'enllumenat').

## `cpvPrefixes` (type: `array`):

Keep contracts whose CPV starts with any of these digits, e.g. '72' (IT services), '45' (construction), '79' (business services), '3312' (medical equipment).

## `contractTypes` (type: `array`):

Leave empty for all.

## `provinces` (type: `array`):

Place of execution (NUTS3). Leave empty for all.

## `contractingBodies` (type: `array`):

Keep only bodies whose name contains any of these texts, e.g. 'Ajuntament de Barcelona', 'Institut Català de la Salut', 'Badalona'.

## `minValue` (type: `integer`):

Minimum estimated contract value, without VAT.

## `maxValue` (type: `integer`):

Maximum estimated contract value, without VAT.

## `onlyOpenForSubmission` (type: `boolean`):

For 'open' phase: keep only tenders whose submission deadline has not passed.

## `daysBack` (type: `integer`):

Publications from the last N days. Ignored if 'Date from' is set.

## `dateFrom` (type: `string`):

Publication date from, YYYY-MM-DD.

## `dateTo` (type: `string`):

Publication date to (inclusive), YYYY-MM-DD.

## `onlyNew` (type: `boolean`):

Remember what earlier runs with the same filters returned and skip it. Ideal for a daily schedule: you only pay for new tenders.

## `maxItems` (type: `integer`):

Maximum number of records to save (you only pay for saved records). Hard limit 5,000 per run.

## Actor input object example

```json
{
  "phases": [
    "open"
  ],
  "keywords": [
    "software"
  ],
  "onlyOpenForSubmission": false,
  "daysBack": 30,
  "onlyNew": false,
  "maxItems": 200
}
```

# Actor output Schema

## `overview` (type: `string`):

Tenders, awards and minor contracts with body, CPV, value, deadline and winners. Table view of the default dataset.

## `results` (type: `string`):

Full records in the default dataset, all fields.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "software"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hispanodata/catalonia-public-tenders-pscp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keywords": ["software"] }

# Run the Actor and wait for it to finish
run = client.actor("hispanodata/catalonia-public-tenders-pscp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "software"
  ]
}' |
apify call hispanodata/catalonia-public-tenders-pscp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hispanodata/catalonia-public-tenders-pscp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xxxoIWlch3bMi5eZc/builds/0ZfIWTMbeJMsUMGQ6/openapi.json
