{
  "openapi": "3.0.1",
  "info": {
    "title": "Dominican Republic Tenders & Awards Radar: DGCP Compras",
    "description": "Dominican Republic public tenders and contract awards from the DGCP open data API as clean JSON: buyer, method, estimated value in DOP, bid deadline, MSME flag, winner, contract value. Filter by keyword, buyer, method and value; daily alerts for new ones.",
    "version": "0.1",
    "x-build-id": "MW8Q9rBGrTdxDShn3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~dominican-republic-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-dominican-republic-tender-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~dominican-republic-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-dottti-dominican-republic-tender-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~dominican-republic-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-dominican-republic-tender-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": {
          "recordTypes": {
            "title": "What to get",
            "enum": [
              "both",
              "tenders",
              "awards"
            ],
            "type": "string",
            "description": "tenders: procurement processes published in the date window (open or already closed). awards: signed contracts with the winner and value. both: tenders and awards.",
            "default": "both"
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Read processes published, and contracts registered, on or after this day (YYYY-MM-DD). Empty = the last 7 days. At most about 13 months back."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words matched against the title, description, buyer and requesting area. Case and accents are ignored. Spanish words work best, for example: computadoras, mantenimiento, medicamentos, construcción.",
            "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 rows whose buying unit name contains one of these, for example Ministerio de Salud, INFOTEP, Ayuntamiento or Hospital.",
            "items": {
              "type": "string"
            }
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "Keep rows whose method contains one of these, for example Licitación Pública, Comparación de Precios, Compras por Debajo del Umbral, Contratación Menor, Subasta Inversa.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Goods, services, works or consulting. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "goods",
                "services",
                "works",
                "consulting"
              ],
              "enumTitles": [
                "Goods (Bienes)",
                "Services (Servicios)",
                "Works (Obras)",
                "Consulting (Consultoría)"
              ]
            }
          },
          "suppliers": {
            "title": "Winning suppliers (awards)",
            "type": "array",
            "description": "Keep awards whose winning company name contains one of these. Use it to follow competitors.",
            "items": {
              "type": "string"
            }
          },
          "minValueDop": {
            "title": "Minimum value",
            "type": "integer",
            "description": "Keep tenders with an estimated value, and awards with a contract value, of at least this amount (in the row's currency, almost always DOP)."
          },
          "openOnly": {
            "title": "Open tenders only",
            "type": "boolean",
            "description": "Keep only tenders still published whose bid deadline has not passed yet. Awards are not affected.",
            "default": false
          },
          "msmeOnly": {
            "title": "MSME-only tenders",
            "type": "boolean",
            "description": "Keep only tenders reserved for micro, small and medium businesses (MIPYMES).",
            "default": false
          },
          "includeCancelled": {
            "title": "Include cancelled contracts",
            "type": "boolean",
            "description": "Also deliver contracts whose award was cancelled or rescinded.",
            "default": false
          },
          "includeProcessDetails": {
            "title": "Add process details to awards",
            "type": "boolean",
            "description": "Look up each award's process to add its title, method, category, estimated value and notice link. One extra request per award.",
            "default": true
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many matching rows (newest first).",
            "default": 20
          },
          "onlyNew": {
            "title": "Only new (alerts)",
            "type": "boolean",
            "description": "Skip tenders and awards this Actor already delivered in earlier runs with the same filters. Use with a daily schedule.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "type": "integer",
            "description": "Pause between API requests. Minimum 200.",
            "default": 300
          },
          "maxRetries": {
            "title": "Max retries",
            "type": "integer",
            "description": "Retries per request on network errors, 429 and 5xx responses.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed normally. Used only if direct requests to the DGCP API keep failing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}