{
  "openapi": "3.0.1",
  "info": {
    "title": "Bhutan e-GP Tenders & Contract Awards (egp.gov.bt)",
    "description": "Tenders and contract awards (Notifications of Award) from Bhutan's national e-GP portal (egp.gov.bt) as English-keyed JSON: tender ID, title, ministry, procuring agency, method, publication and closing times, winner, exact contract value in ngultrum and links to the notices.",
    "version": "0.1",
    "x-build-id": "EnDrwnDVOyJAasJ0Q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/a-g-d~bt-egp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-a-g-d-bt-egp",
        "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/a-g-d~bt-egp/runs": {
      "post": {
        "operationId": "runs-sync-a-g-d-bt-egp",
        "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/a-g-d~bt-egp/run-sync": {
      "post": {
        "operationId": "run-sync-a-g-d-bt-egp",
        "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": {
          "recordType": {
            "title": "Record type",
            "enum": [
              "tenders",
              "awards"
            ],
            "type": "string",
            "description": "Tenders (the default): tenders from the All Tenders list, live ones unless \"Tender status\" says otherwise. Contract awards: awarded contracts from the Notification of Award list, newest award first, with the exact contract value. One run returns one record type.",
            "default": "tenders"
          },
          "tenderStatus": {
            "title": "Tender status",
            "enum": [
              "live",
              "archived",
              "cancelled",
              "all"
            ],
            "type": "string",
            "description": "Tenders only: live (open for bids, including amended ones), archived (closed: being processed, re-tendered or awarded), cancelled, or all of them. Ignored for awards.",
            "default": "live"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Tenders: matched against the title, reference number and tender ID. Awards: matched by the portal against the package description (title). Case-insensitive; leave empty for all records.",
            "default": ""
          },
          "ministry": {
            "title": "Ministry",
            "type": "string",
            "description": "Only records whose ministry contains this text, e.g. \"Home Affairs\" or \"Ministry of Health\". Case-insensitive. Autonomous bodies have no ministry: find them with \"Agency\" instead.",
            "default": ""
          },
          "agency": {
            "title": "Agency",
            "type": "string",
            "description": "Only records whose department, agency or procuring agency contains this text, e.g. \"Department of Surface Transport\", \"Thimphu Thromde\", \"Gewog\" or \"Technical Training Institute\". Case-insensitive. (The award list names the department and procuring agency only.)",
            "default": ""
          },
          "procurementNature": {
            "title": "Procurement category",
            "enum": [
              "goods",
              "works",
              "services"
            ],
            "type": "string",
            "description": "Tenders only: goods, works or services. Leave empty for all. Ignored for awards (the award list does not show it)."
          },
          "method": {
            "title": "Procurement method",
            "enum": [
              "LEM",
              "OTM",
              "LTM",
              "QCBS",
              "LCS",
              "SFB",
              "SBCQ",
              "SSS",
              "IC",
              "DCM",
              "FC",
              "e-RA"
            ],
            "type": "string",
            "description": "Only records under this procurement method. Leave empty for all methods. For awards, LEM also matches the rows the award list prints as RFQ, and DCM those it prints as DPM."
          },
          "dzongkhag": {
            "title": "Dzongkhag",
            "enum": [
              "Bumthang",
              "Chukha",
              "Dagana",
              "Gasa",
              "Haa",
              "Lhuntse",
              "Mongar",
              "Paro",
              "Pemagatshel",
              "Punakha",
              "Samdrup Jongkhar",
              "Samtse",
              "Sarpang",
              "Thimphu",
              "Trashigang",
              "Trashiyangtse",
              "Trongsa",
              "Tsirang",
              "Wangdue Phodrang",
              "Zhemgang"
            ],
            "type": "string",
            "description": "Only records of agencies the portal files under this dzongkhag's administration (dzongkhag, gewog and dungkhag offices of the Ministry of Home Affairs). Central agencies, thromdes and autonomous bodies have no dzongkhag."
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Tenders only: keep tenders published after this point. A relative span like \"24 hours\" or \"7 days\", a date like \"2026-09-20\" (midnight Bhutan time) or an ISO-8601 timestamp. Leave empty for no lower bound.",
            "default": ""
          },
          "awardedSince": {
            "title": "Awarded since",
            "type": "string",
            "description": "Awards only: keep contracts whose notification of award is dated on or after the Bhutan calendar day of this point. A relative span like \"30 days\", a date like \"2026-09-01\" or an ISO-8601 timestamp. Leave empty to start from the newest award with no lower bound.",
            "default": ""
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after storing this many tenders or awards (newest first).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The actor talks to egp.gov.bt directly; use Apify Proxy only if runs fail with connection errors.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}