{
  "openapi": "3.0.1",
  "info": {
    "title": "Colombia Government Tenders & Contracts (SECOP II)",
    "description": "Colombian public tenders (procesos) and signed contracts from SECOP II open data as clean JSON: entity, department, modality, offer deadline, base price in COP, SECOP link, winning company and contract value. Accent-safe Spanish keyword search, new-only alerts.",
    "version": "0.1",
    "x-build-id": "6HLBTs0RYTIfh6hiT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~colombia-secop-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-colombia-secop-tenders",
        "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/dottti~colombia-secop-tenders/runs": {
      "post": {
        "operationId": "runs-sync-dottti-colombia-secop-tenders",
        "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/dottti~colombia-secop-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-colombia-secop-tenders",
        "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": {
          "recordTypes": {
            "title": "Record types",
            "type": "array",
            "description": "Tenders are SECOP II contracting processes (procesos de contratación). Awards are signed contracts with the winning company and the contract value.",
            "items": {
              "type": "string",
              "enum": [
                "tenders",
                "awards"
              ],
              "enumTitles": [
                "Tenders (procesos)",
                "Awards (signed contracts)"
              ]
            },
            "default": [
              "tenders"
            ]
          },
          "tenderStatus": {
            "title": "Which tenders",
            "enum": [
              "open",
              "published"
            ],
            "type": "string",
            "description": "open: published processes whose offer deadline has not passed. published: every process published in the date window, at any stage except draft.",
            "default": "open"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words matched against the process name and description (tenders) or the contract object (awards). Accents and case are ignored, so tecnologia matches TECNOLOGÍA. Spanish works best, for example software, obra, interventoría or alimentación escolar.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Keyword match mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any: at least one keyword. all: every keyword.",
            "default": "any"
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Keep records from these departments (departamento of the buying entity).",
            "items": {
              "type": "string",
              "enum": [
                "Amazonas",
                "Antioquia",
                "Arauca",
                "Atlántico",
                "Bolívar",
                "Boyacá",
                "Caldas",
                "Caquetá",
                "Casanare",
                "Cauca",
                "Cesar",
                "Chocó",
                "Córdoba",
                "Cundinamarca",
                "Distrito Capital de Bogotá",
                "Guainía",
                "Guaviare",
                "Huila",
                "La Guajira",
                "Magdalena",
                "Meta",
                "Nariño",
                "Norte de Santander",
                "Putumayo",
                "Quindío",
                "Risaralda",
                "San Andrés, Providencia y Santa Catalina",
                "Santander",
                "Sucre",
                "Tolima",
                "Valle del Cauca",
                "Vaupés",
                "Vichada"
              ]
            }
          },
          "modalities": {
            "title": "Modalities",
            "type": "array",
            "description": "SECOP contracting modality. Leave empty for every competitive one.",
            "items": {
              "type": "string",
              "enum": [
                "Licitación pública",
                "Licitación pública Obra Publica",
                "Selección Abreviada de Menor Cuantía",
                "Selección abreviada subasta inversa",
                "Seleccion Abreviada Menor Cuantia Sin Manifestacion Interes",
                "Concurso de méritos abierto",
                "Mínima cuantía",
                "Contratación régimen especial",
                "Contratación régimen especial (con ofertas)",
                "Contratación Directa (con ofertas)",
                "Contratación directa",
                "Solicitud de información a los Proveedores",
                "Enajenación de bienes con sobre cerrado"
              ]
            }
          },
          "competitiveOnly": {
            "title": "Skip direct awards",
            "type": "boolean",
            "description": "When no modality is picked, skip Contratación directa and plain Contratación régimen especial. Most of those are direct hires of individuals with no bidding.",
            "default": true
          },
          "entityNit": {
            "title": "Entity NIT",
            "type": "string",
            "description": "NIT of the buying entity without the check digit, for example 899999061, the NIT used by Bogotá D.C. and its local mayor offices (alcaldías locales). Sent to the API."
          },
          "entityContains": {
            "title": "Entity name contains",
            "type": "string",
            "description": "Keep records whose entity name contains this text, for example medellin, invias or gobernacion de antioquia."
          },
          "supplierContains": {
            "title": "Supplier contains (awards)",
            "type": "string",
            "description": "Keep contracts whose supplier company name contains this text."
          },
          "includeIndividualContracts": {
            "title": "Include contracts with individuals (awards)",
            "type": "boolean",
            "description": "Off: awards are limited to companies (NIT). On: contracts with natural persons are included, with the person name and ID withheld.",
            "default": false
          },
          "minValueCop": {
            "title": "Minimum value, COP",
            "minimum": 0,
            "type": "integer",
            "description": "Tenders: base price (precio base). Awards: contract value. In Colombian pesos."
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Tenders: publication date. Awards: signing date.",
            "default": 7
          },
          "publishedSince": {
            "title": "Published on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Date in YYYY-MM-DD format. Overrides the N days setting."
          },
          "onlyNew": {
            "title": "Only records not delivered before",
            "type": "boolean",
            "description": "Remember delivered IDs and skip them next time. Use it with a daily schedule for alerts.",
            "default": false
          },
          "stateKey": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory for each alert when you run several schedules with onlyNew.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum records per type",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on delivered tenders and, separately, on delivered awards, newest first. You pay per record delivered, so this is also your cost cap.",
            "default": 20
          },
          "maxPages": {
            "title": "Pages per type",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Each page holds up to 500 rows.",
            "default": 10
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 300,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause before each request to the open data API.",
            "default": 500
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries with backoff when the API fails or asks to slow down.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}