{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Pharma Sites Graph - EudraGMDP Manufacturers & Distributors",
    "description": "Every EU/EEA pharma site from EMA EudraGMDP with all its authorisations and certificates (WDA, MIA, GMP, GDP, API) and status signals: active WDA, valid GDP, GMP non-compliance. Company graph by OMS ID.",
    "version": "0.1",
    "x-build-id": "5rch2gvNDUr6LhR6U"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~eu-pharma-sites-graph/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-eu-pharma-sites-graph",
        "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~eu-pharma-sites-graph/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-eu-pharma-sites-graph",
        "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~eu-pharma-sites-graph/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-eu-pharma-sites-graph",
        "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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Choose where the sites are located. <b>All EEA countries</b> is about 24,000 sites (several hours). You can also type any other 2-letter country 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"
            ]
          },
          "siteName": {
            "title": "Company / site name contains",
            "type": "string",
            "description": "Optional, at least 3 characters (e.g. <code>pharma</code>). Pick a suggestion or type any text."
          },
          "fetchDocumentDetails": {
            "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 sites",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many sites. Use a small number for your first test.",
            "default": 500
          },
          "legalAddress": {
            "title": "Address contains",
            "type": "string",
            "description": "At least 3 characters: city, street, postcode... Pick a city or type a street / postcode."
          },
          "omsLocationId": {
            "title": "Site ID (LOC-...)",
            "type": "string",
            "description": "Look up one exact site, e.g. <code>LOC-100068134</code>. Pick an example site or paste any <code>LOC-…</code> ID (found in the <code>omsLocationId</code> column)."
          },
          "skipSitesWithoutDocuments": {
            "title": "Only sites with current licences",
            "type": "boolean",
            "description": "Hide sites that currently list no licence or certificate (about 30% of sites).",
            "default": false
          },
          "crossCheckNonCompliance": {
            "title": "Check failed factory inspections",
            "type": "boolean",
            "description": "Adds <code>signals.hasNonCompliance</code> from current GMP non-compliance statements (the site list does not show them). Adds about 3 minutes per run.",
            "default": true
          },
          "documentTypes": {
            "title": "Details only for",
            "type": "array",
            "description": "When details are on, open only these document types (saves time).",
            "items": {
              "type": "string",
              "enum": [
                "WDA",
                "GDP",
                "MIA",
                "GMP",
                "API-REG"
              ],
              "enumTitles": [
                "Wholesale licences (WDA)",
                "Warehouse certificates (GDP)",
                "Manufacturing licences (MIA)",
                "Factory certificates (GMP)",
                "Active ingredient registrations"
              ]
            },
            "default": [
              "WDA",
              "GDP",
              "MIA",
              "GMP",
              "API-REG"
            ]
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "Resume a long run from this results page (20 sites per page).",
            "default": 1
          },
          "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
            }
          },
          "scope": {
            "title": "Scope (legacy)",
            "type": "string",
            "description": "Deprecated: use Countries (EEA / ALL / THIRD)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}