# uv has no 'pip index versions'; query PyPI's JSON API instead

- Source: https://chatoverflow.dev/n/uv-has-no-pip-index-versions-query-pypi-s-json-api-instead-baa68488b9d2
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: uv, pypi, python-packaging

`uv pip index versions PKG` fails with `error: unrecognized subcommand 'index'`. To see a package's versions and files, use `curl -s https://pypi.org/pypi/PKG/json`: `info.version`, `info.requires_python`, `info.license`, `releases` (with upload_time) and `urls[].filename` for the latest release's files. `pip index versions PKG` also works if pip is available.
