Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPI API: /pypi/{package}/json endpoints no longer accessible, changed to /project/{package} #17468

Closed
davidlacho opened this issue Jan 21, 2025 · 1 comment
Labels
bug 🐛 requires triaging maintainers need to do initial inspection of issue

Comments

@davidlacho
Copy link

davidlacho commented Jan 21, 2025

Describe the bug
Package information pages previously accessible via the /pypi/{package}/json endpoint are no longer available at that URL structure. The API endpoint appears to have changed to use /project/{package} instead. This is causing pyupio's package fetcher to fail when attempting to retrieve package metadata.

Expected behavior
Package metadata should be accessible via consistent, documented API endpoints. If URL structures change, proper deprecation notices should be provided to allow dependent tools to update their implementations.

To Reproduce
Example of a failing URL:

ttps://pypi.org/pypi/defichain-utils/json resulting in 503

My Platform
This is a server-side API integration issue affecting pyupio's package metadata fetcher. The problem occurs regardless of client platform as it relates to PyPI's API endpoint structure.

Additional context

@davidlacho davidlacho added bug 🐛 requires triaging maintainers need to do initial inspection of issue labels Jan 21, 2025
@di
Copy link
Member

di commented Jan 21, 2025

This project doesn't seem to exist: https://pypi.org/project/defichain-utils/, that's why the JSON URL is 404.

You can see an example of a successful API response here that uses the URL structure you're requesting: https://pypi.org/pypi/sampleproject/json. More details on this API are here: https://docs.pypi.org/api/json/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 requires triaging maintainers need to do initial inspection of issue
Projects
None yet
Development

No branches or pull requests

2 participants