PyPI
What PyPI data is for.
Use PyPI when you need public records without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
5
Paid only
0
Price floor
1 cr
Use cases
PyPI package
Call /v1/pypi/packages/{name} when you need a normalized pypi package response with the same credit and cache rules as the rest of the catalog.
PyPI package version
Call /v1/pypi/packages/{name}/version/{version} when you need a normalized pypi package version response with the same credit and cache rules as the rest of the catalog.
PyPI package releases
Call /v1/pypi/packages/{name}/releases when you need a normalized pypi package releases response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
Every route on this page is live.
Operations
Live / 5
readyPyPI package
/v1/pypi/packages/{name}| Name | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Package name. |
curl -s "https://api.cleanfetch.dev/v1/pypi/packages/{name}?name=example" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "pypi",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
PyPI package version
/v1/pypi/packages/{name}/version/{version}| Name | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Package name. |
| version | string | yes | Package version. |
curl -s "https://api.cleanfetch.dev/v1/pypi/packages/{name}/version/{version}?name=example&version=example" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "pypi",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
PyPI package releases
/v1/pypi/packages/{name}/releases| Name | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Package name. |
curl -s "https://api.cleanfetch.dev/v1/pypi/packages/{name}/releases?name=example" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "pypi",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
PyPI recent downloads
/v1/pypi/packages/{name}/downloads| Name | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Package name. |
curl -s "https://api.cleanfetch.dev/v1/pypi/packages/{name}/downloads?name=example" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "pypi",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
PyPI overall downloads
/v1/pypi/packages/{name}/downloads/overall| Name | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Package name. |
curl -s "https://api.cleanfetch.dev/v1/pypi/packages/{name}/downloads/overall?name=example" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "pypi",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
Common PyPI API questions
How many PyPI operations are live?
5 of 5 cataloged operations are live. Every operation in this reference is live.
What does a PyPI call cost?
Live operations range from 1 to 1 credits. 5 are available on the free daily cap and 0 are paid-only. Cache hits cost 0 credits.
Are PyPI responses cached?
Successful responses are cached between 1h and 1h. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate PyPI requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.