{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tenders Monitor: New TED Notices Since Last Run",
    "description": "EU tenders monitor for TED: save searches (country, CPV code, notice type, buyer, keyword, value) and get only the notices published since your last run, with days to the deadline. First run saves a baseline. Not a full TED archive export. USD 1.00 per 1,000 new notices.",
    "version": "0.1",
    "x-build-id": "z2HeHHVhGGZyYlNnP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bardach_technologies~eu-tenders-new-notices-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bardach_technologies-eu-tenders-new-notices-monitor",
        "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/bardach_technologies~eu-tenders-new-notices-monitor/runs": {
      "post": {
        "operationId": "runs-sync-bardach_technologies-eu-tenders-new-notices-monitor",
        "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/bardach_technologies~eu-tenders-new-notices-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-bardach_technologies-eu-tenders-new-notices-monitor",
        "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": {
          "searches": {
            "title": "Saved searches",
            "maxItems": 20,
            "type": "array",
            "description": "Up to 20 searches per run. Each is an object with: label (your name for it, unique, at most 80 characters); countries (buyer country, three-letter ISO codes as TED uses them: DEU, FRA, ITA); cpvCodes (8-digit CPV codes, check digit optional; a code also matches its sub-codes, as TED does); noticeTypes (TED notice types such as cn-standard, cn-social, pin-only, can-standard); buyerNames and keywords (words or phrases, 1 to 100 characters, no quotes; keywords search the full notice text; several values are OR-ed); minValue and maxValue (whole numbers, compared with the estimated procedure value as published, need valueCurrency such as EUR); expertQuery (a TED expert-search query, at most 2,000 characters, AND-ed with the rest; no SORT BY). Up to 50 values per list. Filters inside one search are AND-ed. Each search has its own saved state.",
            "default": []
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Names this monitoring job. Runs with the same key and the same search filters compare with each other (the label can change). 1 to 64 letters, digits, - or _. Default: default.",
            "default": "default"
          },
          "baselineLookbackDays": {
            "title": "First run: look back (days)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Only used on the first run of a search. 0 (default): the first run records the notices of the last 2 days as seen and reports none. 1 to 30: the first run reports the notices published that many days back (each is a new-notice event). Later runs always report only what is new.",
            "default": 0
          },
          "maxNewPerSearch": {
            "title": "Maximum new notices per search per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "At most this many new notices are reported per search and run, oldest first; the rest stay unseen and are reported by the next run. Default 200, from 1 to 5,000.",
            "default": 200
          },
          "maxNoticesReadPerSearch": {
            "title": "Maximum notices read per search per run",
            "minimum": 250,
            "maximum": 15000,
            "type": "integer",
            "description": "How many new matching notices are read from TED per search and run (250 per request, one request per second); notices the search already has are read again but not counted. A search that matches more is marked readCapped and the next run continues from the last date read, past the notices it already has. Default 5,000, from 250 to 15,000.",
            "default": 5000
          },
          "includeNewVersions": {
            "title": "Also report new versions of notices already seen",
            "type": "boolean",
            "description": "Off by default: a publication number is reported once. On: when TED shows a higher notice-version for a number this search has already seen (only noticed while that notice is inside the 2-day re-read window), it is reported once more with changeKind newVersion and priced like any new notice. Change notices (corrigenda) have their own publication number and are always reported, as changeKind change.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}