{
  "openapi": "3.0.1",
  "info": {
    "title": "Ecuador Contract Awards Radar: SERCOP Open Data (OCDS)",
    "description": "Ecuador public contract awards from the official SERCOP open contracting data as clean JSON: buyer, province, method, winner and RUC, award value, bids received and catalogue orders. Filter by keyword, buyer, winner, province and value; alerts for new awards.",
    "version": "0.1",
    "x-build-id": "jbeSDmmKpISYS5C56"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~ecuador-award-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-ecuador-award-radar",
        "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~ecuador-award-radar/runs": {
      "post": {
        "operationId": "runs-sync-dottti-ecuador-award-radar",
        "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~ecuador-award-radar/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-ecuador-award-radar",
        "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": {
          "awardedSince": {
            "title": "Awarded since",
            "type": "string",
            "description": "Awards on this day (YYYY-MM-DD, Ecuador time) or later. Empty = the newest awards from the last monthly files (see Monthly files to read). A date reads every monthly file from 2 months before it, back to 2015-01-01."
          },
          "monthsToRead": {
            "title": "Monthly files to read (no date)",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "Used when Awarded since is empty: how many of the newest monthly files to read. Empty = auto: the current month's file, plus last month's only if the current one has fewer matches than Max results. For daily alerts use 3: in November 2026, 53% of the month's awards sat in the November file, 34% in October's and 14% in September's. Older files are bigger (October 2026: 7 MB, September: 13 MB) and can take a minute or more each to download."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words matched against the contract object, process code, buyer, winner, framework agreement and item names. Case and accents are ignored. Examples: asfalto, medicamentos, computadoras, limpieza, vehiculos.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Keyword match mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any: at least one keyword. all: every keyword.",
            "default": "any"
          },
          "buyers": {
            "title": "Buyers",
            "type": "array",
            "description": "Keep awards whose buyer name contains one of these, or whose buyer RUC equals one, for example GOBIERNO AUTONOMO DESCENTRALIZADO, HOSPITAL, MINISTERIO DE SALUD.",
            "items": {
              "type": "string"
            }
          },
          "suppliers": {
            "title": "Winning suppliers",
            "type": "array",
            "description": "Keep awards whose winner name or RUC contains one of these. Use it to follow competitors.",
            "items": {
              "type": "string"
            }
          },
          "provinces": {
            "title": "Provinces or cities",
            "type": "array",
            "description": "Buyer's province or city as SERCOP writes it, for example PICHINCHA, GUAYAS, AZUAY, MANABI, QUITO, CUENCA. Empty = all of Ecuador.",
            "items": {
              "type": "string"
            }
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "Part of the method name, for example Subasta Inversa, Licitación, Menor Cuantía, Cotización, Catálogo electrónico, Régimen Especial. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "excludeCatalogue": {
            "title": "Leave out catalogue orders",
            "type": "boolean",
            "description": "Skip electronic catalogue purchase orders (Catálogo electrónico), which are most of the awards, and keep competitive processes only.",
            "default": false
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "goods, services or works (only set for competitive processes, not for catalogue orders). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "minValueUsd": {
            "title": "Minimum award value (USD)",
            "type": "integer",
            "description": "Keep awards worth at least this amount in US dollars."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many matching awards (newest first).",
            "default": 20
          },
          "onlyNew": {
            "title": "Only new (alerts)",
            "type": "boolean",
            "description": "Skip awards this Actor already delivered in earlier runs with the same filters. A new award on the same process is delivered again. Use with a daily schedule.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between downloads (ms)",
            "type": "integer",
            "description": "Pause between file downloads. The portal limits request rates, so the minimum is 1000.",
            "default": 2000
          },
          "maxRetries": {
            "title": "Max retries",
            "type": "integer",
            "description": "Retries per download on network errors, cut-off downloads, 429 and 5xx responses.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}