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

# Get search results by session ID



## OpenAPI

````yaml get /availability/{sessionId}
openapi: 3.0.0
info:
  title: Hotel Booking API
  version: 1.0.0
servers:
  - url: /api
    description: API server
security:
  - ApiKeyAuth: []
paths:
  /availability/{sessionId}:
    get:
      summary: Get search results by session ID
      operationId: getAvailabilityBySessionId
      parameters:
        - in: path
          name: sessionId
          schema:
            type: string
            format: uuid
          required: true
      responses:
        '200':
          description: Search results found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the request was successful
                  message:
                    type: string
                    nullable: true
                    description: Response message, null if successful
                  data:
                    type: object
                    properties:
                      sessionId:
                        type: string
                      search:
                        type: object
                        properties:
                          destinationId:
                            type: string
                          checkIn:
                            type: string
                          checkOut:
                            type: string
                          rooms:
                            type: array
                            items:
                              type: object
                              properties:
                                adults:
                                  type: number
                                children:
                                  type: number
                                childrenAges:
                                  type: array
                                  items:
                                    type: number
                              required:
                                - adults
                                - children
                                - childrenAges
                        required:
                          - destinationId
                          - checkIn
                          - checkOut
                          - rooms
                      metadata:
                        type: object
                        properties:
                          total:
                            type: number
                          totalPages:
                            type: number
                          maxTotalPrice:
                            type: number
                          nights:
                            type: number
                          rooms:
                            type: number
                          centerCoordinates:
                            type: array
                            items:
                              type: number
                            minItems: 2
                            maxItems: 2
                          destinationName:
                            type: string
                        required:
                          - total
                          - totalPages
                          - maxTotalPrice
                          - nights
                          - rooms
                          - destinationName
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            hotel:
                              type: object
                              properties:
                                id:
                                  type: number
                                name:
                                  type: string
                                stars:
                                  type: number
                                  minimum: 1
                                  maximum: 5
                                coordinates:
                                  type: array
                                  items:
                                    type: number
                                  minItems: 2
                                  maxItems: 2
                                address:
                                  type: object
                                  properties:
                                    address:
                                      type: string
                                    city:
                                      type: string
                                    country:
                                      type: string
                                    countryCode:
                                      type: string
                                rating:
                                  type: number
                                  minimum: 0
                                  maximum: 5
                                reviews:
                                  type: number
                                  minimum: 0
                                pricePerNight:
                                  type: string
                                priceChargeable:
                                  type: string
                                pricePerRoom:
                                  type: string
                                pricePerRoomPerNight:
                                  type: string
                                priceBeforeFees:
                                  type: string
                                priceFees:
                                  type: string
                                priceDueAtHotel:
                                  type: string
                                priceInclusive:
                                  type: string
                                amenities:
                                  type: array
                                  items:
                                    type: string
                                location:
                                  type: string
                                images:
                                  type: array
                                  items:
                                    type: string
                                    format: uri
                                exclusive:
                                  type: boolean
                                type:
                                  type: string
                              required:
                                - id
                                - name
                                - stars
                                - address
                                - rating
                                - reviews
                                - pricePerNight
                                - priceChargeable
                                - pricePerRoom
                                - pricePerRoomPerNight
                                - priceBeforeFees
                                - priceFees
                                - priceDueAtHotel
                                - priceInclusive
                                - amenities
                                - location
                                - images
                                - exclusive
                                - type
                            rates:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    format: uuid
                                  roomType:
                                    type: string
                                  board:
                                    type: string
                                  pricePerNight:
                                    type: string
                                  pricePerRoom:
                                    type: string
                                  pricePerRoomPerNight:
                                    type: string
                                  priceBeforeFees:
                                    type: string
                                  priceFees:
                                    type: string
                                  priceChargeable:
                                    type: string
                                  priceDueAtHotel:
                                    type: string
                                  priceInclusive:
                                    type: string
                                  currency:
                                    type: string
                                  cancellationPolicy:
                                    type: string
                                  cancellationPolicyDate:
                                    type: string
                                required:
                                  - id
                                  - roomType
                                  - board
                                  - pricePerNight
                                  - pricePerRoom
                                  - pricePerRoomPerNight
                                  - priceBeforeFees
                                  - priceFees
                                  - priceChargeable
                                  - priceDueAtHotel
                                  - priceInclusive
                                  - currency
                                  - cancellationPolicy
                                  - cancellationPolicyDate
                          required:
                            - hotel
                      expiresAt:
                        type: string
                    required:
                      - sessionId
                      - search
                      - metadata
                      - results
                      - expiresAt
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API key for authentication

````