{
  "openapi": "3.0.1",
  "info": {
    "title": "EudraGMDP Pharma Registry (EMA) - WDA, MIA, GMP, GDP, API",
    "description": "Official EU pharma compliance data from EMA EudraGMDP: wholesale distribution (WDA), manufacturing (MIA), GMP/GDP certificates, non-compliance statements and active substance registrations.",
    "version": "0.1",
    "x-build-id": "KloNcaxMjbVbvqc5t"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~eudragmdp-pharma-registry/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-eudragmdp-pharma-registry",
        "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/rastriq~eudragmdp-pharma-registry/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-eudragmdp-pharma-registry",
        "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/rastriq~eudragmdp-pharma-registry/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-eudragmdp-pharma-registry",
        "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",
        "required": [
          "modules"
        ],
        "properties": {
          "modules": {
            "title": "What do you want to download?",
            "type": "array",
            "description": "Pick one or more datasets:<br>• <b>Wholesale distributors</b>: companies licensed to store and distribute medicines (WDA).<br>• <b>Manufacturers & importers</b>: licensed factories and importers (MIA).<br>• <b>Factory inspection certificates</b>: GMP certificates and failed inspections.<br>• <b>Warehouse inspection certificates</b>: GDP certificates and failed inspections.<br>• <b>Active ingredient suppliers</b>: companies registered to make, import or distribute active substances (beta).",
            "items": {
              "type": "string",
              "enum": [
                "WDA",
                "MIA",
                "GMP",
                "GDP",
                "API_REG"
              ],
              "enumTitles": [
                "Wholesale distributors (WDA licences)",
                "Manufacturers & importers (MIA licences)",
                "Factory inspection certificates (GMP)",
                "Warehouse inspection certificates (GDP)",
                "Active ingredient suppliers (API registrations, beta)"
              ]
            },
            "default": [
              "WDA"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Choose where the sites are located. Pick <b>All EEA countries</b> for the whole EU/EEA in one go, or specific countries. You can also type any other 2-letter country code (e.g. <code>BR</code>).",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "EEA",
                "ALL",
                "THIRD",
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IS",
                "IE",
                "IT",
                "LV",
                "LI",
                "LT",
                "LU",
                "MT",
                "NL",
                "NO",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "GB",
                "US",
                "IN",
                "CN",
                "CH",
                "JP",
                "KR",
                "IL",
                "CA",
                "TR",
                "SG"
              ],
              "enumTitles": [
                "All EEA countries (EU + Norway, Iceland, Liechtenstein)",
                "All countries (GMP/GDP: includes non-EEA sites)",
                "Only non-EEA countries (GMP/GDP only)",
                "Austria",
                "Belgium",
                "Bulgaria",
                "Croatia",
                "Cyprus",
                "Czechia",
                "Denmark",
                "Estonia",
                "Finland",
                "France",
                "Germany",
                "Greece",
                "Hungary",
                "Iceland",
                "Ireland",
                "Italy",
                "Latvia",
                "Liechtenstein",
                "Lithuania",
                "Luxembourg",
                "Malta",
                "Netherlands",
                "Norway",
                "Poland",
                "Portugal",
                "Romania",
                "Slovakia",
                "Slovenia",
                "Spain",
                "Sweden",
                "United Kingdom (legacy, pre-2021)",
                "United States",
                "India",
                "China",
                "Switzerland",
                "Japan",
                "South Korea",
                "Israel",
                "Canada",
                "Turkey",
                "Singapore"
              ]
            },
            "default": [
              "EEA"
            ]
          },
          "fetchDetails": {
            "title": "Include full licence details",
            "type": "boolean",
            "description": "Opens every document to add: issuing authority, inspection dates, authorised activities and <b>special product types</b> (cold chain, vaccines/immunologicals, blood products, narcotics...).<br>About 2-3 seconds per document: great for one country, slow for all of Europe.",
            "default": false
          },
          "maxItems": {
            "title": "Max records",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many records. Use a small number for your first test.",
            "default": 1000
          },
          "holderNameContains": {
            "title": "Company name contains",
            "type": "string",
            "description": "Search by company or site name (e.g. <code>Pfizer</code>). Pick a suggestion or type any text (case-insensitive, partial match)."
          },
          "includeNonCompliance": {
            "title": "Include failed inspections",
            "type": "boolean",
            "description": "Inspection certificates only: also return statements of non-compliance (flag <code>non_compliance</code>).",
            "default": true
          },
          "gdpOperation": {
            "title": "Warehouse certificate type",
            "enum": [
              "ALL",
              "GDPWDA",
              "GDPAPI"
            ],
            "type": "string",
            "description": "Warehouse inspection certificates (GDP) only.",
            "default": "ALL"
          },
          "dateFrom": {
            "title": "Issued from",
            "type": "string",
            "description": "Inspection certificates only: issued on or after this date. Example: <code>2025-01-01</code> to see this year's certificates."
          },
          "dateTo": {
            "title": "Issued until",
            "type": "string",
            "description": "Inspection certificates only: issued on or before this date."
          },
          "mode": {
            "title": "Return only changes",
            "enum": [
              "full",
              "delta"
            ],
            "type": "string",
            "description": "With <b>Yes</b>, each run remembers what it already returned (key-value store <code>eudragmdp-registry-state</code>) and only outputs new or updated documents. Ideal for weekly alerts.",
            "default": "full"
          },
          "updatedSince": {
            "title": "Only updated since",
            "type": "string",
            "description": "Return only documents updated on or after this date. Example: <code>2026-09-01</code>. Leave empty to get everything."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Capped at 2 out of respect for the public EMA website.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the source is public.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}