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

# List and search packages



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/hub/packages
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/hub/packages:
    get:
      tags:
        - Hub
      summary: List and search packages
      operationId: hub_list_packages
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Opaque `next_cursor` from the previous page
            title: Cursor
          description: Opaque `next_cursor` from the previous page
        - name: q
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
              - type: 'null'
            description: >-
              Matches the name, description and owner slug, or an exact tag;
              `owner/name` matches that one package
            title: Q
          description: >-
            Matches the name, description and owner slug, or an exact tag;
            `owner/name` matches that one package
        - name: owner
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
              - type: 'null'
            description: Owning user or team slug
            title: Owner
          description: Owning user or team slug
        - name: tag
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                maxItems: 50
              - type: 'null'
            description: Packages with any of these tags
            title: Tag
          description: Packages with any of these tags
        - name: framework
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - v0
                  - v1
                  - unknown
                type: string
              - type: 'null'
            description: >-
              The verifiers API the package targets. `v0` is the Legacy group,
              so it also matches `unknown`
            title: Framework
          description: >-
            The verifiers API the package targets. `v0` is the Legacy group, so
            it also matches `unknown`
        - name: sort
          in: query
          required: false
          schema:
            enum:
              - featured
              - installs
              - stars
              - updated
            type: string
            description: >-
              `featured`: featured first, then installs; `installs`; `stars`;
              `updated`: most recently changed
            default: featured
            title: Sort
          description: >-
            `featured`: featured first, then installs; `installs`; `stars`;
            `updated`: most recently changed
        - name: visibility
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - public
                  - private
                type: string
              - type: 'null'
            description: >-
              `public` lists what everyone can see, which never includes hidden
              packages. Omit it to list every package you can read
            title: Visibility
          description: >-
            `public` lists what everyone can see, which never includes hidden
            packages. Omit it to list every package you can read
        - name: starred
          in: query
          required: false
          schema:
            type: boolean
            description: Only packages you have starred
            default: false
            title: Starred
          description: Only packages you have starred
        - name: mine
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Only your own packages and those you collaborate on, directly or
              through a team
            default: false
            title: Mine
          description: >-
            Only your own packages and those you collaborate on, directly or
            through a team
        - name: team_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
              - type: 'null'
            description: >-
              With `mine`: list this team's workspace instead, meaning packages
              it owns or collaborates on. Empty unless you are a member
            title: Team Id
          description: >-
            With `mine`: list this team's workspace instead, meaning packages it
            owns or collaborates on. Empty unless you are a member
        - name: include_counts
          in: query
          required: false
          schema:
            type: boolean
            description: Return `total` and `featured_total`, on the first page only
            default: false
            title: Include Counts
          description: Return `total` and `featured_total`, on the first page only
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PackagePage'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
      security:
        - HTTPBearer: []
components:
  schemas:
    PackagePage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/PackageSummary'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Pass as `cursor` to fetch the next page; null on the last
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
          description: Exact for small sets, an estimate for large ones
        featured_total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Featured Total
          description: How many of `total` are featured
      type: object
      required:
        - items
      title: PackagePage
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorEnvelope
    PackageSummary:
      properties:
        id:
          type: string
          title: Id
        owner:
          $ref: '#/components/schemas/PackageOwner'
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        license:
          anyOf:
            - type: string
            - type: 'null'
          title: License
        tags:
          items:
            type: string
          type: array
          title: Tags
        visibility:
          type: string
          enum:
            - public
            - private
          title: Visibility
        is_hidden:
          type: boolean
          title: Is Hidden
        is_featured:
          type: boolean
          title: Is Featured
        framework:
          type: string
          enum:
            - v0
            - v1
            - unknown
          title: Framework
          description: The value `framework=` filters on, kept in step with pushes
        bookmark_count:
          type: integer
          title: Bookmark Count
        install_count:
          type: integer
          title: Install Count
        latest:
          anyOf:
            - $ref: '#/components/schemas/ReleaseSummary'
            - type: 'null'
          description: >-
            The highest stable release, else the highest pre-release, else the
            newest upload; null before the first
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - owner
        - name
        - description
        - license
        - tags
        - visibility
        - is_hidden
        - is_featured
        - framework
        - bookmark_count
        - install_count
        - latest
        - created_at
        - updated_at
      title: PackageSummary
    ErrorBody:
      properties:
        code:
          type: string
          title: Code
          description: Stable, machine-readable error code
        message:
          type: string
          title: Message
        details:
          type: object
          title: Details
      type: object
      required:
        - code
        - message
      title: ErrorBody
    PackageOwner:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        kind:
          type: string
          enum:
            - user
            - team
          title: Kind
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
          description: Null for an owner who never picked a slug
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        image:
          anyOf:
            - type: string
            - type: 'null'
          title: Image
          description: Avatar, or the logo of a team
      type: object
      required:
        - kind
        - slug
      title: PackageOwner
    ReleaseSummary:
      properties:
        id:
          type: string
          title: Id
          description: 'The release id: the id of its source artifact'
        version:
          anyOf:
            - type: string
            - type: 'null'
          title: Version
          description: Semantic version; null for releases pushed without one
        display_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Version
          description: '`version`, or failing that the version in the upload''s metadata'
        content_hash:
          type: string
          title: Content Hash
        framework:
          type: string
          enum:
            - v0
            - v1
            - unknown
          title: Framework
          description: The verifiers API the release targets
        created_at:
          type: string
          format: date-time
          title: Created At
        source:
          $ref: '#/components/schemas/ReleaseArtifact'
        wheel:
          anyOf:
            - $ref: '#/components/schemas/ReleaseArtifact'
            - type: 'null'
          description: Null for a release with no uploaded wheel, such as most forks
        index_status:
          anyOf:
            - type: string
              enum:
                - processing
                - completed
                - failed
            - type: 'null'
          title: Index Status
          description: State of the file index; null if indexing never started
        pushed_by:
          anyOf:
            - $ref: '#/components/schemas/Pusher'
            - type: 'null'
        refs:
          items:
            type: string
          type: array
          title: Refs
          description: Refs pointing here. `latest` is computed, not the stored ref
      type: object
      required:
        - id
        - version
        - display_version
        - content_hash
        - framework
        - created_at
        - source
        - wheel
        - index_status
        - pushed_by
        - refs
      title: ReleaseSummary
    ReleaseArtifact:
      properties:
        filename:
          type: string
          title: Filename
        sha256:
          type: string
          title: Sha256
      type: object
      required:
        - filename
        - sha256
      title: ReleaseArtifact
    Pusher:
      properties:
        id:
          type: string
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Slug
        image:
          anyOf:
            - type: string
            - type: 'null'
          title: Image
      type: object
      required:
        - id
        - name
        - slug
        - image
      title: Pusher
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.