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": 1732046780,
        "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-09-24",
            "revision": 0,
            "pkg_version": "2024-09-24",
            "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": "ca014edbf9fc974ec48f0d9543ceaeb9ff5c765c",
    "ruby_source_path": "Formula/w/wget.rb",
    "ruby_source_checksum": {
      "sha256": "444ee3790aa0fa4f9c4562d550bcb85470169d093014f9dae499a04aa7da6645"
    },
    "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": 1732046780,
      "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-09-24",
          "revision": 0,
          "pkg_version": "2024-09-24",
          "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": "ca014edbf9fc974ec48f0d9543ceaeb9ff5c765c",
  "ruby_source_path": "Formula/w/wget.rb",
  "ruby_source_checksum": {
    "sha256": "444ee3790aa0fa4f9c4562d550bcb85470169d093014f9dae499a04aa7da6645"
  },
  "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": 100929,
        "wget --HEAD": 208
      },
      "90d": {
        "wget": 241115,
        "wget --HEAD": 396
      },
      "365d": {
        "wget": 1036619,
        "wget --HEAD": 1557
      }
    },
    "install_on_request": {
      "30d": {
        "wget": 100761,
        "wget --HEAD": 208
      },
      "90d": {
        "wget": 240725,
        "wget --HEAD": 396
      },
      "365d": {
        "wget": 1034646,
        "wget --HEAD": 1557
      }
    },
    "build_error": {
      "30d": {
        "wget": 95,
        "wget --HEAD": 7
      }
    }
  },
  "generated_date": "2024-11-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/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": "5a64aa7a66de841a7ebe1c409bac4602eb993b94",
  "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": 21984
      },
      "90d": {
        "docker": 60754
      },
      "365d": {
        "docker": 232941
      }
    }
  },
  "generated_date": "2024-11-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": 20440,
  "start_date": "2024-10-22",
  "end_date": "2024-11-21",
  "total_count": 20899545,
  "items": [
    ...
    {
      "number": 45,
      "formula": "wget",
      "count": "101,139",
      "percent": "0.48"
    },
    ...
  ]
}

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": 13096,
  "start_date": "2024-10-22",
  "end_date": "2024-11-21",
  "total_count": 20415525,
  "formulae": {
    ...
    "wget": [
      {
        "formula": "wget",
        "count": "100,929"
      },
      {
        "formula": "wget --HEAD",
        "count": "208"
      },
      ...
    ],
    ...
  }
}

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": 6397,
  "start_date": "2024-10-22",
  "end_date": "2024-11-21",
  "total_count": 1218425,
  "formulae": {
    ...
    "docker": [
      {
        "cask": "docker",
        "count": "21,984"
      }
    ],
    "docker-toolbox": [
      {
        "cask": "docker-toolbox",
        "count": "180"
      }
    ],
    ...
  }
}
Fork me on GitHub