{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Tender Match - Scored, Explained, With Buyer History",
    "description": "Give it one company profile and it returns the EU public tenders worth bidding on, each with a 0-100 score, the reason it matched, and what that buyer has awarded before and to whom. Billed per match, not per row.",
    "version": "0.1",
    "x-build-id": "N3YpYHzRMsoe8YOUR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arcuate_owl~eu-opportunity-match/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arcuate_owl-eu-opportunity-match",
        "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/arcuate_owl~eu-opportunity-match/runs": {
      "post": {
        "operationId": "runs-sync-arcuate_owl-eu-opportunity-match",
        "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/arcuate_owl~eu-opportunity-match/run-sync": {
      "post": {
        "operationId": "run-sync-arcuate_owl-eu-opportunity-match",
        "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": {
          "companyName": {
            "title": "Company name",
            "type": "string",
            "description": "Only used to label the output, so you can tell two runs apart. It does not affect matching."
          },
          "cpvCodes": {
            "title": "CPV codes you can deliver",
            "type": "array",
            "description": "Common Procurement Vocabulary codes, the strongest matching signal because it is structured. Codes narrow from left to right: 72000000 is all IT services, 72200000 software and consultancy, 72212000 application software programming. Give the codes that describe what you sell and the scorer credits parents and children of them. Either this or keywords is required. Defaults to 72000000, all IT services, so the Actor returns something useful when run with no settings at all.",
            "default": [
              "72000000"
            ],
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Words that describe the work",
            "type": "array",
            "description": "Matched as whole words in the notice title and description, so \"it\" will not match \"sanitet\". A hit in the title counts double. List synonyms freely; the score saturates rather than punishing a long list. Either this or CPV codes is required.",
            "default": [
              "software",
              "udvikling",
              "development"
            ],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Words that rule a tender out",
            "type": "array",
            "description": "Any notice containing one of these is dropped and never billed, whatever else it matches. Use it for the work you will not take.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries you will work in",
            "type": "array",
            "description": "ISO 3166-1 alpha-3 codes of the buyer's country, for example DNK, SWE, DEU. Leave empty for the whole EU.",
            "items": {
              "type": "string"
            }
          },
          "minValue": {
            "title": "Smallest contract worth bidding on",
            "minimum": 0,
            "type": "integer",
            "description": "In the notice's own currency. A notice below this scores zero on value. Notices that state no value are scored neutrally rather than dropped, because TED often omits it."
          },
          "maxValue": {
            "title": "Largest contract you can handle",
            "minimum": 0,
            "type": "integer",
            "description": "In the notice's own currency. Keeps framework agreements you cannot service out of the results."
          },
          "minDaysToDeadline": {
            "title": "Days you need to prepare a bid",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "A tender closing sooner than this is excluded rather than scored low, and is never billed. Set it to how long a bid actually takes you.",
            "default": 7
          },
          "minScore": {
            "title": "Minimum match score to deliver",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Scores run 0 to 100. Only matches at or above this are delivered and billed, so this setting is how you trade cost against recall. 50 is a reasonable start; raise it if you get noise, lower it if you get too little.",
            "default": 50
          },
          "maxMatches": {
            "title": "Maximum matches per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on delivered matches, which is also a hard cap on what the run can cost you.",
            "default": 25
          },
          "scanLimit": {
            "title": "Maximum notices to read through",
            "minimum": 25,
            "maximum": 20000,
            "type": "integer",
            "description": "How many candidate notices to score before giving up on finding more matches. Raise it for a narrow profile that matches rarely. Reading is not billed; only delivered matches are.",
            "default": 600
          },
          "includeBuyerHistory": {
            "title": "Include the buyer's award history",
            "type": "boolean",
            "description": "For each matched tender, look up what that buyer has awarded over the last few years: how many contracts, the median value, and which suppliers keep winning. One lookup per buyer per run, however many of their tenders match.",
            "default": true
          },
          "historyYears": {
            "title": "Years of award history",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How far back to look for that buyer's past awards.",
            "default": 3
          },
          "noticeTypes": {
            "title": "Notice types to consider",
            "type": "array",
            "description": "TED notice type codes. cn-standard is a contract notice, the thing you can still bid on. Add pin-only for prior information notices to see work coming before it is tendered.",
            "default": [
              "cn-standard"
            ],
            "items": {
              "type": "string"
            }
          },
          "lookbackDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "How far back to look for tenders. Ignored when you set an explicit date.",
            "default": 30
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "Only tenders published on or after this date (YYYY-MM-DD). Overrides the look-back setting."
          },
          "language": {
            "title": "Preferred language",
            "enum": [
              "eng",
              "dan",
              "deu",
              "fra",
              "swe",
              "nld",
              "ita",
              "spa",
              "pol"
            ],
            "type": "string",
            "description": "Which language to read titles and descriptions in, falling back to English and then to whatever the notice carries. Keyword matching runs against the language you pick, so choose the one your keywords are written in.",
            "default": "eng"
          },
          "onlyNew": {
            "title": "Only matches I have not seen before",
            "type": "boolean",
            "description": "Remembers which tenders it has already delivered for this exact profile, so a daily schedule only bills you for genuinely new opportunities.",
            "default": false
          },
          "stateStoreName": {
            "title": "Name of the store holding seen matches",
            "type": "string",
            "description": "Only used with the only-new mode. Change it to keep separate profiles apart. It is a named key-value store on your own account, because the run's default store is wiped between runs.",
            "default": "eu-opportunity-match-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}