{
  "openapi": "3.0.1",
  "info": {
    "title": "Ghana GHANEPS Tenders & Awarded Contracts (ghaneps.gov.gh)",
    "description": "Current tenders and awarded contracts from Ghana's national e-procurement system (GHANEPS) as English-keyed JSON: tender ID, title, procuring entity, procedure, status, dates, supplier, award amount and currency, and links to the tender page and notice PDF.",
    "version": "0.1",
    "x-build-id": "aSRE5xtdbafF27oUC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/a-g-d~gh-ghaneps/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-a-g-d-gh-ghaneps",
        "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~gh-ghaneps/runs": {
      "post": {
        "operationId": "runs-sync-a-g-d-gh-ghaneps",
        "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~gh-ghaneps/run-sync": {
      "post": {
        "operationId": "run-sync-a-g-d-gh-ghaneps",
        "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 GHANEPS tender search, newest publication first, by default those open for bids. Awarded contracts: the Awarded Contracts list, newest award first. One run returns one record type.",
            "default": "tenders"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Tenders: the title contains this text (the portal refuses <, >, & and %). Awards: the title, supplier name or lot name contains it. Case-insensitive; leave empty for all records.",
            "default": ""
          },
          "procuringEntity": {
            "title": "Procuring entity",
            "type": "string",
            "description": "Only records whose procuring entity contains this text, e.g. \"Ghana Health Service\", \"District Assembly\" or \"Ministry of Finance\". Case-insensitive; leave empty for all.",
            "default": ""
          },
          "tenderStatus": {
            "title": "Tender status",
            "enum": [
              "open",
              "awaitingOpening",
              "evaluation",
              "awarded",
              "cancelled",
              "established",
              "forArchival",
              "archived",
              "all"
            ],
            "type": "string",
            "description": "Tenders only: open for bids (the default, the portal status Bid Submission), another status, or every tender the portal lists. Ignored for awards.",
            "default": "open"
          },
          "category": {
            "title": "Category",
            "enum": [
              "goods",
              "works",
              "technicalServices",
              "consultingServices",
              "disposals"
            ],
            "type": "string",
            "description": "Tenders only: the procurement type. Leave empty for all. Ignored for awards (the award list does not show it)."
          },
          "procedure": {
            "title": "Procedure",
            "enum": [
              "nct",
              "ict",
              "nrt",
              "irt",
              "ntt",
              "itt",
              "nrtt",
              "irtt",
              "sst",
              "sss",
              "rfq",
              "dpt",
              "dpa",
              "lcs.eoi",
              "lcs.rfp",
              "qcbs.eoi",
              "qcbs.rfp",
              "qbs.eoi",
              "qbs.rfp",
              "sfb.eoi",
              "sfb.rfp",
              "sbcq",
              "ic",
              "em"
            ],
            "type": "string",
            "description": "Tenders only: the procurement procedure. Leave empty for all. Ignored for awards (the award list does not show it)."
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Tenders only: keep tenders published at or after this point. A relative span like \"24 hours\" or \"7 days\", a date like \"2026-09-20\" (midnight Ghana time, which is UTC) or an ISO-8601 timestamp. Leave empty for no lower bound.",
            "default": ""
          },
          "awardedSince": {
            "title": "Awarded since",
            "type": "string",
            "description": "Awards only: keep contracts awarded at or after this point. Same formats as Published since. Leave empty for 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). The portal serves 10 records per page, about 80-100 records a minute; raise the run timeout for large runs.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. The actor talks to ghaneps.gov.gh 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}