Skip to content

Last updated

Changelog
Base URL
https://api.maviapi.com/v1/sites/pypi
9
Endpoints
18 min ago
Last verified
100%
Uptime / 7d
526ms
p50 latency
GET/get_project1 credit per call

Get Project

Details of a project (its latest release): metadata, links, classifiers, dependencies, files, owners, vulnerabilities.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
stringOptionalin query

project name as on PyPI, e.g. 'requests'

booleanOptionalin query

include the full long description (README), which can be very long

infoobject29 fields
authornull
author_emailstring
bugtrack_urlnull
classifiersstring[]
description_content_typestring
docs_urlnull
download_urlnull
downloadsobject3 fields
last_dayinteger
last_monthinteger
last_weekinteger
dynamicstring[]
home_pagenull
keywordsnull
licensestring
license_expressionnull
license_filesstring[]
maintainernull
maintainer_emailstring
namestring
package_urlstring
platformnull
project_urlstring
project_urlsobject2 fields
Documentationstring
Sourcestring
provides_extrastring[]
release_urlstring
requires_diststring[]
requires_pythonstring
summarystring
versionstring
yankedboolean
yanked_reasonnull
ownershipobject2 fields
organizationnull
rolesobject[]2 fields
rolestring
userstring
last_serialinteger
release_countinteger
versionsstring[]
filesobject[]16 fields
comment_textnull
core-metadataobject1 field
sha256string
digestsobject3 fields
blake2b_256string
md5string
sha256string
downloadsinteger
filenamestring
has_sigboolean
md5_digeststring
packagetypestring
python_versionstring
requires_pythonstring
sizeinteger
upload_timestring
upload_time_iso_8601string
urlstring
yankedboolean
yanked_reasonnull
vulnerabilitiesstring[]
urlstring
paginationobject3 fields
countinteger
has_moreboolean
next_cursornull
fetched_atstring
ageinteger
Try itLive
GET
https://api.maviapi.com/v1/sites/pypi/get_project?name=requests&include_description=false
Request
curl "https://api.maviapi.com/v1/sites/pypi/get_project?name=requests&include_description=false" \
-H "Authorization: Bearer $MAVI_KEY"
Example1.9 KB
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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_project

    Details of a project (its latest release): metadata, links, classifiers, dependencies, files, owners, vulnerabilities.

    Parameters and response fields for GET /get_project
    Request parameters
    NameType / locationRequiredDescription
    namestring / queryNoproject name as on PyPI, e.g. 'requests'
    include_descriptionboolean / queryNoinclude the full long description (README), which can be very long
    Response fields
    FieldTypeDescription
    infoobject
    info.authornull
    info.author_emailstring
    info.bugtrack_urlnull
    info.classifiersstring[]
    info.description_content_typestring
    info.docs_urlnull
    info.download_urlnull
    info.downloadsobject
    info.downloads.last_dayinteger
    info.downloads.last_monthinteger
    info.downloads.last_weekinteger
    info.dynamicstring[]
    info.home_pagenull
    info.keywordsnull
    info.licensestring
    info.license_expressionnull
    info.license_filesstring[]
    info.maintainernull
    info.maintainer_emailstring
    info.namestring
    info.package_urlstring
    info.platformnull
    info.project_urlstring
    info.project_urlsobject
    info.project_urls.Documentationstring
    info.project_urls.Sourcestring
    info.provides_extrastring[]
    info.release_urlstring
    info.requires_diststring[]
    info.requires_pythonstring
    info.summarystring
    info.versionstring
    info.yankedboolean
    info.yanked_reasonnull
    ownershipobject
    ownership.organizationnull
    ownership.rolesobject[]
    ownership.roles[].rolestring
    ownership.roles[].userstring
    last_serialinteger
    release_countinteger
    versionsstring[]
    filesobject[]
    files[].comment_textnull
    files[].core-metadataobject
    files[].core-metadata.sha256string
    files[].digestsobject
    files[].digests.blake2b_256string
    files[].digests.md5string
    files[].digests.sha256string
    files[].downloadsinteger
    files[].filenamestring
    files[].has_sigboolean
    files[].md5_digeststring
    files[].packagetypestring
    files[].python_versionstring
    files[].requires_pythonstring
    files[].sizeinteger
    files[].upload_timestring
    files[].upload_time_iso_8601string
    files[].urlstring
    files[].yankedboolean
    files[].yanked_reasonnull
    vulnerabilitiesstring[]
    urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Release GET /get_release

    Details 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
    NameType / locationRequiredDescription
    namestring / queryNoproject name, e.g. 'requests'
    versionstring / queryNorelease version, e.g. '2.31.0'
    include_descriptionboolean / queryNoinclude the full long description (README)
    Response fields
    FieldTypeDescription
    infoobject
    info.authorstring
    info.author_emailstring
    info.bugtrack_urlnull
    info.classifiersstring[]
    info.description_content_typestring
    info.docs_urlnull
    info.download_urlstring
    info.downloadsobject
    info.downloads.last_dayinteger
    info.downloads.last_monthinteger
    info.downloads.last_weekinteger
    info.dynamicnull
    info.home_pagestring
    info.keywordsstring
    info.licensestring
    info.license_expressionnull
    info.license_filesnull
    info.maintainerstring
    info.maintainer_emailstring
    info.namestring
    info.package_urlstring
    info.platformnull
    info.project_urlstring
    info.project_urlsobject
    info.project_urls.Documentationstring
    info.project_urls.Homepagestring
    info.project_urls.Sourcestring
    info.provides_extranull
    info.release_urlstring
    info.requires_diststring[]
    info.requires_pythonstring
    info.summarystring
    info.versionstring
    info.yankedboolean
    info.yanked_reasonnull
    filesobject[]
    files[].comment_textstring
    files[].core-metadataobject
    files[].core-metadata.sha256string
    files[].digestsobject
    files[].digests.blake2b_256string
    files[].digests.md5string
    files[].digests.sha256string
    files[].downloadsinteger
    files[].filenamestring
    files[].has_sigboolean
    files[].md5_digeststring
    files[].packagetypestring
    files[].python_versionstring
    files[].requires_pythonstring
    files[].sizeinteger
    files[].upload_timestring
    files[].upload_time_iso_8601string
    files[].urlstring
    files[].yankedboolean
    files[].yanked_reasonnull
    vulnerabilitiesobject[]
    vulnerabilities[].aliasesstring[]
    vulnerabilities[].detailsstring
    vulnerabilities[].fixed_instring[]
    vulnerabilities[].idstring
    vulnerabilities[].linkstring
    vulnerabilities[].sourcestring
    vulnerabilities[].summarynull
    vulnerabilities[].withdrawnnull
    urlstring
    fetched_atstring
    ageinteger
  • Get User GET /get_user

    Public profile of a PyPI user and the projects they maintain.

    Parameters and response fields for GET /get_user
    Request parameters
    NameType / locationRequiredDescription
    usernamestring / queryNoPyPI username, e.g. 'kennethreitz'
    Response fields
    FieldTypeDescription
    usernamestring
    namestring
    avatarstring
    profile_metastring[]
    project_countinteger
    projectsobject[]
    projects[].namestring
    projects[].last_releasedstring
    projects[].summarystring
    projects[].urlstring
    urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Latest Updates GET /latest_updates

    The latest 40 releases uploaded to PyPI (site feed 'recent updates'), newest first.

  • List Classifiers GET /list_classifiers

    All trove classifiers PyPI accepts (usable as the classifier filter of search_packages).

    Parameters and response fields for GET /list_classifiers
    Request parameters
    NameType / locationRequiredDescription
    prefixstring / queryNooptional case-insensitive text the classifier must start with, e.g. 'Framework ::'
    Response fields
    FieldTypeDescription
    countinteger
    classifiersstring[]
    fetched_atstring
    ageinteger
  • List Releases GET /list_releases

    Release 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
    NameType / locationRequiredDescription
    namestring / queryNoproject name, e.g. 'requests'
    Response fields
    FieldTypeDescription
    namestring
    latest_versionstring
    countinteger
    releasesobject[]
    releases[].versionstring
    releases[].uploadedstring
    releases[].yankedboolean
    releases[].yanked_reasonnull
    releases[].file_countinteger
    releases[].package_typesstring[]
    releases[].requires_pythonstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger
  • Newest Packages GET /newest_packages

    The 40 newest projects created on PyPI (site feed 'newest packages'), newest first.

  • Search Packages GET /search_packages

    Search PyPI projects, like the site's search page (20 results per page).

    Parameters and response fields for GET /search_packages
    Request parameters
    NameType / locationRequiredDescription
    qstring / queryNosearch words (may be empty when classifier is given)
    pageinteger / queryNoresult page number, starting at 1 (PyPI serves at most 500 pages)
    orderstring / queryNo'' for relevance, '-created' for most recently updated first
    classifierstring / queryNooptional trove classifier filter, e.g. 'Framework :: Django'; several separated by '|'
    Response fields
    FieldTypeDescription
    querystring
    pageinteger
    total_resultsstring
    last_pageinteger
    has_nextboolean
    resultsobject[]
    results[].namestring
    results[].summarystring
    results[].releasedstring
    results[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • Top Packages By Size GET /top_packages_by_size

    PyPI 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
    NameType / locationRequiredDescription
    limitinteger / queryNohow many top projects to return (the site lists up to 100)
    Response fields
    FieldTypeDescription
    total_packages_size_bytesinteger
    top_packagesobject[]
    top_packages[].namestring
    top_packages[].size_bytesinteger
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursornull
    fetched_atstring
    ageinteger

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.

ListCSV columns
Get ProjectGET /get_projectcomment_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_username, last_released, summary, url
List ReleasesGET /list_releasesversion, uploaded, yanked, yanked_reason, file_count, package_types, requires_python
Search PackagesGET /search_packagesname, 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
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.

  • 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…