{
  "openapi": "3.0.1",
  "info": {
    "title": "Vietnam Tender Intelligence",
    "description": "Get Vietnam public procurement data from muasamcong (VNEPS) as JSON: procurement plans (KHLCNT), open tender notices and contract awards with winner, tax ID and price. Search by keyword or by province and date. Pay per use from $0.20 per keyword. For suppliers, analysts and AI agents.",
    "version": "0.2",
    "x-build-id": "IyeFLzf5oGwqhONm1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/donerightlabs~tender-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-donerightlabs-tender-intelligence",
        "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/donerightlabs~tender-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-donerightlabs-tender-intelligence",
        "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/donerightlabs~tender-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-donerightlabs-tender-intelligence",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords / Từ khoá",
            "maxItems": 20,
            "type": "array",
            "description": "Vietnamese keywords matched against package or plan names on VNEPS (muasamcong), e.g. \"thiết bị y tế\", \"camera giám sát\". Use short Vietnamese phrases with diacritics: names on the portal are in Vietnamese, so translate English topics first. Each keyword is one paid search ($0.15). Max 20 per run; 1-3 keeps the run fast. Ignored when recordType is \"awards_by_date\". / Từ khoá tiếng Việt có dấu, khớp với tên gói thầu hoặc kế hoạch.",
            "default": [
              "thiết bị"
            ],
            "items": {
              "type": "string"
            }
          },
          "recordType": {
            "title": "Data type / Loại dữ liệu",
            "enum": [
              "notices",
              "plans",
              "awards",
              "awards_by_date"
            ],
            "type": "string",
            "description": "Which stage of the tender lifecycle to return. \"notices\" (default): tender notices (TBMT) matching the keywords; use for \"open tenders / can I bid\". \"plans\": procurement plans (KHLCNT), published before the tender notice; use for \"upcoming / planned purchases\". \"awards\": award results matching the keywords, nationwide, newest first: winning contractor, tax ID, price; use for \"who won / at what price\". \"awards_by_date\": every award result in one province within a date range, no keyword; requires \"province\". Award modes add $0.03 per package read in full. / Thông báo mời thầu, Kế hoạch lựa chọn nhà thầu, Kết quả trúng thầu theo từ khoá, hoặc theo tỉnh + khoảng ngày.",
            "default": "notices"
          },
          "maxResultsPerKeyword": {
            "title": "Max results per keyword / Số kết quả tối đa mỗi từ khoá",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum records per keyword (1-50). In \"awards_by_date\" it is the maximum for the whole run. The keyword fee is the same for 3 or 50 results, so a higher value lowers the cost per result; in award modes each package with a result adds $0.03. If you get a record with trang_thai \"co_the_con_du_lieu\", narrow the keyword. / Giới hạn số kết quả mỗi từ khoá (hoặc cả lượt chạy theo ngày).",
            "default": 3
          },
          "onlyOpenTenders": {
            "title": "Only open tenders / Chỉ lấy gói còn mở",
            "type": "boolean",
            "description": "Only for recordType \"notices\". true: only tenders whose closing date is today or later. false: also closed tenders (history, trend analysis). Ignored by other modes. / Chỉ áp dụng cho Thông báo mời thầu.",
            "default": true
          },
          "province": {
            "title": "Province / Tỉnh, thành phố",
            "enum": [
              "Thành phố Hà Nội",
              "Thành phố Hải Phòng",
              "Thành phố Hồ Chí Minh",
              "Thành phố Đà Nẵng",
              "Thành phố Huế",
              "Thành phố Cần Thơ",
              "Thành phố Bắc Ninh",
              "Thành phố Quảng Ninh",
              "Thành phố Đồng Nai",
              "Tỉnh An Giang",
              "Tỉnh Cao Bằng",
              "Tỉnh Cà Mau",
              "Tỉnh Gia Lai",
              "Tỉnh Hà Tĩnh",
              "Tỉnh Hưng Yên",
              "Tỉnh Khánh Hòa",
              "Tỉnh Lai Châu",
              "Tỉnh Lào Cai",
              "Tỉnh Lâm Đồng",
              "Tỉnh Lạng Sơn",
              "Tỉnh Nghệ An",
              "Tỉnh Ninh Bình",
              "Tỉnh Phú Thọ",
              "Tỉnh Quảng Ngãi",
              "Tỉnh Quảng Trị",
              "Tỉnh Sơn La",
              "Tỉnh Thanh Hóa",
              "Tỉnh Thái Nguyên",
              "Tỉnh Tuyên Quang",
              "Tỉnh Tây Ninh",
              "Tỉnh Vĩnh Long",
              "Tỉnh Điện Biên",
              "Tỉnh Đắk Lắk",
              "Tỉnh Đồng Tháp"
            ],
            "type": "string",
            "description": "Required when recordType is \"awards_by_date\"; ignored otherwise. One of Vietnam's 34 provinces/cities (administrative map after the 2025 merger), spelled exactly as listed, e.g. \"Thành phố Hà Nội\", \"Thành phố Hồ Chí Minh\", \"Tỉnh Gia Lai\". / Bắt buộc khi dùng Kết quả trúng thầu theo tỉnh và ngày."
          },
          "dateFrom": {
            "title": "Date from / Từ ngày (awards_by_date)",
            "type": "string",
            "description": "Only for \"awards_by_date\". Start of the publication date range, format dd/mm/yyyy, e.g. 12/10/2026. Empty: yesterday. / Định dạng dd/mm/yyyy; để trống = hôm qua."
          },
          "dateTo": {
            "title": "Date to / Đến ngày (awards_by_date)",
            "type": "string",
            "description": "Only for \"awards_by_date\". End of the publication date range, format dd/mm/yyyy, e.g. 19/10/2026. Empty: today. / Định dạng dd/mm/yyyy; để trống = hôm nay."
          },
          "selfTestKey": {
            "title": "Owner health-check key (leave empty)",
            "type": "string",
            "description": "Internal key used only by the Actor owner for scheduled health checks. Users and AI agents: always leave empty. / Để trống."
          },
          "proxyConfiguration": {
            "title": "Proxy / Cấu hình proxy",
            "type": "object",
            "description": "Keep the default: Apify Residential proxy, country Vietnam. Other settings can make the run fail. If omitted or incomplete in an API/agent call, the Actor fills in Residential + Vietnam. / Nên giữ mặc định.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "VN"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}