Skip to main content
POST
/
api
/
pypi
/
packages
/
files
/pypi/packages/files
curl --request POST \
  --url https://api.anysite.io/api/pypi/packages/files \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "package": "<string>",
  "version": "<string>",
  "timeout": 300
}
'
[
  {
    "filename": "<string>",
    "@type": "@pypi_file",
    "url": "",
    "packagetype": "",
    "python_version": "<string>",
    "requires_python": "<string>",
    "size": 0,
    "uploaded_at": "<string>",
    "has_sig": false,
    "comment_text": "<string>",
    "is_yanked": false,
    "yanked_reason": "<string>",
    "digests": {
      "@type": "@pypi_file_digests",
      "blake2b_256": "<string>",
      "md5": "<string>",
      "sha256": "<string>"
    }
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
package
string
required

Package name or PyPI project URL

Minimum string length: 1
Examples:

"requests"

"django"

"https://pypi.org/project/numpy/"

version
string
required

Package version

Minimum string length: 1
Examples:

"2.31.0"

"5.1.4"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

filename
string
required
@type
string
default:@pypi_file
url
string
default:""
packagetype
string
default:""
python_version
string | null
requires_python
string | null
size
integer
default:0
uploaded_at
string | null
has_sig
boolean
default:false
comment_text
string | null
is_yanked
boolean
default:false
yanked_reason
string | null
digests
PypiFileDigests · object