{
  "openapi": "3.0.1",
  "info": {
    "title": "Bangladesh e-GP Tenders & Contract Awards (eprocure.gov.bd)",
    "description": "Live tenders and contract awards (Notifications of Award) from Bangladesh's national e-GP portal (eprocure.gov.bd) as English-keyed JSON: tender ID, title, ministry, procuring entity, method, publication and closing times, winner, contract value in BDT and links to the portal pages.",
    "version": "0.1",
    "x-build-id": "twhKoNGbUvHnKP8JF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/a-g-d~bd-egp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-a-g-d-bd-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~bd-egp/runs": {
      "post": {
        "operationId": "runs-sync-a-g-d-bd-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~bd-egp/run-sync": {
      "post": {
        "operationId": "run-sync-a-g-d-bd-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": "Live tenders (the default): every tender currently open on e-GP. Contract awards: awarded contracts from the Notification of Award list, newest contract signing first. One run returns one record type.",
            "default": "tenders"
          },
          "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. \"Health\" or \"Ministry of Education\". Case-insensitive. Leave empty for all ministries.",
            "default": ""
          },
          "organization": {
            "title": "Organization or procuring entity",
            "type": "string",
            "description": "Only records whose division, organization or procuring entity contains this text, e.g. \"LGED\", \"Bangladesh Railway\" or \"Roads and Highways\". Case-insensitive. (The award list names the division and procuring entity only.)",
            "default": ""
          },
          "procurementNature": {
            "title": "Procurement nature",
            "enum": [
              "goods",
              "works",
              "services",
              "physicalServices"
            ],
            "type": "string",
            "description": "Tenders only: goods, works, services or physical services. Leave empty for all. Ignored for awards (the award list does not show it)."
          },
          "method": {
            "title": "Procurement method",
            "enum": [
              "RFQ",
              "OTM",
              "LTM",
              "TSTM",
              "QCBS",
              "LCS",
              "SFB",
              "DC",
              "SBCQ",
              "SSS",
              "IC",
              "CSO",
              "DPM",
              "OSTETM",
              "RFQU",
              "RFQL"
            ],
            "type": "string",
            "description": "Only records under this procurement method. Leave empty for all methods."
          },
          "district": {
            "title": "District",
            "enum": [
              "Bagerhat",
              "Bandarban",
              "Barguna",
              "Barishal",
              "Bhola",
              "Bogura",
              "Brahmanbaria",
              "Chandpur",
              "Chapai Nawabganj",
              "Chattogram",
              "Chuadanga",
              "Cox's Bazar",
              "Cumilla",
              "Dhaka",
              "Dinajpur",
              "Faridpur",
              "Feni",
              "Gaibandha",
              "Gazipur",
              "Gopalganj",
              "Habiganj",
              "Jamalpur",
              "Jashore",
              "Jhalokathi",
              "Jhenaidah",
              "Joypurhat",
              "Khagrachari",
              "Khulna",
              "Kishoreganj",
              "Kurigram",
              "Kushtia",
              "Laksmipur",
              "Lalmonirhat",
              "Madaripur",
              "Magura",
              "Manikganj",
              "Meherpur",
              "Moulvibazar",
              "Munshiganj",
              "Mymensingh",
              "Naogaon",
              "Narail",
              "Narayanganj",
              "Natore",
              "Netrokona",
              "Nilphamari",
              "Noakhali",
              "Norshingdi",
              "Pabna",
              "Panchagarh",
              "Patuakhali",
              "Perojpur",
              "Rajbari",
              "Rajshahi",
              "Rangamati",
              "Rangpur",
              "Satkhira",
              "Shariatpur",
              "Sherpur",
              "Sirajganj",
              "Sunamganj",
              "Sylhet",
              "Tangail",
              "Thakurgaon"
            ],
            "type": "string",
            "description": "Awards only: the district of the procuring entity, as the portal spells it. Ignored for tenders (the tender list does not show it)."
          },
          "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 Bangladesh time) or an ISO-8601 timestamp. Leave empty for every live tender.",
            "default": ""
          },
          "signedSince": {
            "title": "Contract signed since",
            "type": "string",
            "description": "Awards only: keep contracts signed on or after the Bangladesh calendar day of this point. A relative span like \"7 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": 50000,
            "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 eprocure.gov.bd 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}