> ## 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.

# /trip/hotels

> Get full Trip.com hotel details by hotel id (or hotel URL): name, star rating, guest review score with category subscores and review count, full address, district, coordinates, city/province/country, hotel chain, year opened and renovated, description, contact phone and email, check-in/check-out times, property highlights, grouped amenities, nearby places, policies (child, breakfast, deposit, pet, age), reservation tips, and photos.

**Price:** 10 credits

**⚠️ Common errors:** 412: Hotel not found (well-formed but nonexistent hotel id)



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/trip/hotels
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/trip/hotels:
    post:
      tags:
        - /trip
      summary: /trip/hotels
      description: >-
        Get full Trip.com hotel details by hotel id (or hotel URL): name, star
        rating, guest review score with category subscores and review count,
        full address, district, coordinates, city/province/country, hotel chain,
        year opened and renovated, description, contact phone and email,
        check-in/check-out times, property highlights, grouped amenities, nearby
        places, policies (child, breakfast, deposit, pet, age), reservation
        tips, and photos.


        **Price:** 10 credits


        **⚠️ Common errors:** 412: Hotel not found (well-formed but nonexistent
        hotel id)
      operationId: __api_trip_hotels_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TripHotelsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TripHotel'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TripHotelsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        hotel:
          type: string
          minLength: 1
      type: object
      required:
        - hotel
    TripHotel:
      properties:
        '@type':
          type: string
          default: TripHotel
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        star:
          anyOf:
            - type: integer
            - type: 'null'
        score:
          anyOf:
            - type: number
            - type: 'null'
        score_description:
          anyOf:
            - type: string
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        score_details:
          items:
            $ref: '#/components/schemas/TripScoreDetail'
          type: array
          default: []
        address:
          anyOf:
            - type: string
            - type: 'null'
        zone_name:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        city_id:
          anyOf:
            - type: integer
            - type: 'null'
        city_name:
          anyOf:
            - type: string
            - type: 'null'
        province_id:
          anyOf:
            - type: integer
            - type: 'null'
        province_name:
          anyOf:
            - type: string
            - type: 'null'
        country_id:
          anyOf:
            - type: integer
            - type: 'null'
        country_name:
          anyOf:
            - type: string
            - type: 'null'
        chain:
          anyOf:
            - type: string
            - type: 'null'
        opened_year:
          anyOf:
            - type: string
            - type: 'null'
        renovated_year:
          anyOf:
            - type: string
            - type: 'null'
        phone:
          anyOf:
            - type: string
            - type: 'null'
        email:
          anyOf:
            - type: string
            - type: 'null'
        check_in_time:
          anyOf:
            - type: string
            - type: 'null'
        check_out_time:
          anyOf:
            - type: string
            - type: 'null'
        highlights:
          items:
            type: string
          type: array
          default: []
        traffic_desc:
          anyOf:
            - type: string
            - type: 'null'
        amenity_groups:
          items:
            $ref: '#/components/schemas/TripAmenityGroup'
          type: array
          default: []
        nearby_places:
          items:
            $ref: '#/components/schemas/TripNearbyPlace'
          type: array
          default: []
        policies:
          items:
            $ref: '#/components/schemas/TripPolicy'
          type: array
          default: []
        reservation_tips:
          items:
            $ref: '#/components/schemas/TripReservationTip'
          type: array
          default: []
        image:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    TripScoreDetail:
      properties:
        '@type':
          type: string
          default: TripScoreDetail
        name:
          type: string
        score:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - name
    TripAmenityGroup:
      properties:
        '@type':
          type: string
          default: TripAmenityGroup
        name:
          type: string
        amenities:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - name
    TripNearbyPlace:
      properties:
        '@type':
          type: string
          default: TripNearbyPlace
        name:
          type: string
        type:
          anyOf:
            - type: string
            - type: 'null'
        distance:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    TripPolicy:
      properties:
        '@type':
          type: string
          default: TripPolicy
        items:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - title
    TripReservationTip:
      properties:
        '@type':
          type: string
          default: TripReservationTip
        content:
          type: string
      type: object
      required:
        - title
        - content
    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
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````