Last updated
Changelogpypi.org API
HealthyRead-onlyStructured data from pypi.org. Generated from pypi.org.
/get_project1 credit per callGet Project
Details of a project (its latest release): metadata, links, classifiers, dependencies, files, owners, vulnerabilities.
Authorization: Bearer <key> on every request.Parameters
project name as on PyPI, e.g. 'requests'
include the full long description (README), which can be very long
Response fields
info
authorauthor_emailbugtrack_urlclassifiersdescription_content_typedocs_urldownload_urldownloads
last_daylast_monthlast_weekdynamichome_pagekeywordslicenselicense_expressionlicense_filesmaintainermaintainer_emailnamepackage_urlplatformproject_urlproject_urls
DocumentationSourceprovides_extrarelease_urlrequires_distrequires_pythonsummaryversionyankedyanked_reasonownership
organizationroles
roleuserlast_serialrelease_countversionsfiles
comment_textcore-metadata
sha256digests
blake2b_256md5sha256downloadsfilenamehas_sigmd5_digestpackagetypepython_versionrequires_pythonsizeupload_timeupload_time_iso_8601urlyankedyanked_reasonvulnerabilitiesurlpagination
counthas_morenext_cursorfetched_atagecurl "https://api.maviapi.com/v1/sites/pypi/get_project?name=requests&include_description=false" \-H "Authorization: Bearer $MAVI_KEY"
{
"info": {
"author": null,
"author_email": "string",
"bugtrack_url": null,
"classifiers": [
"string"
],
"description_content_type": "string",
"docs_url": null,
"download_url": null,
"downloads": {
"last_day": 0,
"last_month": 0,
"last_week": 0
},
"dynamic": [
"string"
],
"home_page": null,
"keywords": null,
"license": "string",
"license_expression": null,
"license_files": [
"string"
],
"maintainer": null,
"maintainer_email": "string",
"name": "string",
"package_url": "string",
"platform": null,
"project_url": "string",
"project_urls": {
"Documentation": "string",
"Source": "string"
},
"provides_extra": [
"string"
],
"release_url": "string",
"requires_dist": [
"string"
],
"requires_python": "string",
"summary": "string",
"version": "string",
"yanked": false,
"yanked_reason": null
},
"ownership": {
"organization": null,
"roles": [
{
"role": "string",
"user": "string"
}
]
},
"last_serial": 0,
"release_count": 0,
"versions": [
"string"
],
"files": [
{
"comment_text": null,
"core-metadata": {
"sha256": "string"
},
"digests": {
"blake2b_256": "string",
"md5": "string",
"sha256": "string"
},
"downloads": 0,
"filename": "string",
"has_sig": false,
"md5_digest": "string",
"packagetype": "string",
"python_version": "string",
"requires_python": "string",
"size": 0,
"upload_time": "string",
"upload_time_iso_8601": "string",
"url": "string",
"yanked": false,
"yanked_reason": null
}
],
"vulnerabilities": [
null
],
"url": "string",
"pagination": {
"count": 0,
"has_more": false,
"next_cursor": null
},
"fetched_at": "string",
"age": 0
}Get all the data, no code
Collect every page of GET /get_project into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use pypi.org API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of pypi.org API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=pypi -- npx -y '@maviapi/mcp'Import pypi.org API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/pypi/openapi.json - Postman
https://api.maviapi.com/v1/apis/pypi/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the pypi.org API
Choose a starting endpoint
- Get Project
GET /get_projectDetails of a project (its latest release): metadata, links, classifiers, dependencies, files, owners, vulnerabilities.
Parameters and response fields for GET /get_project
Request parameters Name Type / location Required Description name string / query No project name as on PyPI, e.g. 'requests' include_description boolean / query No include the full long description (README), which can be very long Response fields Field Type Description info object info.author null info.author_email string info.bugtrack_url null info.classifiers string[] info.description_content_type string info.docs_url null info.download_url null info.downloads object info.downloads.last_day integer info.downloads.last_month integer info.downloads.last_week integer info.dynamic string[] info.home_page null info.keywords null info.license string info.license_expression null info.license_files string[] info.maintainer null info.maintainer_email string info.name string info.package_url string info.platform null info.project_url string info.project_urls object info.project_urls.Documentation string info.project_urls.Source string info.provides_extra string[] info.release_url string info.requires_dist string[] info.requires_python string info.summary string info.version string info.yanked boolean info.yanked_reason null ownership object ownership.organization null ownership.roles object[] ownership.roles[].role string ownership.roles[].user string last_serial integer release_count integer versions string[] files object[] files[].comment_text null files[].core-metadata object files[].core-metadata.sha256 string files[].digests object files[].digests.blake2b_256 string files[].digests.md5 string files[].digests.sha256 string files[].downloads integer files[].filename string files[].has_sig boolean files[].md5_digest string files[].packagetype string files[].python_version string files[].requires_python string files[].size integer files[].upload_time string files[].upload_time_iso_8601 string files[].url string files[].yanked boolean files[].yanked_reason null vulnerabilities string[] url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Release
GET /get_releaseDetails of one release of a project: its metadata, files (with hashes and sizes) and known vulnerabilities.
Parameters and response fields for GET /get_release
Request parameters Name Type / location Required Description name string / query No project name, e.g. 'requests' version string / query No release version, e.g. '2.31.0' include_description boolean / query No include the full long description (README) Response fields Field Type Description info object info.author string info.author_email string info.bugtrack_url null info.classifiers string[] info.description_content_type string info.docs_url null info.download_url string info.downloads object info.downloads.last_day integer info.downloads.last_month integer info.downloads.last_week integer info.dynamic null info.home_page string info.keywords string info.license string info.license_expression null info.license_files null info.maintainer string info.maintainer_email string info.name string info.package_url string info.platform null info.project_url string info.project_urls object info.project_urls.Documentation string info.project_urls.Homepage string info.project_urls.Source string info.provides_extra null info.release_url string info.requires_dist string[] info.requires_python string info.summary string info.version string info.yanked boolean info.yanked_reason null files object[] files[].comment_text string files[].core-metadata object files[].core-metadata.sha256 string files[].digests object files[].digests.blake2b_256 string files[].digests.md5 string files[].digests.sha256 string files[].downloads integer files[].filename string files[].has_sig boolean files[].md5_digest string files[].packagetype string files[].python_version string files[].requires_python string files[].size integer files[].upload_time string files[].upload_time_iso_8601 string files[].url string files[].yanked boolean files[].yanked_reason null vulnerabilities object[] vulnerabilities[].aliases string[] vulnerabilities[].details string vulnerabilities[].fixed_in string[] vulnerabilities[].id string vulnerabilities[].link string vulnerabilities[].source string vulnerabilities[].summary null vulnerabilities[].withdrawn null url string fetched_at string age integer - Get User
GET /get_userPublic profile of a PyPI user and the projects they maintain.
Parameters and response fields for GET /get_user
Request parameters Name Type / location Required Description username string / query No PyPI username, e.g. 'kennethreitz' Response fields Field Type Description username string name string avatar string profile_meta string[] project_count integer projects object[] projects[].name string projects[].last_released string projects[].summary string projects[].url string url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Latest Updates
GET /latest_updatesThe latest 40 releases uploaded to PyPI (site feed 'recent updates'), newest first.
- List Classifiers
GET /list_classifiersAll trove classifiers PyPI accepts (usable as the classifier filter of search_packages).
Parameters and response fields for GET /list_classifiers
Request parameters Name Type / location Required Description prefix string / query No optional case-insensitive text the classifier must start with, e.g. 'Framework ::' Response fields Field Type Description count integer classifiers string[] fetched_at string age integer - List Releases
GET /list_releasesRelease history of a project, newest first: version, upload date, yanked flag, file count and file types.
Parameters and response fields for GET /list_releases
Request parameters Name Type / location Required Description name string / query No project name, e.g. 'requests' Response fields Field Type Description name string latest_version string count integer releases object[] releases[].version string releases[].uploaded string releases[].yanked boolean releases[].yanked_reason null releases[].file_count integer releases[].package_types string[] releases[].requires_python string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer - Newest Packages
GET /newest_packagesThe 40 newest projects created on PyPI (site feed 'newest packages'), newest first.
- Search Packages
GET /search_packagesSearch PyPI projects, like the site's search page (20 results per page).
Parameters and response fields for GET /search_packages
Request parameters Name Type / location Required Description q string / query No search words (may be empty when classifier is given) page integer / query No result page number, starting at 1 (PyPI serves at most 500 pages) order string / query No '' for relevance, '-created' for most recently updated first classifier string / query No optional trove classifier filter, e.g. 'Framework :: Django'; several separated by '|' Response fields Field Type Description query string page integer total_results string last_page integer has_next boolean results object[] results[].name string results[].summary string results[].released string results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - Top Packages By Size
GET /top_packages_by_sizePyPI storage statistics: total size of all files and the projects using the most storage.
Parameters and response fields for GET /top_packages_by_size
Request parameters Name Type / location Required Description limit integer / query No how many top projects to return (the site lists up to 100) Response fields Field Type Description total_packages_size_bytes integer top_packages object[] top_packages[].name string top_packages[].size_bytes integer pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor null fetched_at string age integer
Export pypi.org data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
Get ProjectGET /get_project | comment_text, core-metadata, digests, downloads, filename, has_sig, md5_digest, packagetype, python_version, requires_python, size, upload_time, upload_time_iso_8601, url, yanked, yanked_reason |
Get UserGET /get_user | name, last_released, summary, url |
List ReleasesGET /list_releases | version, uploaded, yanked, yanked_reason, file_count, package_types, requires_python |
Search PackagesGET /search_packages | name, summary, released, url |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
pypi.org API questions
What you get, what it costs and how to call it.
Is there an official pypi.org API?
This pypi.org API is not official. It is an independent, hosted API from maviapi for the public data on pypi.org, and it is not made, endorsed or supported by pypi.org. Whether pypi.org offers a developer API of its own is a question for pypi.org. This one is ready to call with a maviapi key, and every endpoint and field it returns is documented on this page.
What data can I get from the pypi.org API?
The pypi.org API has 9 endpoints. Each returns JSON with the parameters and fields documented above:
- GET
/get_project: Details of a project (its latest release): metadata, links, classifiers, dependencies, files, owners, vulnerabilities. - GET
/get_release: Details of one release of a project: its metadata, files (with hashes and sizes) and known vulnerabilities. - GET
/get_user: Public profile of a PyPI user and the projects they maintain. - GET
/latest_updates: The latest 40 releases uploaded to PyPI (site feed 'recent updates'), newest first. - GET
/list_classifiers: All trove classifiers PyPI accepts (usable as the classifier filter of search_packages). - GET
/list_releases: Release history of a project, newest first: version, upload date, yanked flag, file count and file types. - GET
/newest_packages: The 40 newest projects created on PyPI (site feed 'newest packages'), newest first. - GET
/search_packages: Search PyPI projects, like the site's search page (20 results per page). - GET
/top_packages_by_size: PyPI storage statistics: total size of all files and the projects using the most storage.
How much does the pypi.org API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Its endpoints cost 1 to 10 credits per call, and each one shows its price above. On the Basic plan ($19 a month for 25,000 credits), 1,000 calls cost about $0.76 to $7.60, depending on the endpoint. Failed calls are free. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the pypi.org API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /get_project:
curl 'https://api.maviapi.com/v1/sites/pypi/get_project' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get pypi.org data as JSON?
Each way to get pypi.org data as JSON fits a different need:
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on pypi.org are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The pypi.org API on this page: 9 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when pypi.org changes its layout?
Your code does not change. maviapi keeps the pypi.org API working when pypi.org changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my pypi.org API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- Tripadvisor API
Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), with…
- Eventbrite API
Events listed on Eventbrite for a city and date range: dates, venue with address and coordinates, image and summary…
- Songkick Concerts API
Upcoming concerts and music festivals in any city from Songkick, for a date window, with venues, performers, prices…