{
  "openapi": "3.0.1",
  "info": {
    "title": "UAE Government Tenders: Dubai, Abu Dhabi, Federal & DEWA",
    "description": "Open UAE government tenders from Dubai eSupply, Abu Dhabi ADGPG, the federal Ministry of Finance list and DEWA in one JSON schema. Buyer, title, category, publish and closing dates, fee in AED, link. Arabic and English keywords, alerts for new tenders.",
    "version": "0.1",
    "x-build-id": "eQ8Oam0R740P1Ua80"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~uae-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-uae-tenders",
        "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~uae-tenders/runs": {
      "post": {
        "operationId": "runs-sync-dottti-uae-tenders",
        "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~uae-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-uae-tenders",
        "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": {
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Portals to read. They run one after another. If one portal fails, the run adds a free status row and continues with the others.",
            "items": {
              "type": "string",
              "enum": [
                "MOF",
                "ADGPG",
                "ESUPPLY",
                "DEWA"
              ],
              "enumTitles": [
                "Federal: Ministry of Finance current opportunities",
                "Abu Dhabi: Government Procurement Gate (ADGPG)",
                "Dubai: eSupply (Dubai Municipality, RTA, DHA and other Dubai entities)",
                "Dubai: DEWA open tenders"
              ]
            },
            "default": [
              "MOF",
              "ADGPG",
              "ESUPPLY",
              "DEWA"
            ]
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to find in the title, buyer, category, tender number or description. Arabic and English both work. Arabic spelling variants match each other: أ/إ/آ/ا, ة/ه, ى/ي, diacritics and tatweel. Leave empty for all tenders.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Keyword match mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any: keep a tender when at least one keyword matches. all: keep it only when every keyword matches.",
            "default": "any"
          },
          "entityContains": {
            "title": "Buyer name contains",
            "type": "string",
            "description": "Keep only tenders whose government buyer contains this text. Example: Dubai Municipality or Ministry of Education."
          },
          "categoryContains": {
            "title": "Category contains",
            "type": "string",
            "description": "Keep only tenders whose category contains this text. Abu Dhabi and Dubai eSupply publish categories. Federal and DEWA tenders have no category, so this filter removes them."
          },
          "closingAfter": {
            "title": "Closing on or after",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Keep only tenders whose deadline is on or after this date (UAE time). Format YYYY-MM-DD, for example 2026-12-01. Useful to skip tenders you cannot prepare for in time."
          },
          "publishedWithinDays": {
            "title": "Published within the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only tenders published in the last N days. Abu Dhabi shows its publish date only with detail pages on. Leave empty for no limit."
          },
          "onlyOpen": {
            "title": "Only tenders still open",
            "type": "boolean",
            "description": "Drop tenders whose deadline has passed.",
            "default": true
          },
          "includeDetails": {
            "title": "Open Abu Dhabi detail pages",
            "type": "boolean",
            "description": "Adds the category, estimated value, publish date and attachments for Abu Dhabi tenders. One extra request per Abu Dhabi tender that passes your filters.",
            "default": true
          },
          "maxItemsPerSource": {
            "title": "Maximum tenders per source",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on tenders delivered from each portal.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum tenders in total",
            "minimum": 1,
            "maximum": 40000,
            "type": "integer",
            "description": "Cap on tenders across all portals. You pay per tender delivered, so this is your cost cap.",
            "default": 200
          },
          "onlyNew": {
            "title": "Only tenders not delivered before",
            "type": "boolean",
            "description": "Remember delivered tenders and skip them next time. Use it with a daily schedule for alerts.",
            "default": false
          },
          "stateKey": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory for each alert when you run several schedules with only-new on.",
            "default": "default"
          },
          "maxPagesPerSource": {
            "title": "Maximum list pages per source",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Stops reading a portal after this many list pages. Page sizes: federal about 10, Abu Dhabi 100, Dubai eSupply 100, DEWA one page with all tenders.",
            "default": 20
          },
          "requestDelayMs": {
            "title": "Delay between requests to one portal (ms)",
            "minimum": 1000,
            "maximum": 15000,
            "type": "integer",
            "description": "Minimum gap between two requests to the same portal. Never below 1000 ms.",
            "default": 1000
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with backoff on timeouts, HTTP 429 and 5xx.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}