JSON API Documentation

Metadata

List metadata for all Homebrew/core formulae or Homebrew/cask casks

List the brew info --json output for all current Homebrew/homebrew-core formulae or Homebrew/homebrew-cask casks.

curl https://formulae.brew.sh/api/formula.json
curl https://formulae.brew.sh/api/cask.json

Response:

[
  ...
  {
    "name": "wget",
    "full_name": "wget",
    "tap": "homebrew/core",
    "oldnames": [],
    "aliases": [],
    "versioned_formulae": [],
    "desc": "Internet file retriever",
    "license": "GPL-3.0-or-later",
    "homepage": "https://www.gnu.org/software/wget/",
    "versions": {
      "stable": "1.24.5",
      "head": "HEAD",
      "bottle": true
    },
    "urls": {
      "stable": {
        "url": "https://ftp.gnu.org/gnu/wget/wget-1.24.5.tar.gz",
        "tag": null,
        "revision": null,
        "using": null,
        "checksum": "fa2dc35bab5184ecbc46a9ef83def2aaaa3f4c9f3c97d4bd19dcb07d4da637de"
      },
      "head": {
        "url": "https://git.savannah.gnu.org/git/wget.git",
        "branch": null,
        "using": null
      }
    },
    "revision": 0,
    "version_scheme": 0,
    "bottle": {
      "stable": {
        "rebuild": 0,
        "root_url": "https://ghcr.io/v2/homebrew/core",
        "files": {
          "arm64_sequoia": {
            "cellar": "/opt/homebrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:bf42f2ac702296b34e9710851f06d0a94ec0445823239eaad9eb8e1fc19969ba",
            "sha256": "bf42f2ac702296b34e9710851f06d0a94ec0445823239eaad9eb8e1fc19969ba"
          },
          "arm64_sonoma": {
            "cellar": "/opt/homebrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:9befdad158e59763fb0622083974a6252878019702d8c961e1bec3a5f5305339",
            "sha256": "9befdad158e59763fb0622083974a6252878019702d8c961e1bec3a5f5305339"
          },
          "arm64_ventura": {
            "cellar": "/opt/homebrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:ac4c0330b70dae06eaa8065bfbea78dda277699d1ae8002478017a1bd9cf1908",
            "sha256": "ac4c0330b70dae06eaa8065bfbea78dda277699d1ae8002478017a1bd9cf1908"
          },
          "arm64_monterey": {
            "cellar": "/opt/homebrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:02313702fc03880f221d60ce4d0b652c8b44fe68c15609329d757d031bce6bc4",
            "sha256": "02313702fc03880f221d60ce4d0b652c8b44fe68c15609329d757d031bce6bc4"
          },
          "sonoma": {
            "cellar": "/usr/local/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:034528edb247df85f90997aca6a51ddb988a880af6bb571b8473de1702a887af",
            "sha256": "034528edb247df85f90997aca6a51ddb988a880af6bb571b8473de1702a887af"
          },
          "ventura": {
            "cellar": "/usr/local/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:1b7e2f76c90553543a5e25dadf031c6fcfe280f52bf27d89e04006f9d33fd20b",
            "sha256": "1b7e2f76c90553543a5e25dadf031c6fcfe280f52bf27d89e04006f9d33fd20b"
          },
          "monterey": {
            "cellar": "/usr/local/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:ffc49a5064a003006e69f51434ac5f7ec4f4019c161ad32fab22c32697db61cd",
            "sha256": "ffc49a5064a003006e69f51434ac5f7ec4f4019c161ad32fab22c32697db61cd"
          },
          "x86_64_linux": {
            "cellar": "/home/linuxbrew/.linuxbrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:6a4642964fe5c4d1cc8cd3507541736d5b984e34a303a814ef550d4f2f8242f9",
            "sha256": "6a4642964fe5c4d1cc8cd3507541736d5b984e34a303a814ef550d4f2f8242f9"
          }
        }
      }
    },
    "pour_bottle_only_if": null,
    "keg_only": false,
    "keg_only_reason": null,
    "options": [],
    "build_dependencies": [
      "pkg-config"
    ],
    "dependencies": [
      "libidn2",
      "openssl@3",
      "gettext",
      "libunistring"
    ],
    "test_dependencies": [],
    "recommended_dependencies": [],
    "optional_dependencies": [],
    "uses_from_macos": [
      "zlib"
    ],
    "uses_from_macos_bounds": [
      {
      }
    ],
    "requirements": [],
    "conflicts_with": [],
    "conflicts_with_reasons": [],
    "link_overwrite": [],
    "caveats": null,
    "installed": [
      {
        "version": "1.24.5",
        "used_options": [],
        "built_as_bottle": true,
        "poured_from_bottle": true,
        "time": 1727039620,
        "runtime_dependencies": [
          {
            "full_name": "libunistring",
            "version": "1.2",
            "revision": 0,
            "pkg_version": "1.2",
            "declared_directly": true
          },
          {
            "full_name": "gettext",
            "version": "0.22.5",
            "revision": 0,
            "pkg_version": "0.22.5",
            "declared_directly": true
          },
          {
            "full_name": "libidn2",
            "version": "2.3.7",
            "revision": 0,
            "pkg_version": "2.3.7",
            "declared_directly": true
          },
          {
            "full_name": "ca-certificates",
            "version": "2024-07-02",
            "revision": 0,
            "pkg_version": "2024-07-02",
            "declared_directly": false
          },
          {
            "full_name": "openssl@3",
            "version": "3.3.2",
            "revision": 0,
            "pkg_version": "3.3.2",
            "declared_directly": true
          }
        ],
        "installed_as_dependency": false,
        "installed_on_request": true
      }
    ],
    "linked_keg": "1.24.5",
    "pinned": false,
    "outdated": false,
    "deprecated": false,
    "deprecation_date": null,
    "deprecation_reason": null,
    "disabled": false,
    "disable_date": null,
    "disable_reason": null,
    "post_install_defined": false,
    "service": null,
    "tap_git_head": "f311b9349d84464226e9c888111b7c5d32c44b8e",
    "ruby_source_path": "Formula/w/wget.rb",
    "ruby_source_checksum": {
      "sha256": "f3dfeddbda9fde4ab56af61cb127e53fca9fa3889140fb8db239ff432e856683"
    },
    "head_dependencies": {
      "build_dependencies": [
        "autoconf",
        "automake",
        "xz",
        "pkg-config"
      ],
      "dependencies": [
        "libidn2",
        "openssl@3",
        "gettext",
        "libunistring"
      ],
      "test_dependencies": [],
      "recommended_dependencies": [],
      "optional_dependencies": [],
      "uses_from_macos": [
        "zlib"
      ],
      "uses_from_macos_bounds": [
        {
        }
      ]
    },
    "variations": {
      "x86_64_linux": {
        "dependencies": [
          "libidn2",
          "openssl@3",
          "util-linux"
        ],
        "head_dependencies": {
          "build_dependencies": [
            "autoconf",
            "automake",
            "xz",
            "pkg-config"
          ],
          "dependencies": [
            "libidn2",
            "openssl@3",
            "util-linux"
          ],
          "test_dependencies": [],
          "recommended_dependencies": [],
          "optional_dependencies": [],
          "uses_from_macos": [
            "zlib"
          ],
          "uses_from_macos_bounds": [
            {
            }
          ]
        }
      }
    }
  },
  ...
]

Get formula metadata for a Homebrew/core formula

Get the brew info --json --formula <formula> output for a single, current Homebrew/homebrew-core formula with extra keys containing analytics data and generation date.

curl https://formulae.brew.sh/api/formula/${FORMULA}.json

Variables:

Response:

{
  "name": "wget",
  "full_name": "wget",
  "tap": "homebrew/core",
  "oldnames": [],
  "aliases": [],
  "versioned_formulae": [],
  "desc": "Internet file retriever",
  "license": "GPL-3.0-or-later",
  "homepage": "https://www.gnu.org/software/wget/",
  "versions": {
    "stable": "1.24.5",
    "head": "HEAD",
    "bottle": true
  },
  "urls": {
    "stable": {
      "url": "https://ftp.gnu.org/gnu/wget/wget-1.24.5.tar.gz",
      "tag": null,
      "revision": null,
      "using": null,
      "checksum": "fa2dc35bab5184ecbc46a9ef83def2aaaa3f4c9f3c97d4bd19dcb07d4da637de"
    },
    "head": {
      "url": "https://git.savannah.gnu.org/git/wget.git",
      "branch": null,
      "using": null
    }
  },
  "revision": 0,
  "version_scheme": 0,
  "bottle": {
    "stable": {
      "rebuild": 0,
      "root_url": "https://ghcr.io/v2/homebrew/core",
      "files": {
        "arm64_sequoia": {
          "cellar": "/opt/homebrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:bf42f2ac702296b34e9710851f06d0a94ec0445823239eaad9eb8e1fc19969ba",
          "sha256": "bf42f2ac702296b34e9710851f06d0a94ec0445823239eaad9eb8e1fc19969ba"
        },
        "arm64_sonoma": {
          "cellar": "/opt/homebrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:9befdad158e59763fb0622083974a6252878019702d8c961e1bec3a5f5305339",
          "sha256": "9befdad158e59763fb0622083974a6252878019702d8c961e1bec3a5f5305339"
        },
        "arm64_ventura": {
          "cellar": "/opt/homebrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:ac4c0330b70dae06eaa8065bfbea78dda277699d1ae8002478017a1bd9cf1908",
          "sha256": "ac4c0330b70dae06eaa8065bfbea78dda277699d1ae8002478017a1bd9cf1908"
        },
        "arm64_monterey": {
          "cellar": "/opt/homebrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:02313702fc03880f221d60ce4d0b652c8b44fe68c15609329d757d031bce6bc4",
          "sha256": "02313702fc03880f221d60ce4d0b652c8b44fe68c15609329d757d031bce6bc4"
        },
        "sonoma": {
          "cellar": "/usr/local/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:034528edb247df85f90997aca6a51ddb988a880af6bb571b8473de1702a887af",
          "sha256": "034528edb247df85f90997aca6a51ddb988a880af6bb571b8473de1702a887af"
        },
        "ventura": {
          "cellar": "/usr/local/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:1b7e2f76c90553543a5e25dadf031c6fcfe280f52bf27d89e04006f9d33fd20b",
          "sha256": "1b7e2f76c90553543a5e25dadf031c6fcfe280f52bf27d89e04006f9d33fd20b"
        },
        "monterey": {
          "cellar": "/usr/local/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:ffc49a5064a003006e69f51434ac5f7ec4f4019c161ad32fab22c32697db61cd",
          "sha256": "ffc49a5064a003006e69f51434ac5f7ec4f4019c161ad32fab22c32697db61cd"
        },
        "x86_64_linux": {
          "cellar": "/home/linuxbrew/.linuxbrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:6a4642964fe5c4d1cc8cd3507541736d5b984e34a303a814ef550d4f2f8242f9",
          "sha256": "6a4642964fe5c4d1cc8cd3507541736d5b984e34a303a814ef550d4f2f8242f9"
        }
      }
    }
  },
  "pour_bottle_only_if": null,
  "keg_only": false,
  "keg_only_reason": null,
  "options": [],
  "build_dependencies": [
    "pkg-config"
  ],
  "dependencies": [
    "libidn2",
    "openssl@3",
    "gettext",
    "libunistring"
  ],
  "test_dependencies": [],
  "recommended_dependencies": [],
  "optional_dependencies": [],
  "uses_from_macos": [
    "zlib"
  ],
  "uses_from_macos_bounds": [
    {
    }
  ],
  "requirements": [],
  "conflicts_with": [],
  "conflicts_with_reasons": [],
  "link_overwrite": [],
  "caveats": null,
  "installed": [
    {
      "version": "1.24.5",
      "used_options": [],
      "built_as_bottle": true,
      "poured_from_bottle": true,
      "time": 1727039620,
      "runtime_dependencies": [
        {
          "full_name": "libunistring",
          "version": "1.2",
          "revision": 0,
          "pkg_version": "1.2",
          "declared_directly": true
        },
        {
          "full_name": "gettext",
          "version": "0.22.5",
          "revision": 0,
          "pkg_version": "0.22.5",
          "declared_directly": true
        },
        {
          "full_name": "libidn2",
          "version": "2.3.7",
          "revision": 0,
          "pkg_version": "2.3.7",
          "declared_directly": true
        },
        {
          "full_name": "ca-certificates",
          "version": "2024-07-02",
          "revision": 0,
          "pkg_version": "2024-07-02",
          "declared_directly": false
        },
        {
          "full_name": "openssl@3",
          "version": "3.3.2",
          "revision": 0,
          "pkg_version": "3.3.2",
          "declared_directly": true
        }
      ],
      "installed_as_dependency": false,
      "installed_on_request": true
    }
  ],
  "linked_keg": "1.24.5",
  "pinned": false,
  "outdated": false,
  "deprecated": false,
  "deprecation_date": null,
  "deprecation_reason": null,
  "disabled": false,
  "disable_date": null,
  "disable_reason": null,
  "post_install_defined": false,
  "service": null,
  "tap_git_head": "f311b9349d84464226e9c888111b7c5d32c44b8e",
  "ruby_source_path": "Formula/w/wget.rb",
  "ruby_source_checksum": {
    "sha256": "f3dfeddbda9fde4ab56af61cb127e53fca9fa3889140fb8db239ff432e856683"
  },
  "head_dependencies": {
    "build_dependencies": [
      "autoconf",
      "automake",
      "xz",
      "pkg-config"
    ],
    "dependencies": [
      "libidn2",
      "openssl@3",
      "gettext",
      "libunistring"
    ],
    "test_dependencies": [],
    "recommended_dependencies": [],
    "optional_dependencies": [],
    "uses_from_macos": [
      "zlib"
    ],
    "uses_from_macos_bounds": [
      {
      }
    ]
  },
  "variations": {
    "x86_64_linux": {
      "dependencies": [
        "libidn2",
        "openssl@3",
        "util-linux"
      ],
      "head_dependencies": {
        "build_dependencies": [
          "autoconf",
          "automake",
          "xz",
          "pkg-config"
        ],
        "dependencies": [
          "libidn2",
          "openssl@3",
          "util-linux"
        ],
        "test_dependencies": [],
        "recommended_dependencies": [],
        "optional_dependencies": [],
        "uses_from_macos": [
          "zlib"
        ],
        "uses_from_macos_bounds": [
          {
          }
        ]
      }
    }
  },
  "analytics": {
    "install": {
      "30d": {
        "wget": 71496,
        "wget --HEAD": 101
      },
      "90d": {
        "wget": 211934,
        "wget --HEAD": 298
      },
      "365d": {
        "wget": 999607,
        "wget --HEAD": 1454
      }
    },
    "install_on_request": {
      "30d": {
        "wget": 71392,
        "wget --HEAD": 101
      },
      "90d": {
        "wget": 211602,
        "wget --HEAD": 298
      },
      "365d": {
        "wget": 997674,
        "wget --HEAD": 1454
      }
    },
    "build_error": {
      "30d": {
        "wget": 9
      }
    }
  },
  "generated_date": "2024-10-08"
}

Get cask metadata for a Homebrew/cask cask

Get the brew info --json=v2 --cask <cask> JSON output for a single, current Homebrew/homebrew-cask cask with extra keys containing analytics data and generation date.

curl https://formulae.brew.sh/api/cask/${CASK}.json

Variables:

Response:

{
  "token": "docker",
  "full_token": "docker",
  "old_tokens": [],
  "tap": "homebrew/cask",
  "name": [
    "Docker Desktop",
    "Docker Community Edition",
    "Docker CE"
  ],
  "desc": "App to build and share containerised applications and microservices",
  "homepage": "https://www.docker.com/products/docker-desktop",
  "url": "https://desktop.docker.com/mac/main/arm64/167172/Docker.dmg",
  "url_specs": {},
  "version": "4.34.2,167172",
  "installed": null,
  "installed_time": null,
  "bundle_version": null,
  "bundle_short_version": null,
  "outdated": false,
  "sha256": "c315fbc351bdb675e8f86ab83b442cfd273489f1ebbe1327e51c2535e4e9dd06",
  "artifacts": [
    {
      "uninstall": [
        {
          "launchctl": [
            "com.docker.helper",
            "com.docker.socket",
            "com.docker.vmnetd"
          ],
          "quit": "com.docker.docker",
          "delete": [
            "/Library/PrivilegedHelperTools/com.docker.socket",
            "/Library/PrivilegedHelperTools/com.docker.vmnetd"
          ],
          "rmdir": "~/.docker/bin"
        }
      ]
    },
    {
      "app": [
        "Docker.app"
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker",
        {
          "target": "/usr/local/bin/docker"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
        {
          "target": "/usr/local/bin/docker-credential-desktop"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
        {
          "target": "/usr/local/bin/docker-credential-ecr-login"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
        {
          "target": "/usr/local/bin/docker-credential-osxkeychain"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
        {
          "target": "/usr/local/bin/docker-index"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
        {
          "target": "/usr/local/bin/kubectl.docker"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
        {
          "target": "/usr/local/cli-plugins/docker-compose"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker.bash-completion",
        {
          "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker.zsh-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker.fish-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
        {
          "target": "/usr/local/bin/hub-tool"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
        {
          "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
        }
      ]
    },
    {
      "uninstall_postflight": null
    },
    {
      "postflight": null
    },
    {
      "zap": [
        {
          "trash": [
            "/usr/local/bin/docker-compose.backup",
            "/usr/local/bin/docker.backup",
            "~/.docker",
            "~/Library/Application Scripts/com.docker.helper",
            "~/Library/Application Scripts/group.com.docker",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
            "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
            "~/Library/Application Support/Docker Desktop",
            "~/Library/Caches/com.docker.docker",
            "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
            "~/Library/Caches/KSCrashReports/Docker",
            "~/Library/Containers/com.docker.docker",
            "~/Library/Containers/com.docker.helper",
            "~/Library/Group Containers/group.com.docker",
            "~/Library/HTTPStorages/com.docker.docker",
            "~/Library/HTTPStorages/com.docker.docker.binarycookies",
            "~/Library/Logs/Docker Desktop",
            "~/Library/Preferences/com.docker.docker.plist",
            "~/Library/Preferences/com.electron.docker-frontend.plist",
            "~/Library/Preferences/com.electron.dockerdesktop.plist",
            "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
            "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
          ],
          "rmdir": [
            "~/Library/Caches/com.plausiblelabs.crashreporter.data",
            "~/Library/Caches/KSCrashReports"
          ]
        }
      ]
    }
  ],
  "caveats": null,
  "depends_on": {
    "macos": {
      ">=": [
        "12"
      ]
    }
  },
  "conflicts_with": {
    "cask": [
      "rancher"
    ],
    "formula": [
      "docker",
      "docker-completion",
      "docker-compose",
      "docker-credential-helper-ecr"
    ]
  },
  "container": null,
  "auto_updates": true,
  "deprecated": false,
  "deprecation_date": null,
  "deprecation_reason": null,
  "disabled": false,
  "disable_date": null,
  "disable_reason": null,
  "tap_git_head": "3754244da9114bb664e62d82aa41e9e6740fa7a2",
  "languages": [],
  "ruby_source_path": "Casks/d/docker.rb",
  "ruby_source_checksum": {
    "sha256": "f0f6a30b6be461a85c6dbac4523a465117d2897249b1281f2f909525d180e7ed"
  },
  "variations": {
    "sequoia": {
      "url": "https://desktop.docker.com/mac/main/amd64/167172/Docker.dmg",
      "sha256": "5bfd164a82d3626dd0a46847b3e839412029db49b7cdf7629d18742fda83ba3c",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    },
    "sonoma": {
      "url": "https://desktop.docker.com/mac/main/amd64/167172/Docker.dmg",
      "sha256": "5bfd164a82d3626dd0a46847b3e839412029db49b7cdf7629d18742fda83ba3c",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    },
    "ventura": {
      "url": "https://desktop.docker.com/mac/main/amd64/167172/Docker.dmg",
      "sha256": "5bfd164a82d3626dd0a46847b3e839412029db49b7cdf7629d18742fda83ba3c",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    },
    "monterey": {
      "url": "https://desktop.docker.com/mac/main/amd64/167172/Docker.dmg",
      "sha256": "5bfd164a82d3626dd0a46847b3e839412029db49b7cdf7629d18742fda83ba3c",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    }
  },
  "analytics": {
    "install": {
      "30d": {
        "docker": 19796
      },
      "90d": {
        "docker": 56373
      },
      "365d": {
        "docker": 232583
      }
    }
  },
  "generated_date": "2024-10-08"
}

Analytics

List one category of analytics events

List all analytics events for a specified category over a number of days, ordered by event frequency count. This is the data source for brew info --analytics.

curl https://formulae.brew.sh/api/analytics/${CATEGORY}/${DAYS}.json

Variables:

Response:

{
  "category": "formula_install",
  "total_items": 20529,
  "start_date": "2024-09-08",
  "end_date": "2024-10-08",
  "total_count": 21610972,
  "items": [
    ...
    {
      "number": 73,
      "formula": "wget",
      "count": "71,602",
      "percent": "0.33"
    },
    ...
  ]
}

List analytics events for all Homebrew/core formulae

List all the Homebrew/homebrew-core formulae’s analytics events for a specified category over a number of days, grouped by formula name. This is the data source for brew info --analytics --formula <formula>.

curl https://formulae.brew.sh/api/analytics/${CATEGORY}/homebrew-core/${DAYS}.json

Variables:

Response:

{
  "category": "formula_install",
  "total_items": 13066,
  "start_date": "2024-09-08",
  "end_date": "2024-10-08",
  "total_count": 21143723,
  "formulae": {
    ...
    "wget": [
      {
        "formula": "wget",
        "count": "71,496"
      },
      {
        "formula": "wget --HEAD",
        "count": "101"
      },
      ...
    ],
    ...
  }
}

List analytics events for all Homebrew/cask casks

List all the Homebrew/homebrew-cask cask’s analytics events for the cask-install category over a number of days, grouped by cask token. This is the data source for brew info --analytics --cask <cask>.

curl https://formulae.brew.sh/api/analytics/cask-install/homebrew-cask/${DAYS}.json

Variables:

Response:

{
  "category": "cask_install",
  "total_items": 6662,
  "start_date": "2024-09-08",
  "end_date": "2024-10-08",
  "total_count": 1141803,
  "formulae": {
    ...
    "docker": [
      {
        "cask": "docker",
        "count": "19,796"
      }
    ],
    "docker-toolbox": [
      {
        "cask": "docker-toolbox",
        "count": "167"
      }
    ],
    ...
  }
}
Fork me on GitHub