{
  "openapi": "3.0.1",
  "info": {
    "title": "Vietnam Government Tenders & Awards (muasamcong)",
    "description": "Vietnam government tenders and contract awards from the national e-procurement system: buyer, budget in VND, closing time, winners and award value. Keyword search without diacritics, date filters and new-only alerts.",
    "version": "0.1",
    "x-build-id": "DBaeDGrQ5AQR09WkN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~vietnam-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-vietnam-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~vietnam-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-dottti-vietnam-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~vietnam-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-vietnam-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": "Record types",
            "type": "array",
            "description": "Tenders are invitations to bid (TBMT) and requests for quotation. Awards are contractor selection results (KQLCNT) with a successful bidder: the winning companies and the winning price.",
            "items": {
              "type": "string",
              "enum": [
                "tenders",
                "awards"
              ],
              "enumTitles": [
                "Tenders (Thông báo mời thầu)",
                "Awards (Kết quả lựa chọn nhà thầu)"
              ]
            },
            "default": [
              "tenders",
              "awards"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words searched in the package name and notice number. Vietnamese accents are optional: \"may tinh\" finds \"máy tính\". Each keyword must appear as a phrase. A notice number such as IB2600585254 also works.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Keyword match mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any: at least one keyword. all: every keyword.",
            "default": "any"
          },
          "fields": {
            "title": "Fields",
            "type": "array",
            "description": "Procurement field (Lĩnh vực). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "HH",
                "XL",
                "TV",
                "PTV",
                "HON_HOP"
              ],
              "enumTitles": [
                "Goods (Hàng hóa)",
                "Construction (Xây lắp)",
                "Consulting (Tư vấn)",
                "Non-consulting services (Phi tư vấn)",
                "Mixed (Hỗn hợp)"
              ]
            }
          },
          "procurementMethods": {
            "title": "Procurement methods",
            "type": "array",
            "description": "Selection method (Hình thức lựa chọn nhà thầu). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "DTRR",
                "DTHC",
                "CHCT",
                "CHCTRG",
                "CGTT",
                "CGTTRG",
                "CDT",
                "CDTRG",
                "MSTT",
                "DPCT"
              ],
              "enumTitles": [
                "Open bidding (Đấu thầu rộng rãi)",
                "Limited bidding (Đấu thầu hạn chế)",
                "Competitive shopping (Chào hàng cạnh tranh)",
                "Competitive shopping, shortened (Chào hàng cạnh tranh rút gọn)",
                "Online quotation (Chào giá trực tuyến)",
                "Online quotation, shortened (Chào giá trực tuyến rút gọn)",
                "Direct contracting (Chỉ định thầu)",
                "Direct contracting, shortened (Chỉ định thầu rút gọn)",
                "Direct procurement (Mua sắm trực tiếp)",
                "Competitive negotiation (Đàm phán cạnh tranh)"
              ]
            }
          },
          "scope": {
            "title": "Domestic or international",
            "enum": [
              "any",
              "international",
              "domestic"
            ],
            "type": "string",
            "description": "International bidding is open to foreign suppliers. Domestic bidding is for Vietnamese bidders.",
            "default": "any"
          },
          "openOnly": {
            "title": "Open tenders only",
            "type": "boolean",
            "description": "Keep tenders whose bid closing time is still in the future. Does not affect awards.",
            "default": true
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Tenders published, or awards announced, in the last N days (Vietnam time, counting from 00:00 N days ago). 0 means no date limit. Keep it small with keywords: keyword searches are read in full.",
            "default": 7
          },
          "provinceContains": {
            "title": "Province contains",
            "type": "string",
            "description": "Keep notices whose delivery location is in a province or city matching this text, accents optional. For example Ha Noi, Hồ Chí Minh or Đà Nẵng."
          },
          "buyerContains": {
            "title": "Buyer contains",
            "type": "string",
            "description": "Keep notices whose investor or buyer name contains this text, accents optional. For example benh vien (hospital) or EVN."
          },
          "minPackagePriceVnd": {
            "title": "Minimum value (VND)",
            "minimum": 0,
            "type": "integer",
            "description": "Tenders: package price at least this many dong. Awards: winning price (or package price when missing) at least this much. Notices without a value are dropped when this is set."
          },
          "onlyNew": {
            "title": "Only records not delivered before",
            "type": "boolean",
            "description": "Remember delivered records and skip them next time. Use it with a schedule for alerts. An amended notice (new version number) counts as new.",
            "default": false
          },
          "stateKey": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory for each alert when you run several schedules with onlyNew.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum records per type",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on delivered tenders, and separately on delivered awards, newest first. You pay per record delivered, so this is also your cost cap.",
            "default": 100
          },
          "maxPages": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The portal returns 10 rows per page. 100 pages read up to 1,000 rows per search.",
            "default": 100
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 1000,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause before each request. Never lower than 1000 ms.",
            "default": 1000
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Retries with backoff when the portal throttles or fails.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Normally not needed. After two connection errors in a row, or an HTTP 403, the Actor switches to this proxy, or to Apify datacenter and then residential proxy when empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}