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": 1733142530,
        "runtime_dependencies": [
          {
            "full_name": "libunistring",
            "version": "1.3",
            "revision": 0,
            "pkg_version": "1.3",
            "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-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": "334d11b99803f986f44a328ab9c08bd3bed67461",
    "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": 1733142530,
      "runtime_dependencies": [
        {
          "full_name": "libunistring",
          "version": "1.3",
          "revision": 0,
          "pkg_version": "1.3",
          "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-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": "334d11b99803f986f44a328ab9c08bd3bed67461",
  "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": 132716,
        "wget --HEAD": 217
      },
      "90d": {
        "wget": 279247,
        "wget --HEAD": 464
      },
      "365d": {
        "wget": 1077557,
        "wget --HEAD": 1629
      }
    },
    "install_on_request": {
      "30d": {
        "wget": 132404,
        "wget --HEAD": 217
      },
      "90d": {
        "wget": 278669,
        "wget --HEAD": 464
      },
      "365d": {
        "wget": 1075403,
        "wget --HEAD": 1629
      }
    },
    "build_error": {
      "30d": {
        "wget": 190,
        "wget --HEAD": 7
      }
    }
  },
  "generated_date": "2024-12-12"
}

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/175267/Docker.dmg",
  "url_specs": {},
  "version": "4.36.0,175267",
  "installed": null,
  "installed_time": null,
  "bundle_version": null,
  "bundle_short_version": null,
  "outdated": false,
  "sha256": "7e038aa69ed18bb0c60b38c3a924c81f9941391b1cf9e53643117938a8739ead",
  "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": "b33323d3d0c67e6c6566dad90d075e7403dac9ef",
  "languages": [],
  "ruby_source_path": "Casks/d/docker.rb",
  "ruby_source_checksum": {
    "sha256": "e6ccc9fca45b81ef098a62cabcb450cfa6e349b616ccbce1c9de2dd35cac8a76"
  },
  "variations": {
    "sequoia": {
      "url": "https://desktop.docker.com/mac/main/amd64/175267/Docker.dmg",
      "sha256": "87a17418bd1f2b38be56913b982b9ea14edebbd43f4d4e2364478c378358ba60",
      "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/175267/Docker.dmg",
      "sha256": "87a17418bd1f2b38be56913b982b9ea14edebbd43f4d4e2364478c378358ba60",
      "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/175267/Docker.dmg",
      "sha256": "87a17418bd1f2b38be56913b982b9ea14edebbd43f4d4e2364478c378358ba60",
      "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/175267/Docker.dmg",
      "sha256": "87a17418bd1f2b38be56913b982b9ea14edebbd43f4d4e2364478c378358ba60",
      "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": 22369
      },
      "90d": {
        "docker": 62052
      },
      "365d": {
        "docker": 234776
      }
    }
  },
  "generated_date": "2024-12-12"
}

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": 19836,
  "start_date": "2024-11-12",
  "end_date": "2024-12-12",
  "total_count": 20432760,
  "items": [
    ...
    {
      "number": 27,
      "formula": "wget",
      "count": "132,932",
      "percent": "0.65"
    },
    ...
  ]
}

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": 12406,
  "start_date": "2024-11-12",
  "end_date": "2024-12-12",
  "total_count": 19940436,
  "formulae": {
    ...
    "wget": [
      {
        "formula": "wget",
        "count": "132,716"
      },
      {
        "formula": "wget --HEAD",
        "count": "217"
      },
      ...
    ],
    ...
  }
}

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": 6833,
  "start_date": "2024-11-12",
  "end_date": "2024-12-12",
  "total_count": 1267575,
  "formulae": {
    ...
    "docker": [
      {
        "cask": "docker",
        "count": "22,369"
      }
    ],
    "docker-toolbox": [
      {
        "cask": "docker-toolbox",
        "count": "192"
      }
    ],
    ...
  }
}
Fork me on GitHub