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.25.0",
      "head": "HEAD",
      "bottle": true
    },
    "urls": {
      "stable": {
        "url": "https://ftp.gnu.org/gnu/wget/wget-1.25.0.tar.gz",
        "tag": null,
        "revision": null,
        "using": null,
        "checksum": "766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784"
      },
      "head": {
        "url": "https://git.savannah.gnu.org/git/wget.git",
        "branch": "master",
        "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:a93dd95c5d63036e026b526e000d33fae7fb44d9a8fda5afc89bff112438c6b3",
            "sha256": "a93dd95c5d63036e026b526e000d33fae7fb44d9a8fda5afc89bff112438c6b3"
          },
          "arm64_sonoma": {
            "cellar": "/opt/homebrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:4d180cd4ead91a34e2c2672189fc366b87ae86e6caa3acbf4845b272f57c859a",
            "sha256": "4d180cd4ead91a34e2c2672189fc366b87ae86e6caa3acbf4845b272f57c859a"
          },
          "arm64_ventura": {
            "cellar": "/opt/homebrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:7fce09705a52a2aff61c4bdd81b9d2a1a110539718ded2ad45562254ef0f5c22",
            "sha256": "7fce09705a52a2aff61c4bdd81b9d2a1a110539718ded2ad45562254ef0f5c22"
          },
          "sonoma": {
            "cellar": "/usr/local/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:5650778a8e7a60c2dea9412dd21d2f5e8ff4f224dbefbdf54924b99012062edc",
            "sha256": "5650778a8e7a60c2dea9412dd21d2f5e8ff4f224dbefbdf54924b99012062edc"
          },
          "ventura": {
            "cellar": "/usr/local/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:78cee523a9b58a7b824b51767935f68c9838e9f673e70d001982858001e766ff",
            "sha256": "78cee523a9b58a7b824b51767935f68c9838e9f673e70d001982858001e766ff"
          },
          "x86_64_linux": {
            "cellar": "/home/linuxbrew/.linuxbrew/Cellar",
            "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:ab5f3c1c60bef4e2a4781e9b29af8afb48ead837136c419edd7febdf44b59058",
            "sha256": "ab5f3c1c60bef4e2a4781e9b29af8afb48ead837136c419edd7febdf44b59058"
          }
        }
      }
    },
    "pour_bottle_only_if": null,
    "keg_only": false,
    "keg_only_reason": null,
    "options": [],
    "build_dependencies": [
      "pkgconf"
    ],
    "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.25.0",
        "used_options": [],
        "built_as_bottle": true,
        "poured_from_bottle": true,
        "time": 1734347914,
        "runtime_dependencies": [
          {
            "full_name": "libunistring",
            "version": "1.3",
            "revision": 0,
            "pkg_version": "1.3",
            "declared_directly": true
          },
          {
            "full_name": "gettext",
            "version": "0.23",
            "revision": 0,
            "pkg_version": "0.23",
            "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-11-26",
            "revision": 0,
            "pkg_version": "2024-11-26",
            "declared_directly": false
          },
          {
            "full_name": "openssl@3",
            "version": "3.4.0",
            "revision": 0,
            "pkg_version": "3.4.0",
            "declared_directly": true
          }
        ],
        "installed_as_dependency": false,
        "installed_on_request": true
      }
    ],
    "linked_keg": "1.25.0",
    "pinned": false,
    "outdated": false,
    "deprecated": false,
    "deprecation_date": null,
    "deprecation_reason": null,
    "deprecation_replacement": null,
    "disabled": false,
    "disable_date": null,
    "disable_reason": null,
    "disable_replacement": null,
    "post_install_defined": false,
    "service": null,
    "tap_git_head": "211fcad555ef83ce8dd0ccf40369000f9f268795",
    "ruby_source_path": "Formula/w/wget.rb",
    "ruby_source_checksum": {
      "sha256": "3dec91401db7bff6591a5065a21859565b8c9588a6baf1b1aa56692775df11ff"
    },
    "head_dependencies": {
      "build_dependencies": [
        "autoconf",
        "automake",
        "xz",
        "pkgconf"
      ],
      "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",
            "pkgconf"
          ],
          "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.25.0",
    "head": "HEAD",
    "bottle": true
  },
  "urls": {
    "stable": {
      "url": "https://ftp.gnu.org/gnu/wget/wget-1.25.0.tar.gz",
      "tag": null,
      "revision": null,
      "using": null,
      "checksum": "766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784"
    },
    "head": {
      "url": "https://git.savannah.gnu.org/git/wget.git",
      "branch": "master",
      "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:a93dd95c5d63036e026b526e000d33fae7fb44d9a8fda5afc89bff112438c6b3",
          "sha256": "a93dd95c5d63036e026b526e000d33fae7fb44d9a8fda5afc89bff112438c6b3"
        },
        "arm64_sonoma": {
          "cellar": "/opt/homebrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:4d180cd4ead91a34e2c2672189fc366b87ae86e6caa3acbf4845b272f57c859a",
          "sha256": "4d180cd4ead91a34e2c2672189fc366b87ae86e6caa3acbf4845b272f57c859a"
        },
        "arm64_ventura": {
          "cellar": "/opt/homebrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:7fce09705a52a2aff61c4bdd81b9d2a1a110539718ded2ad45562254ef0f5c22",
          "sha256": "7fce09705a52a2aff61c4bdd81b9d2a1a110539718ded2ad45562254ef0f5c22"
        },
        "sonoma": {
          "cellar": "/usr/local/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:5650778a8e7a60c2dea9412dd21d2f5e8ff4f224dbefbdf54924b99012062edc",
          "sha256": "5650778a8e7a60c2dea9412dd21d2f5e8ff4f224dbefbdf54924b99012062edc"
        },
        "ventura": {
          "cellar": "/usr/local/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:78cee523a9b58a7b824b51767935f68c9838e9f673e70d001982858001e766ff",
          "sha256": "78cee523a9b58a7b824b51767935f68c9838e9f673e70d001982858001e766ff"
        },
        "x86_64_linux": {
          "cellar": "/home/linuxbrew/.linuxbrew/Cellar",
          "url": "https://ghcr.io/v2/homebrew/core/wget/blobs/sha256:ab5f3c1c60bef4e2a4781e9b29af8afb48ead837136c419edd7febdf44b59058",
          "sha256": "ab5f3c1c60bef4e2a4781e9b29af8afb48ead837136c419edd7febdf44b59058"
        }
      }
    }
  },
  "pour_bottle_only_if": null,
  "keg_only": false,
  "keg_only_reason": null,
  "options": [],
  "build_dependencies": [
    "pkgconf"
  ],
  "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.25.0",
      "used_options": [],
      "built_as_bottle": true,
      "poured_from_bottle": true,
      "time": 1734347914,
      "runtime_dependencies": [
        {
          "full_name": "libunistring",
          "version": "1.3",
          "revision": 0,
          "pkg_version": "1.3",
          "declared_directly": true
        },
        {
          "full_name": "gettext",
          "version": "0.23",
          "revision": 0,
          "pkg_version": "0.23",
          "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-11-26",
          "revision": 0,
          "pkg_version": "2024-11-26",
          "declared_directly": false
        },
        {
          "full_name": "openssl@3",
          "version": "3.4.0",
          "revision": 0,
          "pkg_version": "3.4.0",
          "declared_directly": true
        }
      ],
      "installed_as_dependency": false,
      "installed_on_request": true
    }
  ],
  "linked_keg": "1.25.0",
  "pinned": false,
  "outdated": false,
  "deprecated": false,
  "deprecation_date": null,
  "deprecation_reason": null,
  "deprecation_replacement": null,
  "disabled": false,
  "disable_date": null,
  "disable_reason": null,
  "disable_replacement": null,
  "post_install_defined": false,
  "service": null,
  "tap_git_head": "211fcad555ef83ce8dd0ccf40369000f9f268795",
  "ruby_source_path": "Formula/w/wget.rb",
  "ruby_source_checksum": {
    "sha256": "3dec91401db7bff6591a5065a21859565b8c9588a6baf1b1aa56692775df11ff"
  },
  "head_dependencies": {
    "build_dependencies": [
      "autoconf",
      "automake",
      "xz",
      "pkgconf"
    ],
    "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",
          "pkgconf"
        ],
        "dependencies": [
          "libidn2",
          "openssl@3",
          "util-linux"
        ],
        "test_dependencies": [],
        "recommended_dependencies": [],
        "optional_dependencies": [],
        "uses_from_macos": [
          "zlib"
        ],
        "uses_from_macos_bounds": [
          {
          }
        ]
      }
    }
  },
  "analytics": {
    "install": {
      "30d": {
        "wget": 117341,
        "wget --HEAD": 186
      },
      "90d": {
        "wget": 294451,
        "wget --HEAD": 507
      },
      "365d": {
        "wget": 1093195,
        "wget --HEAD": 1672
      }
    },
    "install_on_request": {
      "30d": {
        "wget": 116967,
        "wget --HEAD": 186
      },
      "90d": {
        "wget": 293782,
        "wget --HEAD": 507
      },
      "365d": {
        "wget": 1090957,
        "wget --HEAD": 1672
      }
    },
    "build_error": {
      "30d": {
        "wget": 109,
        "wget --HEAD": 1
      }
    }
  },
  "generated_date": "2024-12-21"
}

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/178610/Docker.dmg",
  "url_specs": {},
  "version": "4.37.1,178610",
  "installed": null,
  "installed_time": null,
  "bundle_version": null,
  "bundle_short_version": null,
  "outdated": false,
  "sha256": "471f7a5bd67875457a480edc3d5234635a1d3b7c3b158fdaa520c88723e32712",
  "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/hub-tool",
        {
          "target": "/usr/local/bin/hub-tool"
        }
      ]
    },
    {
      "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/kubectl",
        {
          "target": "/usr/local/bin/kubectl.docker"
        }
      ]
    },
    {
      "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,
  "deprecation_replacement": null,
  "disabled": false,
  "disable_date": null,
  "disable_reason": null,
  "disable_replacement": null,
  "tap_git_head": "41bdfdc5aa20edb4a953d0d3ef072e54b272904e",
  "languages": [],
  "ruby_source_path": "Casks/d/docker.rb",
  "ruby_source_checksum": {
    "sha256": "a7fa54477431b4e43b5bac23610ba255bac2d438cbafa6937ff5e69101fd10f5"
  },
  "variations": {
    "sequoia": {
      "url": "https://desktop.docker.com/mac/main/amd64/178610/Docker.dmg",
      "sha256": "3a1b49bfb87eba5c43a14369ea9179e986872236ceef280b478ba7d2fb6c2281",
      "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/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/178610/Docker.dmg",
      "sha256": "3a1b49bfb87eba5c43a14369ea9179e986872236ceef280b478ba7d2fb6c2281",
      "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/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/178610/Docker.dmg",
      "sha256": "3a1b49bfb87eba5c43a14369ea9179e986872236ceef280b478ba7d2fb6c2281",
      "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/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/178610/Docker.dmg",
      "sha256": "3a1b49bfb87eba5c43a14369ea9179e986872236ceef280b478ba7d2fb6c2281",
      "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/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": 21789
      },
      "90d": {
        "docker": 63181
      },
      "365d": {
        "docker": 236069
      }
    }
  },
  "generated_date": "2024-12-21"
}

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": 19586,
  "start_date": "2024-11-21",
  "end_date": "2024-12-21",
  "total_count": 19901387,
  "items": [
    ...
    {
      "number": 33,
      "formula": "wget",
      "count": "117,532",
      "percent": "0.59"
    },
    ...
  ]
}

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": 12161,
  "start_date": "2024-11-21",
  "end_date": "2024-12-21",
  "total_count": 19412292,
  "formulae": {
    ...
    "wget": [
      {
        "formula": "wget",
        "count": "117,341"
      },
      {
        "formula": "wget --HEAD",
        "count": "186"
      },
      ...
    ],
    ...
  }
}

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": 6794,
  "start_date": "2024-11-21",
  "end_date": "2024-12-21",
  "total_count": 1224094,
  "formulae": {
    ...
    "docker": [
      {
        "cask": "docker",
        "count": "21,789"
      }
    ],
    "docker-toolbox": [
      {
        "cask": "docker-toolbox",
        "count": "154"
      }
    ],
    ...
  }
}
Fork me on GitHub