{
  "openapi": "3.0.1",
  "info": {
    "title": "Jordan Tender Radar — JONEPS Government Tenders (Arabic-safe)",
    "description": "Live Jordanian government tenders from JONEPS with Arabic-safe keyword matching. Clean JSON: buying entity, tender type, publish date, submission deadline, tender document price in JOD, stage and a direct tender link.",
    "version": "0.1",
    "x-build-id": "qOo2eVGUm1aCcvvWH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dottti~joneps-tender-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dottti-joneps-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~joneps-tender-radar/runs": {
      "post": {
        "operationId": "runs-sync-dottti-joneps-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~joneps-tender-radar/run-sync": {
      "post": {
        "operationId": "run-sync-dottti-joneps-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 the tender title, the buying entity, the tender number and the tender type. Arabic is matched after normalisation, so alef and hamza forms (أ إ ا), ة and ه, and ى and ي all match each other. JONEPS titles often mix these, for example اسفلتيه and اسفلتية. English words match case-insensitively. Leave empty to return every tender 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"
          },
          "entityContains": {
            "title": "Buying entity contains",
            "type": "string",
            "description": "Keep only tenders whose buying entity (الجهة المشترية) contains this text. Normalised the same way as keywords. Examples: وزارة الصحة, بلدية, دائرة المشتريات الحكومية."
          },
          "status": {
            "title": "Tender status",
            "enum": [
              "open",
              "all"
            ],
            "type": "string",
            "description": "open: tenders whose submission deadline is today or later (Amman time). all: closed tenders included. Without deadline dates JONEPS applies its own window (deadline from one month ago to two months ahead); set deadlineFrom and deadlineTo to search further back. JONEPS's awarded lists are not offered because they did not load reliably in testing.",
            "default": "open"
          },
          "tenderTypes": {
            "title": "Tender types",
            "type": "array",
            "description": "JONEPS tender types, read from the portal's own نوع العطاء list. Leave empty for all types. One search is made per type.",
            "items": {
              "type": "string",
              "enum": [
                "EP0011",
                "EP0012",
                "EP0014",
                "EP0015",
                "EP0016"
              ],
              "enumTitles": [
                "اللوازم (supplies / goods)",
                "خدمات (services)",
                "خدمات فنية (technical services: design, supervision)",
                "أشغال (works)",
                "أدوية (medicines)"
              ]
            }
          },
          "localOrInternational": {
            "title": "Local or international",
            "enum": [
              "",
              "local",
              "international"
            ],
            "type": "string",
            "description": "Filter on the portal's محلي/دولي field. Leave empty for both.",
            "default": ""
          },
          "publishedFrom": {
            "title": "Published on or after",
            "type": "string",
            "description": "Date in YYYY-MM-DD format. Applied by JONEPS itself (تاريخ النشر). Example for a daily alert: yesterday's date."
          },
          "publishedTo": {
            "title": "Published on or before",
            "type": "string",
            "description": "Date in YYYY-MM-DD format. Applied by JONEPS itself."
          },
          "deadlineFrom": {
            "title": "Submission deadline on or after",
            "type": "string",
            "description": "Date in YYYY-MM-DD format (آخر موعد لتقديم العروض). With status open, dates before today are moved to today."
          },
          "deadlineTo": {
            "title": "Submission deadline on or before",
            "type": "string",
            "description": "Date in YYYY-MM-DD format. Set it 7 days ahead for a closing-soon list."
          },
          "maxItems": {
            "title": "Maximum tenders to return",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on delivered tenders. You pay per tender delivered, so this is also your cost cap.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include tender details",
            "type": "boolean",
            "description": "Read each matching tender's public detail tabs: exact deadline and opening times, tender document price in JOD, bid bond, sub-type, English title, description and entity code. Adds 3 small requests per tender, so a run takes about 4 seconds longer per tender.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 1000,
            "maximum": 15000,
            "type": "integer",
            "description": "Pause before every request to JONEPS. The minimum is 1000 ms; the portal is a government system and slows down under load.",
            "default": 1500
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Retries with exponential backoff when JONEPS times out or answers 429 or 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}