Get Spain Public Tender
get_es_public_tenderFetches a verified, token-optimized statutory public sector procurement tender from Spain's aggregated PLACSP syndication feed (CODICE XML) by expediente identifier (< 1.5 KB). Returns contracting authority, tender title, budget valuation in EUR, contract type, CPV code, awarded contractor, and award date. Note: PLACSP has no live single-tender lookup API, so this serves from Distil's continuously-synced data moat — use search_es_tenders first if you don't already have the exact expediente ID, and expect 'not found' for tenders outside the aggregated feed's recent window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenderId | Yes | Official Spanish public tender folder identifier or PLACSP expediente reference (e.g. '2024/00123'). | |
| forceFresh | No | Spend Control: When true, bypasses Edge KV cache and forces a real-time statutory primary registry call (applies 2.5x Freshness Inconvenience Surcharge). Default: false. | |
| maxAgeHours | No | Spend Control: Maximum acceptable data age in hours (e.g. 48 for 2 days tolerance). If cache satisfies this, delivers sub-5ms at standard 1.0x Economy rate. Set to 0 to force live primary fetch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| isError | No |