{
  "openapi": "3.0.1",
  "info": {
    "title": "EU EUDAMED Medical Device, UDI-DI & Certificate Intelligence",
    "description": "Verify EU EUDAMED medical devices & IVDs, Primary/Basic UDI-DIs, Notified Body MDR/IVDR certificates, recalls/FSCAs, Economic Operator SRNs & VAT, and conformity risk.",
    "version": "0.1",
    "x-build-id": "hWpqYyLfreVDle21l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/francescopacifico1905~eudamed-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-francescopacifico1905-eudamed-intelligence",
        "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/francescopacifico1905~eudamed-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-francescopacifico1905-eudamed-intelligence",
        "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/francescopacifico1905~eudamed-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-francescopacifico1905-eudamed-intelligence",
        "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": {
          "mode": {
            "title": "Lookup mode",
            "enum": [
              "devices",
              "certificates",
              "operators"
            ],
            "type": "string",
            "description": "Select whether to extract medical device UDI-DI dossiers, Notified Body certificates, or Economic Operator (SRN) profiles.",
            "default": "devices"
          },
          "udiDis": {
            "title": "Primary or Basic UDI-DIs (devices mode)",
            "type": "array",
            "description": "Optional list of exact Primary UDI-DIs or Basic UDI-DIs for batch SKU conformity checks (e.g. ++EINN111TS3, 36976364390185). Invalid or not-found identifiers emit free diagnostic rows.",
            "items": {
              "type": "string"
            }
          },
          "certificateNumbers": {
            "title": "Certificate numbers (certificates mode)",
            "type": "array",
            "description": "Optional list of exact Notified Body certificate numbers to verify when mode = 'certificates' (e.g. IZ 1037386-2).",
            "items": {
              "type": "string"
            }
          },
          "srns": {
            "title": "Single Registration Numbers — SRNs (batch)",
            "type": "array",
            "description": "Optional batch list of EUDAMED SRNs (e.g. DE-MF-000006515, DE-AR-000000087) to look up operators in operators mode or list devices/certificates per actor.",
            "items": {
              "type": "string"
            }
          },
          "basicUdi": {
            "title": "Basic UDI-DI filter",
            "type": "string",
            "description": "Filter devices by Basic UDI-DI family code (minimum 3 characters)."
          },
          "tradeName": {
            "title": "Trade / commercial name",
            "type": "string",
            "description": "Filter devices by commercial trade name (minimum 3 characters, e.g. Pacemaker, Scaffold)."
          },
          "deviceModel": {
            "title": "Device model",
            "type": "string",
            "description": "Filter devices by model name (minimum 3 characters)."
          },
          "catalogReference": {
            "title": "Catalog / reference number",
            "type": "string",
            "description": "Filter devices by manufacturer reference / catalog number (minimum 3 characters)."
          },
          "srn": {
            "title": "Manufacturer / Actor SRN",
            "type": "string",
            "description": "Filter devices or certificates by a single manufacturer or authorised representative SRN (e.g. DE-MF-000006515)."
          },
          "operatorName": {
            "title": "Operator / manufacturer name",
            "type": "string",
            "description": "Filter devices, certificates, or operators by company name (minimum 2 characters, e.g. Medtronic)."
          },
          "emdnCode": {
            "title": "EMDN / CND nomenclature code",
            "type": "string",
            "description": "Filter devices by European Medical Device Nomenclature (EMDN) code or prefix (e.g. P09)."
          },
          "legislation": {
            "title": "Applicable legislation",
            "enum": [
              "ALL",
              "MDR",
              "IVDR",
              "MDD",
              "IVDD",
              "AIMDD"
            ],
            "type": "string",
            "description": "Filter devices by EU Medical Device / IVD legislation.",
            "default": "ALL"
          },
          "riskClass": {
            "title": "Risk class",
            "enum": [
              "ALL",
              "I",
              "IIa",
              "IIb",
              "III",
              "A",
              "B",
              "C",
              "D"
            ],
            "type": "string",
            "description": "Filter by MDR/MDD risk class (I, IIa, IIb, III) or IVDR risk class (A, B, C, D).",
            "default": "ALL"
          },
          "marketStatus": {
            "title": "EU market status",
            "enum": [
              "ALL",
              "ON_THE_MARKET",
              "NO_LONGER_ON_THE_MARKET",
              "NOT_INTENDED_FOR_EU"
            ],
            "type": "string",
            "description": "Filter devices by EU market placement status.",
            "default": "ALL"
          },
          "recalledOrFscaOnly": {
            "title": "Only recalled or FSCA devices",
            "type": "boolean",
            "description": "Restrict devices search strictly to devices flagged with active Recalls or Field Safety Corrective Actions (FSCAs).",
            "default": false
          },
          "notifiedBodyCode": {
            "title": "Notified Body code (4 digits)",
            "type": "string",
            "description": "Filter certificates by 4-digit Notified Body identifier (e.g. 0123 for TUV SUD, 0197 for TUV Rheinland)."
          },
          "certificateStatus": {
            "title": "Certificate status",
            "enum": [
              "ALL",
              "ISSUED",
              "AMENDED",
              "REISSUED",
              "REINSTATED",
              "SUSPENDED",
              "WITHDRAWN",
              "CANCELLED",
              "EXPIRED"
            ],
            "type": "string",
            "description": "Filter certificates by current Notified Body status.",
            "default": "ALL"
          },
          "expiringWithinDays": {
            "title": "Expiring within N days (certificates mode)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Return only certificates already expired or expiring within N days from today (e.g. 180)."
          },
          "operatorCountryIso2": {
            "title": "Operator country (ISO-2)",
            "type": "string",
            "description": "Filter operators by 2-letter ISO country code in operators mode (e.g. DE, IT, US, CN)."
          },
          "operatorRole": {
            "title": "Operator role",
            "enum": [
              "ALL",
              "MANUFACTURER",
              "AUTHORISED_REPRESENTATIVE",
              "IMPORTER",
              "SYSTEM_PROCEDURE_PACK_PRODUCER"
            ],
            "type": "string",
            "description": "Filter operators by EUDAMED Economic Operator role.",
            "default": "ALL"
          },
          "includeDeviceDetails": {
            "title": "Enrich full device / certificate / operator details",
            "type": "boolean",
            "description": "Fetch full UDI-DI + Basic UDI-DI clinical/safety flags and 27 EU member state availability (or full certificate scopes / operator EORI). Disable for single-request fast catalog scans.",
            "default": true
          },
          "includeCertificates": {
            "title": "Attach Notified Body certificates",
            "type": "boolean",
            "description": "Link Notified Body certificates, issue/expiry countdowns, and validity status for each device or operator.",
            "default": true
          },
          "includeOperatorProfile": {
            "title": "Enrich manufacturer / AR corporate profile (VAT, contacts)",
            "type": "boolean",
            "description": "Enrich registered European VAT number, website, email, telephone, and street address via DG SANTE Data Platform (excludes natural-person PII).",
            "default": true
          },
          "maxItems": {
            "title": "Max billed records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of valid EUDAMED records to emit (default 25 is tuned for fast synchronous MCP calls).",
            "default": 25
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy configuration. Enabled by default on Apify Cloud with sticky-session rotation for ec.europa.eu to avoid per-IP burst limits (falls back automatically to 4.5s-paced direct requests locally without proxy credentials). Recommend setting apifyProxyGroups to [\"RESIDENTIAL\"] for high-volume (100+ record) runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}