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

# /agoda/hotels

> Get full Agoda hotel details by property id (or hotel URL): name, property type, star rating, full address, coordinates, description, check-in/check-out times, guest review score with category subscores, guest recommendation scores, per-aspect review tags, guest review snippets, AI review summary, property highlights, favorite features, location highlights, facility highlights, grouped amenities, useful information (year opened, number of rooms, floors), property policies (children, adult, extra bed), city ranking metrics, host response rate, infant cot availability, nearby places, nearby airports and transport, official photos, guest photos and video.

**Price:** 10 credits

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



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/agoda/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/agoda/hotels:
    post:
      tags:
        - /agoda
      summary: /agoda/hotels
      description: >-
        Get full Agoda hotel details by property id (or hotel URL): name,
        property type, star rating, full address, coordinates, description,
        check-in/check-out times, guest review score with category subscores,
        guest recommendation scores, per-aspect review tags, guest review
        snippets, AI review summary, property highlights, favorite features,
        location highlights, facility highlights, grouped amenities, useful
        information (year opened, number of rooms, floors), property policies
        (children, adult, extra bed), city ranking metrics, host response rate,
        infant cot availability, nearby places, nearby airports and transport,
        official photos, guest photos and video.


        **Price:** 10 credits


        **⚠️ Common errors:** 412: Hotel not found (well-formed but nonexistent
        property id)
      operationId: __api_agoda_hotels_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgodaHotelsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgodaHotel'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgodaHotelsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        hotel:
          type: string
          minLength: 1
      type: object
      required:
        - hotel
    AgodaHotel:
      properties:
        '@type':
          type: string
          default: AgodaHotel
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        property_type:
          anyOf:
            - type: string
            - type: 'null'
        accommodation_type:
          anyOf:
            - type: string
            - type: 'null'
        star_rating:
          anyOf:
            - type: number
            - type: 'null'
        is_luxury:
          anyOf:
            - type: boolean
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        area:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        city_id:
          anyOf:
            - type: integer
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        country_code:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
        check_in_time:
          anyOf:
            - type: string
            - type: 'null'
        check_out_time:
          anyOf:
            - type: string
            - type: 'null'
        is_infant_cot_available:
          anyOf:
            - type: boolean
            - type: 'null'
        response_rate:
          anyOf:
            - type: number
            - type: 'null'
        ranking:
          anyOf:
            - $ref: '#/components/schemas/AgodaPropertyRanking'
            - type: 'null'
        review_score:
          anyOf:
            - $ref: '#/components/schemas/AgodaReviewScore'
            - type: 'null'
        recommendation_score:
          anyOf:
            - type: integer
            - type: 'null'
        frequent_traveller_recommendation_score:
          anyOf:
            - type: integer
            - type: 'null'
        review_tags:
          items:
            $ref: '#/components/schemas/AgodaReviewTag'
          type: array
          default: []
        review_snippets:
          items:
            $ref: '#/components/schemas/AgodaReviewSnippet'
          type: array
          default: []
        ai_summary_positive:
          anyOf:
            - type: string
            - type: 'null'
        ai_summary_negative:
          anyOf:
            - type: string
            - type: 'null'
        gold_circle_year:
          anyOf:
            - type: integer
            - type: 'null'
        highlights:
          items:
            type: string
          type: array
          default: []
        favorite_features:
          items:
            type: string
          type: array
          default: []
        location_highlights:
          items:
            type: string
          type: array
          default: []
        facility_highlights:
          items:
            type: string
          type: array
          default: []
        amenity_groups:
          items:
            $ref: '#/components/schemas/AgodaAmenityGroup'
          type: array
          default: []
        info_groups:
          items:
            $ref: '#/components/schemas/AgodaInfoGroup'
          type: array
          default: []
        policies:
          anyOf:
            - $ref: '#/components/schemas/AgodaPolicies'
            - type: 'null'
        nearby_places:
          items:
            $ref: '#/components/schemas/AgodaNearbyPlace'
          type: array
          default: []
        nearby_properties:
          items:
            $ref: '#/components/schemas/AgodaNearbyProperty'
          type: array
          default: []
        images:
          items:
            type: string
          type: array
          default: []
        ugc_images:
          items:
            type: string
          type: array
          default: []
        video_url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    AgodaPropertyRanking:
      properties:
        '@type':
          type: string
          default: AgodaPropertyRanking
        property_count:
          anyOf:
            - type: integer
            - type: 'null'
        metrics:
          items:
            $ref: '#/components/schemas/AgodaRankingMetric'
          type: array
          default: []
      type: object
    AgodaReviewScore:
      properties:
        '@type':
          type: string
          default: AgodaReviewScore
        score:
          anyOf:
            - type: number
            - type: 'null'
        max_score:
          anyOf:
            - type: integer
            - type: 'null'
        review_count:
          anyOf:
            - type: integer
            - type: 'null'
        grades:
          items:
            $ref: '#/components/schemas/AgodaReviewGrade'
          type: array
          default: []
      type: object
    AgodaReviewTag:
      properties:
        '@type':
          type: string
          default: AgodaReviewTag
        name:
          type: string
        positive_percentage:
          anyOf:
            - type: number
            - type: 'null'
        rating_type:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    AgodaReviewSnippet:
      properties:
        '@type':
          type: string
          default: AgodaReviewSnippet
        text:
          type: string
        rating:
          anyOf:
            - type: number
            - type: 'null'
        author:
          anyOf:
            - type: string
            - type: 'null'
        demographic:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        country_code:
          anyOf:
            - type: string
            - type: 'null'
        created_at:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - text
    AgodaAmenityGroup:
      properties:
        '@type':
          type: string
          default: AgodaAmenityGroup
        name:
          type: string
        amenities:
          items:
            type: string
          type: array
          default: []
      type: object
      required:
        - name
    AgodaInfoGroup:
      properties:
        '@type':
          type: string
          default: AgodaInfoGroup
        name:
          type: string
        items:
          items:
            $ref: '#/components/schemas/AgodaInfoItem'
          type: array
          default: []
      type: object
      required:
        - name
    AgodaPolicies:
      properties:
        '@type':
          type: string
          default: AgodaPolicies
        children:
          anyOf:
            - $ref: '#/components/schemas/AgodaChildrenPolicy'
            - type: 'null'
        adult:
          items:
            type: string
          type: array
          default: []
        extra_bed:
          items:
            type: string
          type: array
          default: []
        additional:
          items:
            type: string
          type: array
          default: []
      type: object
    AgodaNearbyPlace:
      properties:
        '@type':
          type: string
          default: AgodaNearbyPlace
        name:
          type: string
        distance_km:
          anyOf:
            - type: number
            - type: 'null'
        type_name:
          anyOf:
            - type: string
            - type: 'null'
        abbr:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    AgodaNearbyProperty:
      properties:
        '@type':
          type: string
          default: AgodaNearbyProperty
        category:
          type: string
        places:
          items:
            $ref: '#/components/schemas/AgodaNearbyPlace'
          type: array
          default: []
      type: object
      required:
        - category
    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
    AgodaRankingMetric:
      properties:
        '@type':
          type: string
          default: AgodaRankingMetric
        name:
          type: string
        rank:
          anyOf:
            - type: integer
            - type: 'null'
        absolute_value:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - name
    AgodaReviewGrade:
      properties:
        '@type':
          type: string
          default: AgodaReviewGrade
        name:
          type: string
        score:
          anyOf:
            - type: number
            - type: 'null'
        city_average:
          anyOf:
            - type: number
            - type: 'null'
      type: object
      required:
        - name
    AgodaInfoItem:
      properties:
        '@type':
          type: string
          default: AgodaInfoItem
        name:
          type: string
        value:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - name
    AgodaChildrenPolicy:
      properties:
        '@type':
          type: string
          default: AgodaChildrenPolicy
        stay_free_min_age:
          anyOf:
            - type: integer
            - type: 'null'
        stay_free_max_age:
          anyOf:
            - type: integer
            - type: 'null'
        details:
          items:
            $ref: '#/components/schemas/AgodaChildPolicyDetail'
          type: array
          default: []
      type: object
    AgodaChildPolicyDetail:
      properties:
        '@type':
          type: string
          default: AgodaChildPolicyDetail
        is_infant:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
      required:
        - title
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````