{
  "openapi": "3.0.1",
  "info": {
    "title": "SEACE Peru Tenders Scraper: Licitaciones & Contracts",
    "description": "Peru government tenders from SEACE (OECE open data): licitaciones and contrataciones del Estado with buyer and RUC, procurement method, category, items with CUBSO/UNSPSC codes, estimated value in soles, awards, suppliers and contracts. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "cYO1RLIvkXAaI4Znl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~seace-peru-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-seace-peru-tenders-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/steadyscrape~seace-peru-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-seace-peru-tenders-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/steadyscrape~seace-peru-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-seace-peru-tenders-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Keywords (palabras clave)",
            "type": "array",
            "description": "Words or phrases searched in each process's nomenclature, description and buyer name with SEACE's own search, one search per keyword. A phrase is matched as written, with and without its accents. SEACE matches whole words: <b>computadora</b> and <b>computadoras</b> are different searches, so add both. Up to 200 characters each. Leave empty for every process.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 7300,
            "type": "integer",
            "description": "Processes whose call (convocatoria) was published from this many days ago up to today, in Lima time. Ignored when the dates below are set. SEACE's open data is refreshed every morning from 08:15 in Lima, so today's calls appear tomorrow.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "The first publication day, YYYY-MM-DD (from 2004-01-01). Leave empty to count back from the last day.",
            "default": ""
          },
          "publishedTo": {
            "title": "Published to (optional)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "The last publication day, YYYY-MM-DD. Leave empty for today.",
            "default": ""
          },
          "categories": {
            "title": "Category (objeto)",
            "type": "array",
            "description": "Goods (bienes), services (servicios) or works (obras). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "services",
                "works"
              ],
              "enumTitles": [
                "Bienes (goods)",
                "Servicios (services)",
                "Obras (works)"
              ]
            },
            "default": []
          },
          "procurementMethods": {
            "title": "Procurement method (procedimiento de selección)",
            "type": "array",
            "description": "The selection procedure. Each choice covers every way SEACE has written it across versions and laws (for example 'Licitación Pública', 'LICITACION PUBLICA NACIONAL'). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "licitacion-publica",
                "licitacion-publica-abreviada",
                "concurso-publico",
                "concurso-publico-abreviado",
                "adjudicacion-simplificada",
                "adjudicacion-selectiva",
                "adjudicacion-abreviada",
                "subasta-inversa-electronica",
                "comparacion-de-precios",
                "contratacion-directa",
                "contratacion-internacional",
                "convenio",
                "regimen-especial",
                "procedimiento-especial",
                "seleccion-consultores-individuales",
                "contratos-estandarizados",
                "menor-cuantia",
                "adjudicacion-directa",
                "competencia",
                "other"
              ],
              "enumTitles": [
                "Licitación Pública",
                "Licitación Pública Abreviada",
                "Concurso Público (incl. de Servicios, para Consultoría)",
                "Concurso Público Abreviado",
                "Adjudicación Simplificada",
                "Adjudicación Selectiva",
                "Adjudicación Abreviada",
                "Subasta Inversa Electrónica",
                "Comparación de Precios",
                "Contratación Directa (incl. former Exoneraciones)",
                "Contratación Internacional",
                "Convenio",
                "Régimen Especial",
                "Procedimiento Especial de Contratación",
                "Selección de Consultores Individuales",
                "Contratos Estandarizados",
                "Adjudicación de Menor Cuantía (before 2016)",
                "Adjudicación Directa Pública / Selectiva (before 2016)",
                "Competencia Menor / Mayor (before 2016)",
                "Other (emergency decrees, special laws, Bolsa de Productos…)"
              ]
            },
            "default": []
          },
          "departments": {
            "title": "Buyer's department (departamento)",
            "type": "array",
            "description": "Keeps processes whose buying entity's address is in these departments, as SEACE's directory of State entities writes it. Leave empty for all of Peru.",
            "items": {
              "type": "string",
              "enum": [
                "AMAZONAS",
                "ANCASH",
                "APURIMAC",
                "AREQUIPA",
                "AYACUCHO",
                "CAJAMARCA",
                "CALLAO",
                "CUSCO",
                "HUANCAVELICA",
                "HUANUCO",
                "ICA",
                "JUNIN",
                "LA LIBERTAD",
                "LAMBAYEQUE",
                "LIMA",
                "LORETO",
                "MADRE DE DIOS",
                "MOQUEGUA",
                "PASCO",
                "PIURA",
                "PUNO",
                "SAN MARTIN",
                "TACNA",
                "TUMBES",
                "UCAYALI"
              ],
              "enumTitles": [
                "Amazonas",
                "Áncash",
                "Apurímac",
                "Arequipa",
                "Ayacucho",
                "Cajamarca",
                "Callao",
                "Cusco",
                "Huancavelica",
                "Huánuco",
                "Ica",
                "Junín",
                "La Libertad",
                "Lambayeque",
                "Lima",
                "Loreto",
                "Madre de Dios",
                "Moquegua",
                "Pasco",
                "Piura",
                "Puno",
                "San Martín",
                "Tacna",
                "Tumbes",
                "Ucayali"
              ]
            },
            "default": []
          },
          "buyerRucs": {
            "title": "Buyer's RUC (entidad contratante)",
            "type": "array",
            "description": "The 11-digit RUC of the State entities that buy, for example <b>20131257750</b> for EsSalud. Each is looked up in SEACE's directory of entities; a RUC it does not have gives a free row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stage": {
            "title": "Stage (etapa)",
            "enum": [
              "any",
              "awarded",
              "contracted"
            ],
            "type": "string",
            "description": "Any process, or only those already awarded (buena pro, with the winning suppliers and their RUC), or only those with a signed contract.",
            "default": "any"
          },
          "minValue": {
            "title": "Minimum estimated value (S/)",
            "minimum": 0,
            "type": "integer",
            "description": "The reference value (valor estimado) in soles. 0 means no minimum. Processes whose value SEACE withholds by law during the selection phase have none, so a minimum or a maximum leaves them out.",
            "default": 0
          },
          "maxValue": {
            "title": "Maximum estimated value (S/)",
            "minimum": 0,
            "type": "integer",
            "description": "The reference value in soles. 0 means no maximum.",
            "default": 0
          },
          "processes": {
            "title": "Specific processes (optional)",
            "type": "array",
            "description": "Processes to read directly, by OCID (<b>ocds-dgv273-seacev3-1266483</b>), SEACE process number (<b>1266483</b>) or their page on contratacionesabiertas.oece.gob.pe. When set, the search and its filters above are not used: each process's latest state is delivered, with its awards and contracts.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum tenders",
            "minimum": 0,
            "type": "integer",
            "description": "The most tenders delivered in one run, newest process first. 0 means no limit.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}