# PyPI API: Get package

> Gets a PyPI package's current version, release date, metadata, project links and its 10 most recently published versions from a package name or PyPI link.

Unofficial. Not affiliated with or endorsed by PyPI.

- Page: https://fous.com/methods/pypi.org/get-package
- Method: `pypi.org/get_package`, version 1
- Website: pypi.org
- Returns: name, latest version and release date, summary, license, Python requirement, links, author, maintainers, last 10 versions
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `package` | string | yes | `"requests"` | Package name or PyPI package link, such as requests or https://pypi.org/project/requests/. |

## Output

From a run on Oct 23, 2026, shortened. Its input:

```json
{
  "package": "requests"
}
```

Its output:

```json
{
  "name": "requests",
  "author": "Kenneth Reitz",
  "license": "Apache-2.0",
  "summary": "Python HTTP for Humans.",
  "homepage": null,
  "pypi_page": "https://pypi.org/project/requests/",
  "maintainers": [
    "Ian Stapleton Cordasco",
    "Nate Prewitt"
  ],
  "source_code": "https://github.com/psf/requests",
  "latest_version": "2.34.2",
  "last_10_versions": [
    {
      "version": "2.34.2",
      "pypi_page": "https://pypi.org/project/requests/2.34.2/",
      "release_date": "2026-05-14"
    },
    {
      "version": "2.34.1",
      "pypi_page": "https://pypi.org/project/requests/2.34.1/",
      "release_date": "2026-05-13"
    },
    {
      "version": "2.34.0",
      "pypi_page": "https://pypi.org/project/requests/2.34.0/",
      "release_date": "2026-05-11"
    }
  ],
  "latest_release_date": "2026-05-14",
  "supported_python_versions": ">=3.10"
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"pypi.org/get_package","input":{"package":"requests"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- What's the latest version of the requests package and when was it released?
- Show me the license, summary, and Python version requirement for numpy
- Can you pull up the last 10 releases of flask with their dates?
- Who are the maintainers and author of the pydantic package?
- Get the project links and metadata for https://pypi.org/project/httpx/

## Input schema

```json
{
  "type": "object",
  "required": [
    "package"
  ],
  "properties": {
    "package": {
      "type": "string",
      "description": "Package name or PyPI package link, such as requests or https://pypi.org/project/requests/."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "name",
    "latest_version",
    "latest_release_date",
    "summary",
    "license",
    "supported_python_versions",
    "homepage",
    "source_code",
    "author",
    "maintainers",
    "last_10_versions",
    "pypi_page"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Package name as listed by PyPI."
    },
    "author": {
      "type": [
        "string",
        "null"
      ],
      "description": "Package author, if given."
    },
    "license": {
      "type": [
        "string",
        "null"
      ],
      "description": "License text or expression, if given."
    },
    "summary": {
      "type": [
        "string",
        "null"
      ],
      "description": "Short description of the package."
    },
    "homepage": {
      "type": [
        "string",
        "null"
      ],
      "description": "Project homepage, if given."
    },
    "pypi_page": {
      "type": "string",
      "description": "Public PyPI package page."
    },
    "maintainers": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Package maintainers listed in package metadata."
    },
    "source_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "Project source code link, if given."
    },
    "latest_version": {
      "type": "string",
      "description": "Current version chosen by PyPI."
    },
    "last_10_versions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "version",
          "release_date",
          "pypi_page"
        ],
        "properties": {
          "version": {
            "type": "string"
          },
          "pypi_page": {
            "type": "string",
            "description": "PyPI page for this version."
          },
          "release_date": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "description": "Ten most recently uploaded versions with known release dates, newest first."
    },
    "latest_release_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Date the current version was first uploaded, if available."
    },
    "supported_python_versions": {
      "type": [
        "string",
        "null"
      ],
      "description": "Python version requirement, such as >=3.8."
    }
  },
  "additionalProperties": false
}
```

## See more

- [PyPI API: Search packages](https://fous.com/methods/pypi.org/search-packages.md): Searches PyPI by keywords and returns matching packages in relevance order, each with its latest version and that version's release date. Returns up to 100 results.
- [NuGet API: Get package](https://fous.com/methods/nuget.org/get-package.md): Looks up a NuGet package by name or nuget.org link. Inexact names match the top search result. Returns the latest stable release's details and the 10 most recent versions, including prereleases.
- [npm API: Get package](https://fous.com/methods/npmjs.com/get-package.md): Looks up a public npm package by name or npm link. Returns its latest version, weekly downloads, maintainers, links, dates and version count.
- [crates.io API: Get crate details](https://fous.com/methods/crates.io/get-crate.md): Looks up a Rust crate by name or crates.io link and returns its latest version, downloads, links, dates, license and 10 most recent releases.
- [RubyGems API: Get a Ruby gem's details](https://fous.com/methods/rubygems.org/get-gem.md): Looks up a Ruby gem on RubyGems by name or gem page link and returns its latest version, release date, description, downloads, authors, license, links and runtime dependencies.
- [WordPress.org API: Get WordPress plugin details](https://fous.com/methods/wordpress.org/get-plugin.md): Finds the best-matching WordPress.org plugin by name or plugin page link and returns its details, including the changelog for the latest version when one is available.
- [Walmart API: Get product](https://fous.com/methods/walmart.com/get-product.md): Gets details, price and availability for a Walmart product by name or product link, using Walmart's default location.
- [GitHub API: Get repository facts](https://fous.com/methods/github.com/get-repository.md): Looks up a public GitHub repository by name, owner/name, or link and returns its stars, forks, release, commit and contributor facts.
- [All PyPI methods](https://fous.com/methods/pypi.org.md)
