{
  "openapi": "3.0.1",
  "info": {
    "title": "Etimad Saudi Tenders, Awards & Full Archive – اعتماد",
    "description": "Saudi government tenders from Etimad (منافسات اعتماد) as clean rows: Arabic or English keywords in any spelling, several tender types and activities at once, closing-soon lists, award winners, a daily new-only feed, and the full 290,000-tender archive with resume.",
    "version": "0.3",
    "x-build-id": "lXnZhlB3BTBq5rHUe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~etimad-tenders-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-etimad-tenders-scraper",
        "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/automatic~etimad-tenders-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-etimad-tenders-scraper",
        "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/automatic~etimad-tenders-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-etimad-tenders-scraper",
        "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": {
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Text searched in the tender name, number and reference, as on the Etimad search box, e.g. 'صيانة' (maintenance) or 'تقنية'. Most tenders are written in Arabic. 2 to 50 characters.",
            "default": ""
          },
          "keywords": {
            "title": "Keywords (any spelling, Arabic or English)",
            "type": "array",
            "description": "Several search terms at once, e.g. 'صيانة', 'تكييف', 'نظافة', or English words such as 'maintenance', 'cleaning', 'CCTV', 'medical devices'. Each Arabic term also finds its common spellings (أ/إ/ا, ة/ه, ى/ي), and about 90 English procurement words are searched with their Arabic equivalents. Each spelling is one Etimad search, so a run with many keywords takes longer. Each row lists the keywords it matched.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Any: a tender matching at least one keyword. All: only tenders whose title, number or agency name contain every keyword.",
            "default": "any"
          },
          "agency": {
            "title": "Agency",
            "type": "string",
            "description": "Government agency: its 12-digit Etimad agency code, its exact name, or a name fragment matching at most 5 agencies, e.g. 'حرس الحدود' (Border Guard).",
            "default": ""
          },
          "tenderType": {
            "title": "Tender type",
            "enum": [
              "any",
              "publicTender",
              "directPurchase",
              "limitedTender",
              "reverseAuction",
              "twoStageFirst",
              "twoStageSecond",
              "publicTenderOldSystem",
              "directPurchaseOldSystem",
              "frameworkAgreement",
              "designContest",
              "nationalTransformation",
              "revenueSharing",
              "majorCompanies"
            ],
            "type": "string",
            "description": "Procurement method.",
            "default": "any"
          },
          "tenderTypes": {
            "title": "More tender types",
            "type": "array",
            "description": "Pick several procurement methods at once, e.g. public tenders and direct purchases. Combined with Tender type above; each type is one Etimad search. Leave empty for one type or all types.",
            "items": {
              "type": "string",
              "enum": [
                "publicTender",
                "directPurchase",
                "limitedTender",
                "reverseAuction",
                "twoStageFirst",
                "twoStageSecond",
                "publicTenderOldSystem",
                "directPurchaseOldSystem",
                "frameworkAgreement",
                "designContest",
                "nationalTransformation",
                "revenueSharing",
                "majorCompanies"
              ],
              "enumTitles": [
                "Public tender (منافسة عامة)",
                "Direct purchase (شراء مباشر)",
                "Limited tender (منافسة محدودة)",
                "Electronic reverse auction",
                "Two-stage tender, first stage",
                "Two-stage tender, second stage",
                "Public tender (old system)",
                "Direct purchase (old system)",
                "Framework agreement",
                "Design contest (مسابقة)",
                "National Transformation projects",
                "Revenue sharing",
                "Major companies tenders"
              ]
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "any",
              "open",
              "closed",
              "offersOpening",
              "offersExamination",
              "awarding",
              "awarded"
            ],
            "type": "string",
            "description": "Tender stage. 'Open for bids' is the usual choice for alerts.",
            "default": "any"
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Regions where the work is carried out. Use English names (Riyadh, Makkah, Madinah, Qassim, Eastern Province, Asir, Tabuk, Hail, Northern Borders, Jazan, Najran, Al Bahah, Al Jawf), Arabic names or Etimad region ids 1-13.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "activityId": {
            "title": "Activity id",
            "minimum": 1,
            "type": "integer",
            "description": "Etimad main activity id, e.g. 9 for communications and IT, 2 for contracting, 1 for trade. Leave empty for all activities."
          },
          "activityIds": {
            "title": "More activity ids",
            "type": "array",
            "description": "Several Etimad activity ids at once, e.g. 9 (communications and IT) and 2 (contracting). Combined with Activity id above; each activity is one Etimad search. Up to 20 types x activities in total.",
            "items": {
              "type": "string"
            }
          },
          "publishedWithinDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only tenders published in the last N days, counting today in Riyadh time. Handy for daily or weekly alerts. Do not combine with 'Published from'."
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Earliest publication date, YYYY-MM-DD (inclusive).",
            "default": ""
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Latest publication date, YYYY-MM-DD (inclusive).",
            "default": ""
          },
          "bidDeadlineFrom": {
            "title": "Bid deadline from",
            "type": "string",
            "description": "Only tenders whose bid submission deadline falls on or after this date, YYYY-MM-DD.",
            "default": ""
          },
          "bidDeadlineTo": {
            "title": "Bid deadline to",
            "type": "string",
            "description": "Only tenders whose bid submission deadline falls on or before this date, YYYY-MM-DD.",
            "default": ""
          },
          "closingWithinDays": {
            "title": "Closing within N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only tenders whose bid deadline falls in the next N days, counting today in Riyadh time, e.g. 7 for a weekly closing-soon list. Do not combine with the bid deadline dates. Not used by the new or changed feed."
          },
          "referenceNumber": {
            "title": "Reference number",
            "type": "string",
            "description": "One tender's reference number, e.g. '261039009384'.",
            "default": ""
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many tenders, newest first. With 'Include details' on, at most 2,500 tenders per run.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Also read each tender's detail page: purpose, contract duration, guarantees, expected award and work start dates, execution regions and cities, activities, and for awarded tenders the bidders, awarded suppliers and award value. Slower: about four page reads per tender.",
            "default": false
          },
          "includeAwardResults": {
            "title": "Include award results",
            "type": "boolean",
            "description": "Add a public award-results link and an 'award announced' flag to every tender, and for tenders whose award is approved also the bidders with their offers, the winning suppliers and the award value. One extra page read per awarded tender only, much faster than Include details. In the new or changed feed only the link and flag are added.",
            "default": false
          },
          "includeHijriDates": {
            "title": "Add Hijri dates",
            "type": "boolean",
            "description": "Add the Umm al-Qura (Hijri) date next to each date: publication, questions deadline, envelope opening and the detail-page dates. The bid deadline already has its Hijri date.",
            "default": false
          },
          "repairArabicText": {
            "title": "Repair Arabic text",
            "type": "boolean",
            "description": "Some agencies publish titles in Arabic presentation-form glyphs that look normal but break search and matching in your own tools. Turn this on to deliver title, agency, branch, activity and purpose in ordinary Arabic letters; the title as published is kept in 'originalTitle'.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only new or changed tenders",
            "type": "boolean",
            "description": "Deliver a first listing baseline, then only new tenders and listing updates for the same filters. Turn off Include details for this mode.",
            "default": false
          },
          "stateKey": {
            "title": "Feed name",
            "maxLength": 64,
            "type": "string",
            "description": "Optional name for this feed, up to 64 characters. Reuse the name and filters on subsequent runs. Leave it blank to track this search automatically."
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional Etimad pages to read instead of the filters above: a tender search URL copied from tenders.etimad.sa/Tender/AllTendersForVisitor (its filters are kept), or a tender detail URL (DetailsForVisitor?STenderId=...). Date windows, maximum results and details still apply.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "bulkDownload": {
            "title": "Bulk download a bid deadline window",
            "type": "boolean",
            "description": "Download every tender whose bid deadline falls between Bid deadline from and Bid deadline to (empty = the whole Etimad archive, about 290,000 tenders), newest deadline first, several days at a time. Each run saves up to Maximum results and writes OUTPUT.bulk.nextInput: run that input next to continue with no gap and no duplicates. Works with Keyword(s), Agency, Tender type(s), Status, Regions and Activity id(s); not with publication dates, Reference number, Start URLs or the new-or-changed feed.",
            "default": false
          },
          "bulkCursor": {
            "title": "Bulk download continuation (from OUTPUT)",
            "type": "object",
            "description": "Filled in for you in OUTPUT.bulk.nextInput: where the previous bulk run stopped. Leave empty to start a new window."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}