{
  "openapi": "3.0.1",
  "info": {
    "title": "Colombia Public Tenders — SECOP II Procurement Opportunities",
    "description": "Open public tenders in Colombia from the official SECOP II open data: buyer, budget in COP, bid deadline, modality, contract type and link. Filter by keyword, department, value or entity, track new tenders, or pull award history.",
    "version": "0.1",
    "x-build-id": "UEDvUav0CHJZTt6P5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/boliveira~colombia-secop-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-boliveira-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/boliveira~colombia-secop-tenders/runs": {
      "post": {
        "operationId": "runs-sync-boliveira-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/boliveira~colombia-secop-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-boliveira-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": {
          "mode": {
            "title": "Which tenders",
            "enum": [
              "open",
              "all"
            ],
            "type": "string",
            "description": "open = tenders currently accepting bids (bid deadline today or later), soonest deadline first. all = every process including closed and awarded ones, newest first (use dates to narrow).",
            "default": "open"
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Full-text search in the tender, e.g. software, construcción, vigilancia."
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Buyer's department as written in SECOP, e.g. Antioquia, Distrito Capital de Bogotá, Valle del Cauca.",
            "items": {
              "type": "string"
            }
          },
          "entity": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Part of the public entity's name, e.g. ALCALDIA DE MEDELLIN or ECOPETROL."
          },
          "modalities": {
            "title": "Procurement modalities",
            "type": "array",
            "description": "Only these modalities. Empty = all competitive modalities.",
            "items": {
              "type": "string",
              "enum": [
                "Mínima cuantía",
                "Selección Abreviada de Menor Cuantía",
                "Selección abreviada subasta inversa",
                "Licitación pública",
                "Licitación pública Obra Publica",
                "Concurso de méritos abierto",
                "Solicitud de información a los Proveedores",
                "Contratación régimen especial (con ofertas)",
                "Contratación Directa (con ofertas)",
                "Contratación régimen especial",
                "Contratación directa"
              ]
            }
          },
          "contractTypes": {
            "title": "Contract types",
            "type": "array",
            "description": "As written in SECOP, e.g. Obra, Suministros, Compraventa, Prestación de servicios, Consultoría.",
            "items": {
              "type": "string"
            }
          },
          "minValueCop": {
            "title": "Minimum budget (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only tenders with a base budget at least this high."
          },
          "maxValueCop": {
            "title": "Maximum budget (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only tenders with a base budget at most this high."
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "includeDirectContracting": {
            "title": "Include direct awards",
            "type": "boolean",
            "description": "Add 'Contratación directa' processes. They are not open to bids and are mostly individual service contracts, so they are left out by default.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new tenders",
            "type": "boolean",
            "description": "Skip tenders returned by earlier runs. Schedule the Actor daily for new-tender alerts.",
            "default": false
          },
          "maxResults": {
            "title": "Max tenders",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum number of tenders to return.",
            "default": 1000
          },
          "appToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Your free datos.gov.co app token raises rate limits for very large pulls. Not needed for normal use."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}