> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /pypi/packages

> Get PyPI package metadata by package name or project URL

**Price:** 5 credits

**⚠️ Common errors:** 412: Package not found



## OpenAPI

````yaml /openapi/package-registries.json post /api/pypi/packages
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/pypi/packages:
    post:
      tags:
        - /pypi
      summary: /pypi/packages
      description: |-
        Get PyPI package metadata by package name or project URL

        **Price:** 5 credits

        **⚠️ Common errors:** 412: Package not found
      operationId: __api_pypi_packages_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PypiPackagePayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PypiPackage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PypiPackagePayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        package:
          type: string
          minLength: 1
        version:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - package
    PypiPackage:
      properties:
        '@type':
          type: string
          default: PypiPackage
        name:
          type: string
        version:
          type: string
          default: ''
        summary:
          anyOf:
            - type: string
            - type: 'null'
        description_content_type:
          anyOf:
            - type: string
            - type: 'null'
        author:
          anyOf:
            - type: string
            - type: 'null'
        author_email:
          anyOf:
            - type: string
            - type: 'null'
        maintainer:
          anyOf:
            - type: string
            - type: 'null'
        maintainer_email:
          anyOf:
            - type: string
            - type: 'null'
        license:
          anyOf:
            - type: string
            - type: 'null'
        license_expression:
          anyOf:
            - type: string
            - type: 'null'
        keywords:
          anyOf:
            - type: string
            - type: 'null'
        classifiers:
          items:
            type: string
          type: array
          default: []
        requires_dist:
          items:
            type: string
          type: array
          default: []
        requires_python:
          anyOf:
            - type: string
            - type: 'null'
        provides_extra:
          items:
            type: string
          type: array
          default: []
        license_files:
          items:
            type: string
          type: array
          default: []
        project_urls:
          additionalProperties:
            type: string
          type: object
          default: {}
        home_page_url:
          anyOf:
            - type: string
            - type: 'null'
        web_url:
          type: string
          default: ''
        is_yanked:
          type: boolean
          default: false
        yanked_reason:
          anyOf:
            - type: string
            - type: 'null'
        files:
          items:
            $ref: '#/components/schemas/PypiFile'
          type: array
          default: []
        vulnerabilities:
          items:
            $ref: '#/components/schemas/PypiVulnerability'
          type: array
          default: []
      type: object
      required:
        - name
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    PypiFile:
      properties:
        '@type':
          type: string
          default: PypiFile
        filename:
          type: string
        url:
          type: string
          default: ''
        packagetype:
          type: string
          default: ''
        python_version:
          anyOf:
            - type: string
            - type: 'null'
        requires_python:
          anyOf:
            - type: string
            - type: 'null'
        size:
          type: integer
          default: 0
        uploaded_at:
          anyOf:
            - type: string
            - type: 'null'
        has_sig:
          type: boolean
          default: false
        comment_text:
          anyOf:
            - type: string
            - type: 'null'
        is_yanked:
          type: boolean
          default: false
        yanked_reason:
          anyOf:
            - type: string
            - type: 'null'
        digests:
          anyOf:
            - $ref: '#/components/schemas/PypiFileDigests'
            - type: 'null'
      type: object
      required:
        - filename
    PypiVulnerability:
      properties:
        '@type':
          type: string
          default: PypiVulnerability
        id:
          type: string
        aliases:
          items:
            type: string
          type: array
          default: []
        details:
          anyOf:
            - type: string
            - type: 'null'
        summary:
          anyOf:
            - type: string
            - type: 'null'
        link:
          anyOf:
            - type: string
            - type: 'null'
        source:
          anyOf:
            - type: string
            - type: 'null'
        fixed_in:
          items:
            type: string
          type: array
          default: []
        withdrawn:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
    PypiFileDigests:
      properties:
        '@type':
          type: string
          default: PypiFileDigests
        blake2b_256:
          anyOf:
            - type: string
            - type: 'null'
        md5:
          anyOf:
            - type: string
            - type: 'null'
        sha256:
          anyOf:
            - type: string
            - type: 'null'
      type: object
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````