{
  "openapi": "3.0.1",
  "info": {
    "title": "Italian Pharmacies & Parapharmacies Directory – Official Data",
    "description": "Official Ministry of Health open data: 20,700+ pharmacies and 7,100+ parapharmacies in Italy with VAT, address, coordinates and chains. Updated daily.",
    "version": "0.1",
    "x-build-id": "PkgKtwCJp6wQDBBWA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reckoning89~italian-pharmacies-directory/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reckoning89-italian-pharmacies-directory",
        "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/reckoning89~italian-pharmacies-directory/runs": {
      "post": {
        "operationId": "runs-sync-reckoning89-italian-pharmacies-directory",
        "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/reckoning89~italian-pharmacies-directory/run-sync": {
      "post": {
        "operationId": "run-sync-reckoning89-italian-pharmacies-directory",
        "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": {
          "entityTypes": {
            "title": "Type / Tipo",
            "type": "array",
            "description": "Pharmacies (incl. branches and dispensaries) and/or parapharmacies (art. 5 D.L. 223/2006). Empty = both.",
            "items": {
              "type": "string",
              "enum": [
                "farmacia",
                "parafarmacia"
              ],
              "enumTitles": [
                "Pharmacies / Farmacie (~20,800 active)",
                "Parapharmacies / Parafarmacie (~7,200 active)"
              ]
            },
            "default": [
              "farmacia",
              "parafarmacia"
            ]
          },
          "regions": {
            "title": "Regions / Regioni",
            "type": "array",
            "description": "Empty = all of Italy. Trentino-Alto Adige is split into P.A. Trento and P.A. Bolzano, as in the Ministry data.",
            "items": {
              "type": "string",
              "enum": [
                "Abruzzo",
                "Basilicata",
                "Calabria",
                "Campania",
                "Emilia-Romagna",
                "Friuli Venezia Giulia",
                "Lazio",
                "Liguria",
                "Lombardia",
                "Marche",
                "Molise",
                "P.A. Bolzano",
                "P.A. Trento",
                "Piemonte",
                "Puglia",
                "Sardegna",
                "Sicilia",
                "Toscana",
                "Umbria",
                "Valle d'Aosta",
                "Veneto"
              ],
              "enumTitles": [
                "Abruzzo",
                "Basilicata",
                "Calabria",
                "Campania",
                "Emilia-Romagna",
                "Friuli Venezia Giulia",
                "Lazio",
                "Liguria",
                "Lombardia",
                "Marche",
                "Molise",
                "P.A. Bolzano",
                "P.A. Trento",
                "Piemonte",
                "Puglia",
                "Sardegna",
                "Sicilia",
                "Toscana",
                "Umbria",
                "Valle d'Aosta",
                "Veneto"
              ]
            }
          },
          "provinces": {
            "title": "Provinces / Province",
            "type": "array",
            "description": "Province name or code, e.g. Milano, MI, Roma, RM, Napoli. Case-insensitive. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "municipalities": {
            "title": "Cities / Comuni",
            "type": "array",
            "description": "Exact municipality name, e.g. Torino, Bari, Reggio di Calabria (case-insensitive, accents ignored).",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes / CAP",
            "type": "array",
            "description": "Five-digit CAP, e.g. 20121, 00184.",
            "items": {
              "type": "string"
            }
          },
          "pharmacyTypes": {
            "title": "Pharmacy type / Tipologia farmacia",
            "type": "array",
            "description": "Pharmacies only (parapharmacies have no type and are skipped when this is set). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "Ordinaria",
                "Succursale",
                "Dispensario",
                "Dispensario stagionale"
              ],
              "enumTitles": [
                "Ordinaria (standard pharmacy)",
                "Succursale (branch)",
                "Dispensario (dispensary)",
                "Dispensario stagionale (seasonal dispensary)"
              ]
            }
          },
          "changedSince": {
            "title": "Opened or changed since / Aperte o variate dal",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "YYYY-MM-DD. Only records whose current entry started on or after this date: new openings, new holders and other registry changes. Useful for scheduled runs."
          },
          "onlyChains": {
            "title": "Only chains / Solo catene",
            "type": "boolean",
            "description": "Only sites whose VAT number is shared by 2 or more active sites (chains, groups, multi-site companies).",
            "default": false
          },
          "onlyWithCoordinates": {
            "title": "Only with coordinates / Solo con coordinate",
            "type": "boolean",
            "description": "Skip records without latitude/longitude (about 9% of pharmacies).",
            "default": false
          },
          "includeCeased": {
            "title": "Include ceased / Includi cessate",
            "type": "boolean",
            "description": "Also return sites that are closed today (status = ceased, with validTo). Default: only active sites.",
            "default": false
          },
          "enrichFvg": {
            "title": "Friuli Venezia Giulia phone & hours / Telefono e orari FVG",
            "type": "boolean",
            "description": "Adds phone and published opening slots (incl. on-duty 'turno') from the Friuli Venezia Giulia open data, the only region that publishes them openly (~400 pharmacies).",
            "default": true
          },
          "excludeLikelyIndividuals": {
            "title": "Exclude likely individuals / Escludi probabili persone fisiche",
            "type": "boolean",
            "description": "Skip records with holderType = individual_likely (sole-proprietor pharmacies and names containing a person). Off by default.",
            "default": false
          },
          "maskPersonalNames": {
            "title": "Mask personal names / Maschera i nomi di persona",
            "type": "boolean",
            "description": "Replaces names that contain a person with 'Farmacia – <Comune>' / 'Parafarmacia – <Comune>' and removes the VAT number of likely individuals. Off by default.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit (about 28,000 active records for all of Italy).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}