{
  "openapi": "3.0.1",
  "info": {
    "title": "Saudi Etimad Tenders API – Government Tenders & Awards Feed",
    "description": "Saudi government tenders from the Etimad procurement portal as JSON: agency, type, activity, region, Gregorian and Hijri deadlines, document fee, status, plus detail pages with award results (bidders, winner, amount). Keyword, agency, activity and region filters; daily only-new feed. $3 per 1,000.",
    "version": "0.1",
    "x-build-id": "obU5ijli6diL7c7p4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_daemon~saudi-etimad-tenders/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_daemon-saudi-etimad-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/data_daemon~saudi-etimad-tenders/runs": {
      "post": {
        "operationId": "runs-sync-data_daemon-saudi-etimad-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/data_daemon~saudi-etimad-tenders/run-sync": {
      "post": {
        "operationId": "run-sync-data_daemon-saudi-etimad-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": {
          "stage": {
            "title": "Stage",
            "enum": [
              "all",
              "open",
              "opening",
              "evaluation",
              "awarding",
              "awarded",
              "ended"
            ],
            "type": "string",
            "description": "Which tenders to list, as the Etimad visitor portal groups them. `all` (default) returns every published tender newest first (291,000 on 9 Nov 2026); `open` the ones still accepting offers (about 1,300); `awarded` the ones whose award results are published (combine with **Published within** 90 days and **Include details** for an awards feed with supplier names and amounts).",
            "default": "all"
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "any",
              "2d",
              "7d",
              "30d",
              "90d"
            ],
            "type": "string",
            "description": "The portal's own publication-date window. On 9 Nov 2026: 182 tenders in the last 2 days, 707 in the last week, 2,800 in the last month, 7,200 in the last 3 months. Use `2d` for a daily feed.",
            "default": "any"
          },
          "fromDate": {
            "title": "Published from",
            "pattern": "^(\\d{4}-\\d{1,2}-\\d{1,2}([T ].*)?|\\d{1,2}[/.]\\d{1,2}[/.]\\d{4})?$",
            "type": "string",
            "description": "Optional exact publication date range start (included), `YYYY-MM-DD`. The listing is read newest first and stops once it reaches older tenders. Combine with **Published within** = any for a backfill."
          },
          "toDate": {
            "title": "Published to",
            "pattern": "^(\\d{4}-\\d{1,2}-\\d{1,2}([T ].*)?|\\d{1,2}[/.]\\d{1,2}[/.]\\d{4})?$",
            "type": "string",
            "description": "Optional publication date range end (included), `YYYY-MM-DD`."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Search terms, Arabic or English, matched by Etimad's own search over tender name, number and agency, e.g. `صيانة`, `تكييف`, `software`, `CCTV`. One listing query per keyword; results are merged and de-duplicated.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "agencies": {
            "title": "Government agencies",
            "type": "array",
            "description": "Agency names (Arabic, as Etimad lists them, e.g. `وزارة الصحة`, `أمانة منطقة الرياض`) or 12-digit Etimad agency codes. A name is matched against the portal's agency list (up to 8 matching agencies are queried); names with more matches filter the rows by agency/branch name instead.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "activities": {
            "title": "Activities",
            "type": "array",
            "description": "Tender activity: main activity id 1-19 or its English/Arabic name (`contracting`, `IT`, `healthcare`, `maintenance`, `security`, `consulting`, `transport`...), or an Etimad sub-activity id such as `601` (electricity, gas, water and HVAC supplies). One query per activity.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tenderTypes": {
            "title": "Tender types",
            "type": "array",
            "description": "`public` (منافسة عامة), `directPurchase` (شراء مباشر), `framework` (اتفاقية إطارية), `largeCompanies`, `reverseAuction`, `twoStage`, `postQualification`, `competition`, `revenueShare`. Empty = all types.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Execution region: `Riyadh`, `Makkah`, `Madinah`, `Qassim`, `Eastern Province`, `Asir`, `Tabuk`, `Hail`, `Northern Borders`, `Jazan`, `Najran`, `Al Bahah`, `Al Jouf` (English, Arabic or id 1-13). Empty = all of Saudi Arabia.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "documentFee": {
            "title": "Document fee range",
            "enum": [
              "any",
              "free",
              "upTo1k",
              "1kTo10k",
              "10kTo20k",
              "20kTo40k",
              "40kTo50k",
              "over50k"
            ],
            "type": "string",
            "description": "Price of the tender documents (booklet), a proxy for contract size. The portal answers this filter slowly (10-30 s per page).",
            "default": "any"
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Also read each tender's public detail page: purpose, contract duration, insurance and guarantee requirements, submission method, contractor classification, execution region and city, activities, expected award and work-start dates, and the published award results (bidders with offer amounts, awarded supplier and award value). Adds one `tender-details` event per tender (4 requests each, about 1-2 s per tender).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum tenders to save, newest first (0 = everything that matches). Each saved tender is one charged event; the default of 50 keeps a first try at about $0.15 ($0.50 with details).",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new or changed",
            "type": "boolean",
            "description": "For scheduled runs: deliver (and charge) a tender only when it is new to this **State name** or when its status, submission deadline, enquiry deadline, opening date or name changed since the last delivery. Each row then carries `changeType` (`new` or `updated`). Memory lasts 400 days.",
            "default": false
          },
          "stateName": {
            "title": "State name",
            "type": "string",
            "description": "Name of the only-new memory. Use a different name for each independent feed.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the Etimad visitor endpoints answer Apify's datacenter IPs directly. Provided in case the portal starts limiting requests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}