# Query package metadata from pypi.org

**URL:** <https://discuss.python.org/t/query-package-metadata-from-pypi-org/21962>\
**Category:** Packaging\
**Tags:** help\
**Created:** [December 16, 2022, 3:46am UTC](https://discuss.python.org/t/query-package-metadata-from-pypi-org/21962 "2022-12-16T03:46:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cadojo](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cadojo/32/6396_2.png) [@cadojo](https://discuss.python.org/u/cadojo)\
**Post date:** [December 16, 2022, 3:46am UTC](https://discuss.python.org/t/query-package-metadata-from-pypi-org/21962/1 "2022-12-16T03:46:18Z")

</div>

Is there any way, maybe as part of the `simple` api, to query package metadata from [pypi.org](http://pypi.org)? I’m thinking specifically about project metadata like dependencies, extras, etc.

---

<div class="post-metadata">

**Author:** ![pf\_moore](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/pf_moore/32/35_2.png) [@pf\_moore](https://discuss.python.org/u/pf_moore)\
**Post date:** [December 16, 2022, 9:46am UTC](https://discuss.python.org/t/query-package-metadata-from-pypi-org/21962/2 "2022-12-16T09:46:09Z")

</div>

`dist-info-metadata` is available in the simple API for wheels (and sdists if they follow PEP 643). But PyPI doesn’t expose that data (yet).

The PyPI JSON API includes metadata, but it is unreliable as it is at the project release level, so it doesn’t take into account the possibility of different wheels having different metadata. But it’s the nearest you can get right now.

---

<div class="post-metadata">

**Author:** ![pradyunsg](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/pradyunsg/32/206_2.png) [@pradyunsg](https://discuss.python.org/u/pradyunsg)\
**Post date:** [December 16, 2022, 3:56pm UTC](https://discuss.python.org/t/query-package-metadata-from-pypi-org/21962/3 "2022-12-16T15:56:38Z")

</div>

See also:

[https://warehouse.pypa.io/api-reference/bigquery-datasets.html#project-metadata-table](https://warehouse.pypa.io/api-reference/bigquery-datasets.html#project-metadata-table)
