{
  "openapi": "3.0.1",
  "info": {
    "title": "Tender Supplier Due Diligence",
    "description": "Build one supplier profile from a tender award: company register, VAT check and Impressum, with warning flags. Runs the lookups in one container.",
    "version": "0.1",
    "x-build-id": "kWaAg5tcwIFfunvQN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mikee368~tender-supplier-due-diligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mikee368-tender-supplier-due-diligence",
        "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/mikee368~tender-supplier-due-diligence/runs": {
      "post": {
        "operationId": "runs-sync-mikee368-tender-supplier-due-diligence",
        "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/mikee368~tender-supplier-due-diligence/run-sync": {
      "post": {
        "operationId": "run-sync-mikee368-tender-supplier-due-diligence",
        "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": {
          "datasetId": {
            "title": "Award dataset ID",
            "type": "string",
            "description": "Optional Apify dataset of eu-tender-monitor rows or award notices. Award rows without a winner name are read from the TED XML when the notice id looks like 123456-2026.",
            "default": ""
          },
          "notices": {
            "title": "Award notices",
            "type": "array",
            "description": "Optional notice objects. A winner can sit on winnerName, supplierName, or winners[]. Example: {\"source\":\"TED\",\"noticeId\":\"1-2026\",\"noticeType\":\"can-standard\",\"winnerName\":\"Example SAS\",\"winnerCountry\":\"FR\"}.",
            "default": []
          },
          "suppliers": {
            "title": "Suppliers",
            "type": "array",
            "description": "Optional suppliers to check directly. Each object can include name, country (ISO2 or ISO3), registrationNumber, vatNumber and website.",
            "default": []
          },
          "fetchAwards": {
            "title": "Fetch recent TED awards",
            "type": "boolean",
            "description": "When on, and the supplier list is still short, search TED for recent can-standard notices and read the winner from the notice XML. Off by default so a blank run stays free.",
            "default": false
          },
          "fetchWinnerDetails": {
            "title": "Read TED XML for winners",
            "type": "boolean",
            "description": "When an award notice has a TED publication number but no winner name, download that notice XML and read the contractor.",
            "default": true
          },
          "dateFrom": {
            "title": "TED publication date from",
            "type": "string",
            "description": "YYYY-MM-DD. Used only when Fetch recent TED awards is on. Empty means the last 14 days.",
            "default": ""
          },
          "countries": {
            "title": "Buyer countries",
            "type": "array",
            "description": "ISO countries for the TED award search (alpha-2 or alpha-3). Default FRA, which has a free company register.",
            "default": [
              "FRA"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxSuppliers": {
            "title": "Max supplier profiles",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Stop after this many suppliers. Maximum 25, so a run stays small.",
            "default": 1
          },
          "maxDatasetItems": {
            "title": "Max dataset items to read",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many rows to read from datasetId. Maximum 500.",
            "default": 100
          },
          "includeImpressum": {
            "title": "Look up the website legal notice",
            "type": "boolean",
            "description": "When a website is known, read the Impressum / Mentions légales page. Person names are never stored.",
            "default": true
          },
          "tryCommonPaths": {
            "title": "Try common legal-notice paths",
            "type": "boolean",
            "description": "If the homepage has no legal-notice link, try /impressum, /mentions-legales and the other common paths.",
            "default": true
          },
          "useSitemap": {
            "title": "Look in sitemap.xml",
            "type": "boolean",
            "description": "Off by default. Turn on only when the legal page is missing from the homepage. It adds extra requests.",
            "default": false
          },
          "matchMode": {
            "title": "Name match mode",
            "enum": [
              "strict",
              "balanced",
              "loose"
            ],
            "type": "string",
            "description": "How close a register name must be. strict keeps whole-word matches and better. balanced and loose keep weaker names and raise name_mismatch.",
            "default": "strict"
          },
          "companiesHouseApiKey": {
            "title": "Companies House API key (optional)",
            "type": "string",
            "description": "Free key from developer.company-information.service.gov.uk. Without it the UK register is skipped. GLEIF is still queried."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}