Spain Public Procurement Scraper – PLACSP Tenders & Awards avatar

Spain Public Procurement Scraper – PLACSP Tenders & Awards

Pricing

from $0.90 / 1,000 results

Go to Apify Store
Spain Public Procurement Scraper – PLACSP Tenders & Awards

Spain Public Procurement Scraper – PLACSP Tenders & Awards

Scrape Spanish public tenders (licitaciones públicas, contratación pública) from contrataciondelsectorpublico.gob.es: CPV codes, budgets, award winners with NIF and bid counts. Filter by CPV, region, status and budget. No browser needed.

Pricing

from $0.90 / 1,000 results

Rating

0.0

(0)

Developer

Actor stats

0

Bookmarked

13

Total users

2

Monthly active users

10 days ago

Last modified

Features

Limited permissions

Share

Scrape Spanish public tenders (licitaciones públicas, contratación pública) from Spain's official procurement portal (contrataciondelsectorpublico.gob.es) using official ATOM/CODICE XML feeds. Extract structured data on government contracts, awards, budgets, CPV codes, winner details, and bid counts — all without a browser.

No browser required. Uses direct HTTP requests to download official XML feeds — fast, reliable, and cost-effective.

Why use this scraper

  • Official source — pulls directly from Spain's PLACSP platform, the authoritative registry for all public-sector procurement
  • Deep award data — extracts winner name, winner NIF (tax ID), award amount, number of bids received, and SME indicator
  • Powerful filters — narrow results by CPV code, region (CCAA/NUTS), minimum budget, and tender status
  • Two feed types — standard tenders (perfiles) and minor contracts (contratos menores)
  • Deduplication built in — when a tender appears across multiple months, only the latest version is kept
  • Fast and cheap — HTTP-only extraction: a 10-item run finishes in about a minute; a full month is ~12,000 tenders

Use cases

  • Government sales prospecting — find open tenders matching your company's CPV codes and regions
  • Procurement intelligence — monitor awarded contracts, winning prices, and competitive dynamics
  • Market research — analyze public spending patterns by sector, region, and contract size
  • Competitor tracking — identify which companies win government contracts in your industry
  • Compliance and transparency — audit public procurement data for journalistic or regulatory purposes
  • Lead generation — build targeted lists of contracting authorities and awarded companies with NIF identifiers

Supported data sources

Feed typeDescriptionCoverage
perfilesStandard public tenders (contratos mayores)Full procurement lifecycle
menoresMinor contracts (contratos menores)Simplified procurement

Input parameters

ParameterDescriptionDefault
monthsBackCalendar months to download, counting back from the current month (each month ~100–300 MB ZIP)1
fromMonthFirst month, YYYYMM (e.g. 202509). Overrides monthsBack—
toMonthLast month, YYYYMM, inclusive. Empty = up to the current month—
desde / hastaLegacy aliases of fromMonth / toMonth—
feedTypeperfiles (standard) or menores (minor contracts)perfiles
cpvFilterCPV code prefix (e.g. 45 for construction, 72 for IT)all
cpvMatchAllAlso match secondary and per-lot CPVs (cpv_all), not just the main CPVfalse
ccaaFilterRegion keyword in contracting authority name or NUTS codeall
importeMinMinimum budget in EUR (tax-exclusive)0
estadoFilterStatus: publicada, adjudicada, formalizada, resuelta, anuladaall
maxItemsMaximum items to return (0 = unlimited)0

Output fields

Every result includes up to 21 structured fields:

FieldDescription
expedienteTender reference number
objetoContract description
organo_contratanteContracting authority name
nif_organoContracting authority tax ID (NIF)
tipo_contratoContract type (Obras, Servicios, Suministros)
procedimientoProcedure type (Abierto, Restringido, etc.)
estadoStatus (Publicada, Adjudicada, Formalizada, etc.)
importe_sin_ivaBudget excluding VAT (EUR)
importe_con_ivaBudget including VAT (EUR)
cpv_principalMain CPV classification code
cpv_allAll CPV codes of the tender (project and lots), main CPV first
nutsNUTS region code
fecha_publicacionPublication date
fecha_limiteSubmission deadline
adjudicatarioAward winner name
nif_adjudicatarioWinner tax ID (NIF)
importe_adjudicacionAward amount (EUR)
num_ofertasNumber of bids received
es_pymeWhether the winner is an SME
urlDirect link to tender page
sourceData source identifier

Example input

{
"monthsBack": 3,
"feedType": "perfiles",
"cpvFilter": "45",
"importeMin": 100000,
"estadoFilter": "publicada"
}

Downloading long periods

Each month takes a few minutes to download and parse, so a 12-month run can approach the default 1-hour timeout. Split it into one run per month (or quarter) and merge the datasets, deduplicating by expediente:

{ "fromMonth": "202507", "toMonth": "202509", "cpvFilter": "31" }

A month that is not yet published on PLACSP is skipped with a warning. If a month fails to download after 3 retries, the run ends as FAILED (after pushing the data it did collect) so a gap never goes unnoticed. If the run timeout is about to expire before all months are downloaded, the run also ends as FAILED with a status message saying the time budget was exhausted (not a download error), after pushing what was collected; raise the run timeout or request fewer months. The SUMMARY record in the key-value store lists per-month status and record counts.

Example output

{
"expediente": "168/2025",
"objeto": "Proyecto constructivo de un nuevo Punto Verde O/1.301",
"organo_contratante": "Autoridad Portuaria de Vigo",
"nif_organo": "Q3667002D",
"tipo_contrato": "Obras",
"procedimiento": "Abierto",
"estado": "Publicada",
"importe_sin_iva": 124084.24,
"importe_con_iva": 150141.93,
"cpv_principal": "45232470",
"cpv_all": ["45232470"],
"nuts": "ES114",
"fecha_publicacion": "2026-06-06",
"fecha_limite": "2026-07-13",
"adjudicatario": "",
"nif_adjudicatario": "",
"importe_adjudicacion": null,
"num_ofertas": null,
"es_pyme": null,
"url": "https://contrataciondelestado.es/wps/poc?uri=deeplink:detalle_licitacion&idEvl=6Au3k6h85cH10HRJw8TEnQ%3D%3D",
"source": "placsp"
}

Cost estimation

ScenarioMonthsItemsEstimated cost (PPE)
First test (default form, maxItems 10)current10~$0.02 (about 1 minute)
Filtered recent tenderscurrent500~$0.46
One full month, no filters1~12,000~$10.8

Costs follow the pay-per-event prices below (item count x $0.0009 plus the start event). Narrow the run with cpvFilter, ccaaFilter, importeMin or estadoFilter to pay only for the tenders you need.

Memory: 2,048 MB by default (monthly ZIP files can be 100–300 MB each; 2 GB allows two parallel downloads). Recent-period runs that only use the ATOM feed need ~512 MB.

CPV code reference

Common CPV prefixes for filtering:

CPV prefixSector
45Construction works
72IT and computer services
71Architectural and engineering
50Repair and maintenance
33Medical equipment
34Transport equipment
79Business services
85Health and social services
90Sewage and waste services
80Education and training

Notes

  • Each monthly ZIP can be 50–300 MB; download time varies with server load
  • Records are deduplicated by expediente (latest version kept)
  • The PLACSP portal occasionally has downtime; each month is retried 3 times, and the run fails if a month still cannot be downloaded
  • The next month downloads in the background while the current one is parsed
  • No proxy required — datacenter IPs work fine with the official ATOM feed
  • For continuous monitoring, schedule runs daily or weekly via the Apify Scheduler

Pricing

The Spain Public Procurement Scraper uses a pay-per-event (PPE) pricing model on the Apify platform:

Cost componentPrice
Actor start$0.005 per GB of run memory (minimum one event; 2 GB default = $0.01)
Per result$0.0009 per procurement record

Example: a run returning 500 tenders at 2 GB costs approximately 2 × $0.005 + (500 × $0.0009) = $0.46.

The Spain Public Procurement Scraper is optimized for cost efficiency — it uses direct HTTP requests instead of a browser, keeping compute costs minimal. For large-scale procurement data extraction, the Spain Public Procurement Scraper processes thousands of records per dollar.

Use with Claude/ChatGPT (MCP)

Use the Spain Public Procurement Scraper from any MCP-compatible AI client through the Apify MCP server.

  • Hosted server (all your Actors): https://mcp.apify.com
  • Only this Actor: https://mcp.apify.com?tools=actors,rastriq/placsp-scraper
  • Local client: npx @apify/actors-mcp-server --tools rastriq/placsp-scraper with the APIFY_TOKEN environment variable set

Example prompts:

  • "Find open construction tenders (CPV 45) above 100,000 EUR published in Madrid this month."
  • "List IT services contracts (CPV 72) awarded recently, with winner NIF and number of bids."
  • "Show minor contracts (menores) for CPV 90 and summarize the contracting authorities."

Explore other Rastriq actors for business data extraction:

ActorDescription
TED Tenders APICompanion for EU-level public tenders from TED (Tenders Electronic Daily). Together with this Actor: the EU & Spain Public Tenders suite
Europages ScraperScrape European B2B supplier directories from europages.com

FAQ

Does the Spain Public Procurement Scraper require a proxy? No. The PLACSP portal serves data via official ATOM/XML feeds that work from datacenter IPs without any proxy.

How often is the data updated? The PLACSP platform publishes monthly feed archives. New tenders appear in the current month's feed within hours of publication. Schedule the Spain Public Procurement Scraper daily or weekly for continuous monitoring.

Can I filter tenders by CPV code or region? Yes. The Spain Public Procurement Scraper supports filtering by CPV code prefix, autonomous community (CCAA/NUTS), minimum budget, and tender status — all applied during extraction to minimize output size.

What is the difference between perfiles and menores feeds? The perfiles feed contains standard public tenders (contratos mayores) with the full procurement lifecycle. The menores feed contains minor contracts (contratos menores) with simplified procurement procedures and lower thresholds.

How much data does each monthly ZIP contain? Each monthly ZIP file is between 50 and 300 MB and typically contains 10,000–15,000 tender records. The Spain Public Procurement Scraper downloads, parses, and deduplicates these efficiently using streaming XML parsing.

Resumen en español

El Spain Public Procurement Scraper (Scraper de Licitaciones Públicas PLACSP) extrae datos estructurados de contratación pública del portal oficial español contrataciondelsectorpublico.gob.es. Descarga los feeds ATOM/CODICE mensuales en formato ZIP y los convierte en un dataset limpio con información detallada de cada licitación.

Datos extraídos: número de expediente, objeto del contrato, órgano de contratación, NIF, tipo de contrato, procedimiento, estado, importes (con y sin IVA), código CPV principal y todos los CPV (cpv_all), código NUTS, fechas, adjudicatario, NIF del adjudicatario, importe de adjudicación, número de ofertas recibidas e indicador PYME.

Rango de meses: fromMonth / toMonth (AAAAMM) para descargar un mes o periodo concreto; para periodos largos, lanzar un run por mes o trimestre y deduplicar por expediente.

Filtros disponibles: código CPV (por defecto solo el principal; con cpvMatchAll también los secundarios y de lotes), comunidad autónoma (CCAA/NUTS), presupuesto mínimo y estado de la licitación. Compatible con feeds de perfiles de contratante (contratos mayores) y contratos menores.

Para más información, consulte la documentación completa en inglés o ejecute el actor directamente en la plataforma Apify.