> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/pypi.md).

# PyPI package in Duaer

In Duaer: One Python package from PyPI with latest version, license, supported Python versions, links, and known vulnerabilities. One successful search uses 1 credit.
## What you get

Duaer PyPI package reads one project from the Python Package Index by its exact name.

Pick Duaer Data → PyPI package in the node creator, or open the [data market](/getting-started/data-market.md). Related: [OSV vulnerabilities](/getting-started/osv.md), [npm packages](/getting-started/npm.md).

## When to use it

- Check the latest version and Python support of a dependency.
- See whether PyPI lists known vulnerabilities for the latest release.

## When not to use it

- Searching by keyword. Use [npm packages](/getting-started/npm.md) for JavaScript; PyPI has no search API.
- Vulnerabilities in older versions. Use [OSV vulnerabilities](/getting-started/osv.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → PyPI package.
2. Fill Package (such as requests).
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/pypi?package=requests
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-pypi
description: >-
  Duaer PyPI package. One Python package from PyPI with latest version, license, supported Python versions, links, and known vulnerabilities.
  One successful search uses 1 Duaer credit.
---

# Duaer PyPI package

Duaer PyPI package reads one project from the Python Package Index by its exact name.

## When to use

- Check the latest version and Python support of a dependency.
- See whether PyPI lists known vulnerabilities for the latest release.

## When not to use

- Searching by keyword. Use https://skills.duaer.com/npm.md for JavaScript; PyPI has no search API.
- Vulnerabilities in older versions. Use https://skills.duaer.com/osv.md.

## Call

`GET https://api.duaer.com/v1/data/pypi?package=requests`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `package`.

- `package` — Exact package name, such as requests or numpy.

## Examples

- `GET https://api.duaer.com/v1/data/pypi?package=requests` — the requests package.
- `GET https://api.duaer.com/v1/data/pypi?package=numpy` — the numpy package.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `package`, `version`, `description`, `license` — package facts.
- `requiresPython`, `dependencies` — Python range and number of declared dependencies.
- `author`, `homepage`, `documentation` — people and links.
- `knownVulnerabilities`, `released` — vulnerabilities PyPI lists for this release, and its upload time.

The search returns one row, or none when the name does not exist.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/osv.md — Duaer OSV vulnerabilities
- https://skills.duaer.com/npm.md — Duaer npm packages

```
## Questions

### How many credits does a PyPI package search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### Can Duaer PyPI package search by keyword?

No. Duaer PyPI package reads one project by its exact name. A missing name returns no rows and uses 0 credits.

## Related

- [OSV vulnerabilities in Duaer](https://doc.duaer.com/getting-started/osv.md)
- [npm packages in Duaer](https://doc.duaer.com/getting-started/npm.md)

