JSON API Documentation

Metadata

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

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

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

Response:

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

Get formula metadata for a Homebrew/core formula

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

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

Variables:

Response:

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

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/160616/Docker.dmg",
  "url_specs": {},
  "version": "4.33.0,160616",
  "installed": null,
  "installed_time": null,
  "bundle_version": null,
  "bundle_short_version": null,
  "outdated": false,
  "sha256": "33070a04c96d8778fd7aaa6f06b4b656b6d9cad243f6db7111b4aa560f6dedc4",
  "artifacts": [
    {
      "uninstall": [
        {
          "launchctl": [
            "com.docker.helper",
            "com.docker.socket",
            "com.docker.vmnetd"
          ],
          "quit": "com.docker.docker",
          "delete": [
            "/Library/PrivilegedHelperTools/com.docker.socket",
            "/Library/PrivilegedHelperTools/com.docker.vmnetd"
          ],
          "rmdir": "~/.docker/bin"
        }
      ]
    },
    {
      "app": [
        "Docker.app"
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker",
        {
          "target": "/usr/local/bin/docker"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
        {
          "target": "/usr/local/bin/docker-credential-desktop"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
        {
          "target": "/usr/local/bin/docker-credential-ecr-login"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
        {
          "target": "/usr/local/bin/docker-credential-osxkeychain"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
        {
          "target": "/usr/local/bin/docker-index"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
        {
          "target": "/usr/local/bin/kubectl.docker"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
        {
          "target": "/usr/local/cli-plugins/docker-compose"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker.bash-completion",
        {
          "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker.zsh-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker.fish-completion",
        {
          "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
        }
      ]
    },
    {
      "binary": [
        "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
        {
          "target": "/usr/local/bin/hub-tool"
        }
      ]
    },
    {
      "binary": [
        "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
        {
          "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
        }
      ]
    },
    {
      "uninstall_postflight": null
    },
    {
      "postflight": null
    },
    {
      "zap": [
        {
          "trash": [
            "/usr/local/bin/docker-compose.backup",
            "/usr/local/bin/docker.backup",
            "~/.docker",
            "~/Library/Application Scripts/com.docker.helper",
            "~/Library/Application Scripts/group.com.docker",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
            "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
            "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
            "~/Library/Application Support/Docker Desktop",
            "~/Library/Caches/com.docker.docker",
            "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
            "~/Library/Caches/KSCrashReports/Docker",
            "~/Library/Containers/com.docker.docker",
            "~/Library/Containers/com.docker.helper",
            "~/Library/Group Containers/group.com.docker",
            "~/Library/HTTPStorages/com.docker.docker",
            "~/Library/HTTPStorages/com.docker.docker.binarycookies",
            "~/Library/Logs/Docker Desktop",
            "~/Library/Preferences/com.docker.docker.plist",
            "~/Library/Preferences/com.electron.docker-frontend.plist",
            "~/Library/Preferences/com.electron.dockerdesktop.plist",
            "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
            "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
          ],
          "rmdir": [
            "~/Library/Caches/com.plausiblelabs.crashreporter.data",
            "~/Library/Caches/KSCrashReports"
          ]
        }
      ]
    }
  ],
  "caveats": null,
  "depends_on": {
    "macos": {
      ">=": [
        "12"
      ]
    }
  },
  "conflicts_with": {
    "formula": [
      "docker",
      "docker-completion",
      "docker-compose",
      "docker-credential-helper-ecr"
    ]
  },
  "container": null,
  "auto_updates": true,
  "deprecated": false,
  "deprecation_date": null,
  "deprecation_reason": null,
  "disabled": false,
  "disable_date": null,
  "disable_reason": null,
  "tap_git_head": "7de61e132dd7777df1c90c7ae457ffe20cbf4778",
  "languages": [],
  "ruby_source_path": "Casks/d/docker.rb",
  "ruby_source_checksum": {
    "sha256": "efae89a89bc8b46a584baf6d64d5afd49597bbdb05dcbb123171545a4ed41586"
  },
  "variations": {
    "sequoia": {
      "url": "https://desktop.docker.com/mac/main/amd64/160616/Docker.dmg",
      "sha256": "2b74ad908f9ad7b6472df72f920fe71a9eb955d5537c027a79b3a22402b9d37d",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    },
    "sonoma": {
      "url": "https://desktop.docker.com/mac/main/amd64/160616/Docker.dmg",
      "sha256": "2b74ad908f9ad7b6472df72f920fe71a9eb955d5537c027a79b3a22402b9d37d",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    },
    "ventura": {
      "url": "https://desktop.docker.com/mac/main/amd64/160616/Docker.dmg",
      "sha256": "2b74ad908f9ad7b6472df72f920fe71a9eb955d5537c027a79b3a22402b9d37d",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    },
    "monterey": {
      "url": "https://desktop.docker.com/mac/main/amd64/160616/Docker.dmg",
      "sha256": "2b74ad908f9ad7b6472df72f920fe71a9eb955d5537c027a79b3a22402b9d37d",
      "artifacts": [
        {
          "uninstall": [
            {
              "launchctl": [
                "com.docker.helper",
                "com.docker.socket",
                "com.docker.vmnetd"
              ],
              "quit": "com.docker.docker",
              "delete": [
                "/Library/PrivilegedHelperTools/com.docker.socket",
                "/Library/PrivilegedHelperTools/com.docker.vmnetd"
              ],
              "rmdir": "~/.docker/bin"
            }
          ]
        },
        {
          "app": [
            "Docker.app"
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker-compose.fish"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker",
            {
              "target": "/usr/local/bin/docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-desktop",
            {
              "target": "/usr/local/bin/docker-credential-desktop"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-ecr-login",
            {
              "target": "/usr/local/bin/docker-credential-ecr-login"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain",
            {
              "target": "/usr/local/bin/docker-credential-osxkeychain"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/docker-index",
            {
              "target": "/usr/local/bin/docker-index"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/hub-tool",
            {
              "target": "/usr/local/bin/hub-tool"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/bin/kubectl",
            {
              "target": "/usr/local/bin/kubectl.docker"
            }
          ]
        },
        {
          "binary": [
            "$APPDIR/Docker.app/Contents/Resources/cli-plugins/docker-compose",
            {
              "target": "/usr/local/cli-plugins/docker-compose"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.zsh-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/zsh/site-functions/_docker"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker.fish-completion",
            {
              "target": "$HOMEBREW_PREFIX/share/fish/vendor_completions.d/docker.fish"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/bin/com.docker.hyperkit",
            {
              "target": "/usr/local/bin/hyperkit"
            }
          ]
        },
        {
          "binary": [
            "Docker.app/Contents/Resources/etc/docker-compose.bash-completion",
            {
              "target": "$HOMEBREW_PREFIX/etc/bash_completion.d/docker-compose"
            }
          ]
        },
        {
          "uninstall_postflight": null
        },
        {
          "postflight": null
        },
        {
          "zap": [
            {
              "trash": [
                "/usr/local/bin/docker-compose.backup",
                "/usr/local/bin/docker.backup",
                "~/.docker",
                "~/Library/Application Scripts/com.docker.helper",
                "~/Library/Application Scripts/group.com.docker",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.docker.helper.sfl*",
                "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.electron.dockerdesktop.sfl*",
                "~/Library/Application Support/com.bugsnag.Bugsnag/com.docker.docker",
                "~/Library/Application Support/Docker Desktop",
                "~/Library/Caches/com.docker.docker",
                "~/Library/Caches/com.plausiblelabs.crashreporter.data/com.docker.docker",
                "~/Library/Caches/KSCrashReports/Docker",
                "~/Library/Containers/com.docker.docker",
                "~/Library/Containers/com.docker.helper",
                "~/Library/Group Containers/group.com.docker",
                "~/Library/HTTPStorages/com.docker.docker",
                "~/Library/HTTPStorages/com.docker.docker.binarycookies",
                "~/Library/Logs/Docker Desktop",
                "~/Library/Preferences/com.docker.docker.plist",
                "~/Library/Preferences/com.electron.docker-frontend.plist",
                "~/Library/Preferences/com.electron.dockerdesktop.plist",
                "~/Library/Saved Application State/com.electron.docker-frontend.savedState",
                "~/Library/Saved Application State/com.electron.dockerdesktop.savedState"
              ],
              "rmdir": [
                "~/Library/Caches/com.plausiblelabs.crashreporter.data",
                "~/Library/Caches/KSCrashReports"
              ]
            }
          ]
        }
      ]
    }
  },
  "analytics": {
    "install": {
      "30d": {
        "docker": 18212
      },
      "90d": {
        "docker": 56522
      },
      "365d": {
        "docker": 230738
      }
    }
  },
  "generated_date": "2024-07-26"
}

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": 20081,
  "start_date": "2024-06-26",
  "end_date": "2024-07-26",
  "total_count": 19995904,
  "items": [
    ...
    {
      "number": 55,
      "formula": "wget",
      "count": "80,029",
      "percent": "0.40"
    },
    ...
  ]
}

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": 12654,
  "start_date": "2024-06-26",
  "end_date": "2024-07-26",
  "total_count": 19534497,
  "formulae": {
    ...
    "wget": [
      {
        "formula": "wget",
        "count": "79,917"
      },
      {
        "formula": "wget --HEAD",
        "count": "114"
      },
      ...
    ],
    ...
  }
}

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": 6505,
  "start_date": "2024-06-26",
  "end_date": "2024-07-26",
  "total_count": 1046708,
  "formulae": {
    ...
    "docker": [
      {
        "cask": "docker",
        "count": "18,212"
      }
    ],
    "docker-toolbox": [
      {
        "cask": "docker-toolbox",
        "count": "80"
      }
    ],
    ...
  }
}
Fork me on GitHub