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

# List Browser Sessions

> List browser sessions with pagination.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/browser/sessions
openapi: 3.0.0
info:
  version: 1.0.0
  title: Driver API
  description: API for creating Driver browser sessions and scraping pages.
  contact:
    name: Contact Us
    email: hello@driver.dev
    url: https://driver.dev
servers:
  - url: https://api.driver.dev
security: []
externalDocs:
  description: Learn more
  url: https://docs.driver.dev
paths:
  /v1/browser/sessions:
    get:
      summary: List Browser Sessions
      description: List browser sessions with pagination.
      operationId: listBrowserSessions
      parameters:
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            example: 1
            description: The page number for pagination.
          required: false
          description: The page number for pagination.
          name: page
          in: query
        - schema:
            type: integer
            minimum: 0
            exclusiveMinimum: true
            example: 20
            description: The number of sessions per page.
          required: false
          description: The number of sessions per page.
          name: pageSize
          in: query
        - schema:
            type: string
            enum:
              - starting
              - active
              - completed
              - error
            example: active
            description: Filter sessions by status.
          required: false
          description: Filter sessions by status.
          name: status
          in: query
      responses:
        '200':
          description: Successfully retrieved list of browser sessions.
          content:
            application/json:
              schema:
                type: object
                properties:
                  page:
                    type: integer
                    description: The current page number.
                  pageSize:
                    type: integer
                    description: The number of sessions per page.
                  total:
                    type: integer
                    description: The total number of sessions.
                  totalPages:
                    type: integer
                    description: The total number of pages.
                  sessions:
                    type: array
                    items:
                      type: object
                      properties:
                        sessionId:
                          type: string
                          description: The unique session ID.
                        status:
                          type: string
                          enum:
                            - starting
                            - active
                            - completed
                            - error
                          description: The status of the session.
                        servedBy:
                          type: string
                          description: The node ID that is serving this session.
                        type:
                          type: string
                          nullable: true
                          enum:
                            - hosted
                          description: >-
                            Session infrastructure type. Public docs only expose
                            hosted sessions.
                          example: hosted
                        country:
                          type: string
                          nullable: true
                          description: >-
                            The ISO country code of the node serving this
                            session.
                        createdAt:
                          type: string
                          description: The ISO 8601 timestamp when the session was created.
                        stoppedAt:
                          type: string
                          nullable: true
                          description: >-
                            The ISO 8601 timestamp when the session was stopped,
                            or null if it is still active.
                        bandwidthBytes:
                          type: integer
                          minimum: 0
                          description: The total bandwidth used by the session in bytes.
                        note:
                          type: string
                          nullable: true
                          description: >-
                            An optional note attached to the session, or null if
                            not set.
                      required:
                        - sessionId
                        - status
                        - servedBy
                        - type
                        - country
                        - createdAt
                        - stoppedAt
                        - note
                    description: Array of browser sessions.
                required:
                  - page
                  - pageSize
                  - total
                  - totalPages
                  - sessions
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                required:
                  - error
        '500':
          description: Failed to retrieve browser sessions.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                required:
                  - error
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: Your Driver API key. Get one at https://app.driver.dev

````