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

# Get environment listings

> Retrieve a list of environment listings with optional filters



## OpenAPI

````yaml https://console.gputrader.io/assets/gputrader-api.json get /environments/listings
openapi: 3.1.1
info:
  title: GPU Trader API
  version: 0.4.16
  description: This is the Swagger/OpenAPI-compatible GPUTrader API documentation
servers:
  - url: https://api.gputrader.io/v1
security: []
tags: []
paths:
  /environments/listings:
    get:
      tags:
        - Environments
      summary: Get environment listings
      description: Retrieve a list of environment listings with optional filters
      parameters:
        - in: query
          name: limit
          schema:
            type: number
          description: Maximum number of results to return (max 100)
        - in: query
          name: lastEvaluatedKey
          schema:
            type: string
          description: Key for pagination
        - in: query
          name: available
          schema:
            type: boolean
          description: Filter by availability status
        - in: query
          name: gpuName
          schema:
            type: string
          description: Filter by GPU name (comma-separated list)
        - in: query
          name: envId
          schema:
            type: string
          description: Filter by environment ID (comma-separated list)
        - in: query
          name: gpuVRAM
          schema:
            type: string
          description: Filter by GPU VRAM (comma-separated list)
        - in: query
          name: availableGPUs
          schema:
            type: string
          description: Filter by number of available GPUs (comma-separated list)
        - in: query
          name: type
          schema:
            type: string
          description: Filter by environment type
        - in: query
          name: location
          schema:
            type: string
          description: Filter by location (comma-separated list)
        - in: query
          name: price
          schema:
            type: string
          description: Filter by price (comma-separated list)
      responses:
        '200':
          description: Successfully retrieved environment listings
          content:
            application/json:
              schema:
                type: object
                properties:
                  listings:
                    type: array
                    items:
                      type: object
                      properties:
                        envId:
                          type: string
                          description: Environment identifier
                        availabilityWindows:
                          type: object
                          description: Availability windows configuration
                        pricing:
                          type: object
                          description: Pricing configuration
                        selectedGPUs:
                          type: number
                          description: Number of GPUs selected by the user
                        totalGPUs:
                          type: number
                          description: Total number of GPUs on the device
                        availableGPUs:
                          type: number
                          description: Number of available GPUs
                        totalCPUs:
                          type: number
                          description: Total CPU cores in GB
                        totalRAM:
                          type: number
                          description: Total RAM in GB
                        totalStorage:
                          type: number
                          description: Total storage in GB
                        gpuName:
                          type: string
                          description: Name of the GPU model
                        gpuInterconnect:
                          type: string
                          description: GPU interconnect specification
                        gpuVRAM:
                          type: number
                          description: GPU VRAM capacity
                        gpuCUDA:
                          type: string
                          description: CUDA version/capability
                        gpuBandwidth:
                          type: number
                          description: GPU bandwidth
                        location:
                          type: string
                          description: Physical location of the environment
                        networkUploadSpeed:
                          type: number
                          description: Network upload speed
                        networkDownloadSpeed:
                          type: number
                          description: Network download speed
                        type:
                          type: object
                          description: Listing type configuration
                        activeRentalIds:
                          type: object
                          description: Active rental IDs configuration
                        isListed:
                          type: boolean
                          description: Whether the environment is listed
                        updatedAt:
                          type: string
                          format: date-time
                          description: Last update timestamp
                      required:
                        - envId
                        - availabilityWindows
                        - pricing
                        - totalGPUs
                        - availableGPUs
                        - totalCPUs
                        - totalRAM
                        - totalStorage
                        - gpuName
                        - gpuInterconnect
                        - gpuVRAM
                        - gpuCUDA
                        - gpuBandwidth
                        - location
                        - networkUploadSpeed
                        - networkDownloadSpeed
                        - type
                        - activeRentalIds
                        - isListed
                        - updatedAt
                  lastEvaluatedKey:
                    type: string
                    description: Encoded key for retrieving the next page of results
                required:
                  - listings
        '400':
          description: Invalid query parameters
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````