search_procurement
Search awarded public procurement processes from El Salvador's COMPRASAL system. Retrieve results with institution, supplier, amount, dates, and process code.
Instructions
Search awarded public procurement processes from El Salvador's COMPRASAL system. Returns matched awards, each with institution, supplier, awarded amount, dates, and process code. Use list_institutions first to turn an institution name into id_institucion. HOW FILTERING WORKS: the upstream government API only filters server-side by id_institucion. Year, free-text and date-range are applied CLIENT-SIDE by this server over the award date (fecha_adjudicacion) and text fields, by scanning newest-first pages. Because of that, prefer always passing id_institucion to keep the scan focused. The response includes a 'filtering' block: if window_fully_covered is false, increase 'page' to keep scanning older records. fecha_inicio/fecha_fin here DO filter on the actual award date. Each upstream record may represent one lot/supplier line of a larger process. One call scans a bounded number of pages (~7s each upstream), so it may take 10-40s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| anio | No | Fiscal year (client-side on fecha_adjudicacion). | |
| page | No | Scan window start, 1-based. | |
| search | No | Free-text, matched client-side. | |
| per_page | No | Max matched results (default 20). | |
| fecha_fin | No | Award-date upper bound YYYY-MM-DD. | |
| id_estado | No | State id from list_states. | |
| fecha_inicio | No | Award-date lower bound YYYY-MM-DD. | |
| id_modalidad | No | Modality id from list_modalities. | |
| id_institucion | No | Institution id from list_institutions. | |
| nombre_proceso | No | Process name (client-side). |