{
  "openapi": "3.0.1",
  "info": {
    "title": "Colombia SECOP II Tenders Feed - Licitaciones (no key)",
    "description": "New Colombian public tenders (procesos de contratación) and contracts awarded to companies from official SECOP II open data: buyer, modality, base price, deadline, supplier NIT, value. Filters, since-last-run.",
    "version": "0.1",
    "x-build-id": "SvsvTIDBzBwi3gifV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~colombia-secop-tenders-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-colombia-secop-tenders-feed",
        "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/moment-data~colombia-secop-tenders-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-colombia-secop-tenders-feed",
        "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/moment-data~colombia-secop-tenders-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-colombia-secop-tenders-feed",
        "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": "Mode",
            "enum": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "sinceLastRun remembers delivered records in a named key-value store (per State key), so scheduled runs only return new ones.",
            "default": "window"
          },
          "recordTypes": {
            "title": "Record types",
            "type": "array",
            "description": "Empty = both, split fairly.",
            "items": {
              "type": "string",
              "enum": [
                "tenders",
                "contracts"
              ],
              "enumTitles": [
                "Tenders (procesos de contratación)",
                "Contracts awarded to companies (contratos)"
              ]
            },
            "default": []
          },
          "modalities": {
            "title": "Modalities",
            "type": "array",
            "description": "Empty = for tenders all competitive modalities (licitación, selección abreviada, mínima cuantía, concurso de méritos, with-offers direct / special regime, asset sales); for contracts all modalities. Pure direct contracting is only available for contracts.",
            "items": {
              "type": "string",
              "enum": [
                "licitacion",
                "seleccionAbreviada",
                "minimaCuantia",
                "concursoMeritos",
                "directaConOfertas",
                "regimenEspecialConOfertas",
                "enajenacion",
                "solicitudInformacion",
                "contratacionDirecta",
                "regimenEspecial"
              ],
              "enumTitles": [
                "Licitación pública (incl. obra pública)",
                "Selección abreviada (menor cuantía / subasta inversa)",
                "Mínima cuantía",
                "Concurso de méritos (consultancy)",
                "Contratación directa con ofertas",
                "Régimen especial con ofertas",
                "Enajenación de bienes (sale of public assets)",
                "Solicitud de información (RFI / market study)",
                "Contratación directa (contracts only)",
                "Régimen especial (contracts only)"
              ]
            },
            "default": []
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Window counted back from the newest date in each dataset. Default 3 (window) or 14 (since last run)."
          },
          "fromDate": {
            "title": "From date (YYYY-MM-DD)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional fixed range start (publication date for tenders, signature date for contracts)."
          },
          "toDate": {
            "title": "To date (YYYY-MM-DD)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Optional fixed range end."
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Buyer's department, e.g. Antioquia, Bogotá, Valle del Cauca, Atlántico, Santander (accent-insensitive). Empty = all Colombia.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Buyer's city, e.g. Medellín, Cali, Barranquilla (exact name, accent-insensitive).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "buyerNits": {
            "title": "Buyer NITs",
            "type": "array",
            "description": "NITs of public entities to follow (9 digits, check digit optional).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "supplierNits": {
            "title": "Supplier NITs (contracts)",
            "type": "array",
            "description": "Company NITs (start with 8 or 9) to track contract wins, e.g. competitors.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Keep records whose title / description / object contains any of these words (accent-insensitive), e.g. software, evento, obra, transporte.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop records containing any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "unspscPrefixes": {
            "title": "UNSPSC code prefixes",
            "type": "array",
            "description": "Main UNSPSC category prefixes, e.g. 43 (IT), 72 (construction), 80 (management services), 8014 (marketing).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Minimum value (COP)",
            "minimum": 0,
            "type": "integer",
            "description": "Tenders: base price; contracts: contract value."
          },
          "onlyOpen": {
            "title": "Only open tenders",
            "type": "boolean",
            "description": "Keep only tenders still open with an offer deadline today or later (contracts are skipped).",
            "default": false
          },
          "smeSuppliersOnly": {
            "title": "Only SME suppliers (contracts)",
            "type": "boolean",
            "description": "Keep only contracts won by MiPymes (es_pyme).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum records per run (newest first). Each record is one billed event.",
            "default": 30
          },
          "textChars": {
            "title": "Description length",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Characters of description / object kept (emails, phones and ID numbers masked).",
            "default": 1000
          },
          "maxPagesPerQuery": {
            "title": "Max pages per query",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Safety cap on 1,000-row pages read per record type when client-side filters (keywords, UNSPSC, city) are used.",
            "default": 20
          },
          "stateKey": {
            "title": "State key (since last run)",
            "type": "string",
            "description": "Separate memory per saved search in Since last run mode.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}