{
  "openapi": "3.0.1",
  "info": {
    "title": "Etimad Tender Radar — Saudi Government Tenders (Arabic-safe)",
    "description": "Search live Saudi government tenders from Etimad with Arabic text repaired, so keyword filters actually match. Clean JSON: agency, activity, deadlines (Gregorian + Hijri), fees in SAR, direct tender URL.",
    "version": "0.1",
    "x-build-id": "yurewvNWZSd2FNHJJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~etimad-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-etimad-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~etimad-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-dottti-etimad-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~etimad-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-etimad-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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to match against tender name, agency, branch and activity. Arabic is matched after normalisation, so أعمال matches tenders published in presentation forms, and alef/hamza, ة/ه and ى/ي spelling variants all match. Leave empty to return everything the other filters allow.",
            "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"
          },
          "agencyContains": {
            "title": "Government agency contains",
            "type": "string",
            "description": "Keep only tenders whose agency or branch name contains this text. Normalised the same way as keywords. Example: أمانة"
          },
          "tenderTypeIds": {
            "title": "Tender types",
            "type": "array",
            "description": "Etimad tender type IDs. Verified against the live feed on 13 September 2026 with the tender counts shown.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "5",
                "6",
                "8"
              ],
              "enumTitles": [
                "1 — منافسة عامة (public competition)",
                "2 — شراء مباشر (direct purchase)",
                "5 — المزايدة العكسية الالكترونية (electronic reverse auction)",
                "6 — المنافسة على مرحلتين (المرحلة الاولى) (two-stage, first stage)",
                "8 — تأهيل لاحق (post-qualification)"
              ]
            }
          },
          "tenderActivityIds": {
            "title": "Business activities",
            "type": "array",
            "description": "Etimad main activity IDs, read from the portal's own نشاط المنافسة lookup. Sub-activity IDs (for example 1919 خدمات الموانئ) are accepted here too. One query is issued per activity.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19"
              ],
              "enumTitles": [
                "1 — التجارة",
                "2 — المقاولات",
                "3 — التشغيل والصيانة والنظافة للمنشآت",
                "4 — العقارات والأراضي",
                "5 — الصناعة والتعدين والتدوير",
                "6 — الغاز والمياه والطاقة",
                "7 — المناجم والبترول والمحاجر",
                "8 — الإعلام والنشر والتوزيع",
                "9 — الاتصالات وتقنية المعلومات",
                "10 — الزراعة والصيد",
                "11 — الرعاية الصحية والنقاهة",
                "12 — التعليم والتدريب",
                "13 — التوظيف والاستقدام",
                "14 — الأمن والسلامة",
                "15 — النقل والبريد والتخزين",
                "16 — المهن الاستشارية",
                "17 — السياحة والمطاعم والفنادق وتنظيم المعارض",
                "18 — المالية والتمويل والتأمين",
                "19 — الخدمات الأخرى"
              ]
            }
          },
          "tenderAreaIds": {
            "title": "Regions",
            "type": "array",
            "description": "Saudi administrative regions, as published by Etimad's own منطقة التنفيذ lookup. One query is issued per region.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9",
                "10",
                "11",
                "12",
                "13"
              ],
              "enumTitles": [
                "1 — منطقة الرياض",
                "2 — منطقة مكة المكرمة",
                "3 — منطقة المدينة المنورة",
                "4 — منطقة القصيم",
                "5 — المنطقة الشرقية",
                "6 — منطقة عسير",
                "7 — منطقة تبوك",
                "8 — منطقة حائل",
                "9 — منطقة الحدود الشمالية",
                "10 — منطقة جازان",
                "11 — منطقة نجران",
                "12 — منطقة الباحة",
                "13 — منطقة الجوف"
              ]
            }
          },
          "publishDateId": {
            "title": "Publish-date window",
            "enum": [
              "",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Etimad's own publish-date filter. Narrower IDs return fewer, newer tenders. Counts observed on 13 September 2026: 2 -> 58, 3 -> 557, 4 -> 2,416, 5 -> 7,423 tenders. Leave empty for no date restriction.",
            "default": ""
          },
          "onlyOpen": {
            "title": "Only tenders still open for offers",
            "type": "boolean",
            "description": "Drop tenders whose offer-submission deadline has already passed.",
            "default": true
          },
          "minRemainingDays": {
            "title": "Minimum days remaining",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only tenders with at least this many days left before the offer deadline. Useful to skip tenders you cannot realistically bid on."
          },
          "maxRemainingDays": {
            "title": "Maximum days remaining",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only tenders closing within this many days. Set to 7 for a weekly closing-soon digest."
          },
          "maxItems": {
            "title": "Maximum tenders to return",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Hard cap on delivered tenders. You are charged per tender delivered, so this is also your cost cap.",
            "default": 200
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Etimad returns HTTP 429 on bursts. Lower this only if you see the run is slower than you need and the logs show no 429s.",
            "default": 700
          },
          "maxRetries": {
            "title": "Retries per page",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff when Etimad answers 429 or 5xx.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}