UnifAPI Hotels API

Live hotel search and detail. Responses include ranked hotel listings and full hotel profiles with class rating, guest reviews, images, and nightly prices.

GitHub OpenAPI

Operations 2

POST /hotels/info Get Hotels detail #
POST /hotels/search Search Hotels #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/unifapi-com:unifapi-com-hotels-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

unifapi-com-hotels-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Unifapi Com Hotels API
  version: 0.0.1
  contact:
    name: UnifAPI
    url: https://unifapi.com
    email: support@unifapi.com
  license:
    name: Proprietary
    url: https://unifapi.com/legal/terms-of-service
  x-api-version: '2026-07-01'
  x-versioning-policy: https://unifapi.com/versioning.md
  description: 'Operations tagged hotels across 3 of this provider''s published API definitions: api-unifapi-com-openapi.yml, mcp-unifapi-com-openapi.yml, unifapi-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.unifapi.com
  description: Production
security:
- bearerAuth: []
tags:
- name: hotels
  description: Live hotel search and detail. Responses include ranked hotel listings and full hotel profiles with class rating, guest reviews, images, and nightly prices.
paths:
  /hotels/info:
    post:
      operationId: postHotelsInfo
      summary: Get Hotels detail
      description: Run one live Hotels detail lookup for a hotel id from /hotels/search and receive the full profile, including class rating, address, phone, description, guest reviews, images, and prices.
      tags:
      - hotels
      x-unifapi-billing:
        mode: record_metered
        credits_per_record: 1
        minimum_credits: 10
      security:
      - bearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HotelInfoRequest'
      responses:
        '200':
          description: OK
          headers:
            RateLimit-Policy:
              description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
              schema:
                type: string
            RateLimit:
              description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                    description: UnifAPI request id for support and ledger correlation.
                  data:
                    $ref: '#/components/schemas/HotelInfoResponse'
                  billing:
                    $ref: '#/components/schemas/Billing'
                required:
                - request_id
                - data
                - billing
        '400':
          description: Validation or invalid-id error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, invalid, disabled, revoked, or expired UnifAPI API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient workspace credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          headers:
            RateLimit-Policy:
              description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
              schema:
                type: string
            RateLimit:
              description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before retrying. Present when UnifAPI itself enforced the quota.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Source error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Source unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - $ref: '#/components/parameters/UnifapiVersion'
      - $ref: '#/components/parameters/IdempotencyKey'
    servers:
    - url: https://api.unifapi.com
      description: Production
  /hotels/search:
    post:
      operationId: postHotelsSearch
      summary: Search Hotels
      description: Run one live Hotels search and receive ranked hotel listings for a location and stay dates, including hotel id, class rating, guest reviews, and nightly prices. Pass a hotel id to /hotels/info for full details.
      tags:
      - hotels
      x-unifapi-billing:
        mode: record_metered
        credits_per_record: 1
        minimum_credits: 10
      security:
      - bearerAuth: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HotelSearchRequest'
      responses:
        '200':
          description: OK
          headers:
            RateLimit-Policy:
              description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
              schema:
                type: string
            RateLimit:
              description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                    description: UnifAPI request id for support and ledger correlation.
                  data:
                    $ref: '#/components/schemas/HotelSearchResponse'
                  billing:
                    $ref: '#/components/schemas/Billing'
                required:
                - request_id
                - data
                - billing
        '400':
          description: Validation or invalid-id error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing, invalid, disabled, revoked, or expired UnifAPI API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient workspace credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          headers:
            RateLimit-Policy:
              description: Quota policy in IETF structured-field form, e.g. `"api-key";q=60;w=60` (`q` = requests per window, `w` = window in seconds).
              schema:
                type: string
            RateLimit:
              description: Current quota state in IETF structured-field form, e.g. `"api-key";r=42;t=60` (`r` = requests remaining, `t` = seconds until the window resets).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests allowed per window. Also sent as `X-RateLimit-Limit`.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests still available in the current window. Also sent as `X-RateLimit-Remaining`. Responses that never resolved an API key report the full policy budget.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the current window resets. Also sent as `X-RateLimit-Reset`.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before retrying. Present when UnifAPI itself enforced the quota.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '502':
          description: Source error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Source unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      parameters:
      - $ref: '#/components/parameters/UnifapiVersion'
      - $ref: '#/components/parameters/IdempotencyKey'
    servers:
    - url: https://api.unifapi.com
      description: Production
components:
  parameters:
    UnifapiVersion:
      name: Unifapi-Version
      in: header
      required: false
      description: 'Pin the API version an integration was built against (date-based, e.g. `2026-07-01`). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with `Deprecation` and `Sunset` response headers. The served version is echoed in every response''s `Unifapi-Version` header. Policy: https://unifapi.com/versioning.md'
      schema:
        type: string
        default: '2026-07-01'
        enum:
        - '2026-07-01'
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: 'Client-supplied unique key that makes a write request safe to retry. If a request with the same key was already processed, the original response is replayed (with `Idempotency-Replayed: true`) instead of executing — and billing — again. Send a fresh UUID per logical operation. Best-effort with a 24h window.'
      schema:
        type: string
        maxLength: 255
  schemas:
    HotelExtras:
      type: object
      additionalProperties: {}
      description: Additional descriptive detail such as sub-descriptions and amenity categories.
    HotelInfoRequest:
      type: object
      properties:
        hotel_identifier:
          type: string
          minLength: 1
          maxLength: 400
          description: Unique hotel id returned by /hotels/search.
        location:
          $ref: '#/components/schemas/HotelInfoLocation'
        language:
          type: string
          minLength: 2
          maxLength: 80
          description: Search language as an ISO code or full language name. Defaults to en.
        check_in:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: Check-in date. Date in YYYY-MM-DD format.
        check_out:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: Check-out date. Date in YYYY-MM-DD format.
        currency:
          type: string
          minLength: 3
          maxLength: 3
          description: ISO 4217 currency code for prices, such as USD.
        adults:
          type: integer
          minimum: 1
          maximum: 30
          description: Number of adult guests.
        children:
          type: array
          items:
            type: integer
            minimum: 0
            maximum: 17
          maxItems: 10
          description: Ages of children staying, used to refine availability and pricing.
        load_prices_by_dates:
          type: boolean
          description: When true, return a daily price calendar across the requested date range instead of a single stay price.
        prices_start_date:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: Start date for the daily price calendar. Date in YYYY-MM-DD format.
        prices_end_date:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: End date for the daily price calendar. Date in YYYY-MM-DD format.
        prices_date_range:
          type: string
          minLength: 1
          maxLength: 40
          description: Predefined period for the daily price calendar, such as next_30_days.
      required:
      - hotel_identifier
    HotelSearchResult:
      type: object
      properties:
        hotel_identifier:
          type: string
          description: Unique hotel id. Pass it to /hotels/info for full details.
        title:
          type: string
          description: Hotel or vacation rental name.
        stars:
          type: integer
          description: Hotel class rating, 1-5.
        is_paid:
          type: boolean
          description: True for paid hotel listings.
        location:
          $ref: '#/components/schemas/HotelSearchGeo'
        reviews:
          allOf:
          - $ref: '#/components/schemas/HotelReviews'
          - description: Aggregate guest rating and review count when present.
        prices:
          allOf:
          - $ref: '#/components/schemas/HotelPrice'
          - description: Nightly price block when present.
        overview_images:
          type: array
          items:
            type: string
          description: Preview image URLs for the hotel when present.
        is_billable:
          type: boolean
          description: Each hotel listing is one billable record.
      required:
      - is_billable
    HotelPlace:
      type: object
      properties:
        neighborhood:
          type: string
          description: Neighborhood where the hotel is located.
        neighborhood_description:
          type: string
        maps_url:
          type: string
          description: Google Maps URL for the hotel location.
        overall_score:
          type: number
          description: Overall location score from 1 to 5.
        score_by_categories:
          type: object
          additionalProperties:
            type: number
          description: Location sub-scores by category, such as transit or things_to_do.
        latitude:
          type: number
          description: Latitude of the hotel on Google Maps.
        longitude:
          type: number
          description: Longitude of the hotel on Google Maps.
        extras:
          allOf:
          - $ref: '#/components/schemas/HotelExtras'
          - description: Additional location detail such as the location chain.
      description: Hotel location details when present.
    HotelPriceByDate:
      type: object
      properties:
        price:
          type: number
          description: Nightly price for this date in the response currency.
        currency:
          type: string
          description: ISO 4217 currency code for the price.
        check_in_date:
          type: string
          description: Check-in date for this calendar entry.
        check_out_date:
          type: string
          description: Check-out date for this calendar entry.
    ErrorBilling:
      type: object
      properties:
        credits_required:
          type: integer
        credits_charged:
          type: integer
          minimum: 0
        records_charged:
          type: integer
          minimum: 0
        balance_remaining:
          type: integer
        truncated_due_to_balance:
          type: boolean
      required:
      - balance_remaining
      description: Present when the error either exposes recovery metadata or charged usage.
    HotelSearchGeo:
      type: object
      properties:
        latitude:
          type: number
          description: Latitude of the hotel on Google Maps.
        longitude:
          type: number
          description: Longitude of the hotel on Google Maps.
      description: GPS coordinates of the hotel when present.
    HotelPrice:
      type: object
      properties:
        price:
          type: number
          description: Nightly price in the response currency.
        price_without_discount:
          type: number
          description: Full nightly price before any discount, when a discount applies.
        currency:
          type: string
          description: ISO 4217 currency code for the price, such as USD.
        discount_text:
          type: string
          description: Discount label, such as "23% less than usual".
        prices_by_dates:
          type: array
          items:
            $ref: '#/components/schemas/HotelPriceByDate'
          description: Daily price calendar, populated when /hotels/info requests load_prices_by_dates.
        extras:
          allOf:
          - $ref: '#/components/schemas/HotelExtras'
          - description: Additional pricing detail such as per-offer breakdowns and stay metadata.
      description: Stay price or daily price calendar when present.
    HotelAbout:
      type: object
      properties:
        description:
          type: string
          description: Hotel description.
        full_address:
          type: string
          description: Standardised full address of the hotel.
        domain:
          type: string
          description: Domain of the hotel's website.
        url:
          type: string
          description: URL of the hotel's website.
        check_in_time:
          type: string
          description: Listed check-in time as HH:MM (24-hour).
        check_out_time:
          type: string
          description: Listed check-out time as HH:MM (24-hour).
        amenities:
          type: array
          items:
            type: string
          description: Available amenity labels offered by the hotel.
        extras:
          $ref: '#/components/schemas/HotelExtras'
      description: Hotel description, address, website, and amenities when present.
    Billing:
      type: object
      properties:
        credits_charged:
          type: integer
          minimum: 0
        records_charged:
          type: integer
          minimum: 0
        balance_remaining:
          type: integer
          minimum: 0
        truncated_due_to_balance:
          type: boolean
      required:
      - credits_charged
      - records_charged
      - balance_remaining
      - truncated_due_to_balance
    HotelInfoResponse:
      type: object
      properties:
        hotel_identifier:
          type: string
        location:
          type: string
          description: Search location echoed from the request.
        language:
          type: string
        observed_at:
          type: string
        search_url:
          type: string
        title:
          type: string
        stars:
          type: integer
          description: Hotel class rating, 1-5.
        stars_description:
          type: string
        address:
          type: string
        phone:
          type: string
        about:
          $ref: '#/components/schemas/HotelAbout'
        place:
          $ref: '#/components/schemas/HotelPlace'
        reviews:
          $ref: '#/components/schemas/HotelReviews'
        overview_images:
          type: array
          items:
            type: string
        prices:
          $ref: '#/components/schemas/HotelPrice'
      required:
      - hotel_identifier
      - location
      - language
    HotelSearchLocation:
      anyOf:
      - type: string
        minLength: 2
        maxLength: 120
      - type: integer
        exclusiveMinimum: 0
      description: Search location as a country code/name, DataForSEO location code, full location name, or latitude,longitude,radius coordinate string. Defaults to us.
    Error:
      type: object
      properties:
        type:
          type: string
          enum:
          - validation_error
          - invalid_id
          - insufficient_credits
          - unauthorized
          - not_found
          - rate_limited
          - internal_error
          - response_shape_error
          - upstream_error
          - upstream_unavailable
          description: Closed vocabulary - see docs/adr/0003-error-model.md.
        message:
          type: string
        request_id:
          type: string
          description: UnifAPI request id, e.g. `unif_<id>`. Source ids are not exposed.
        issues:
          type: array
          items: {}
          description: Present only when type=validation_error.
        billing:
          $ref: '#/components/schemas/ErrorBilling'
      required:
      - type
      - message
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
      - error
      description: Standard gateway error envelope (ADR 0003 and ADR 0008).
    HotelSearchRequest:
      type: object
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 700
          description: Optional hotel name or search query. Combine with location to scope the search.
        location:
          $ref: '#/components/schemas/HotelSearchLocation'
        language:
          type: string
          minLength: 2
          maxLength: 80
          description: Search language as an ISO code or full language name. Defaults to en.
        limit:
          type: integer
          minimum: 1
          maximum: 100
          description: Number of hotels to return. Defaults to 10.
        check_in:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: Check-in date. Date in YYYY-MM-DD format.
        check_out:
          type: string
          pattern: ^\d{4}-\d{2}-\d{2}$
          description: Check-out date. Date in YYYY-MM-DD format.
        currency:
          type: string
          minLength: 3
          maxLength: 3
          description: ISO 4217 currency code for prices, such as USD.
        adults:
          type: integer
          minimum: 1
          maximum: 30
          description: Number of adult guests.
        children:
          type: array
          items:
            type: integer
            minimum: 0
            maximum: 17
          maxItems: 10
          description: Ages of children staying, used to refine availability and pricing.
        stars:
          type: array
          items:
            type: integer
            minimum: 1
            maximum: 5
          maxItems: 5
          description: Filter to hotels with these class ratings, such as [4, 5].
        min_rating:
          type: number
          minimum: 0
          maximum: 5
          description: Filter to hotels with at least this guest rating.
        sort_by:
          type: string
          enum:
          - relevance
          - lowest_price
          - highest_rating
          - most_reviewed
          description: Sort order for results. Defaults to relevance.
        min_price:
          type: integer
          minimum: 0
          description: Minimum price per night.
        max_price:
          type: integer
          minimum: 0
          description: Maximum price per night.
        free_cancellation:
          type: boolean
          description: When true, only return hotels offering free cancellation.
        is_vacation_rentals:
          type: boolean
          description: When true, search vacation rentals instead of hotels.
        amenities:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 60
          maxItems: 30
          description: Filter to hotels offering these amenities, such as pool or free_wifi.
    HotelInfoLocation:
      anyOf:
      - type: string
        minLength: 2
        maxLength: 120
      - type: integer
        exclusiveMinimum: 0
      description: Search location as a country code/name, DataForSEO location code, full location name, or latitude,longitude,radius coordinate string. Defaults to us.
    HotelSearchResponse:
      type: object
      properties:
        query:
          type: string
        location:
          type: string
        language:
          type: string
        observed_at:
          type: string
        search_url:
          type: string
        result_count:
          type: integer
          description: Number of hotels returned.
        results:
          type: array
          items:
            $ref: '#/components/schemas/HotelSearchResult'
          description: Hotel listings. Each hotel is one billable record.
      required:
      - location
      - language
      - result_count
      - results
    HotelReviews:
      type: object
      properties:
        rating:
          type: number
          description: Aggregate guest rating, typically on a 0-5 scale.
        votes_count:
          type: integer
          description: Number of guest votes behind the rating.
        rating_distribution:
          type: object
          additionalProperties:
            type: number
          description: Vote counts keyed by star rating ("1"-"5") when present.
        extras:
          allOf:
          - $ref: '#/components/schemas/HotelExtras'
          - description: Additional review detail such as criterion mentions and third-party site reviews.
      description: Aggregate guest rating and review breakdown when present.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: UnifAPI API key. Provider credentials are managed by UnifAPI.
externalDocs:
  url: https://docs.unifapi.com
  description: UnifAPI developer documentation
x-refined-from:
- api-unifapi-com-openapi.yml
- mcp-unifapi-com-openapi.yml
- unifapi-com-openapi.yml
x-payment-info:
  protocol: MPP
  scheme: Payment
  status: 402
  errorType: insufficient_credits
  currency: USD
  unit: credit
  unitPrice: '0.001'
  network: stripe
  topUpUrl: https://api.unifapi.com/dashboard/billing
  pricingUrl: https://unifapi.com/pricing
  docsUrl: https://unifapi.com/pricing.md
  description: 'Premium public-data operations are billed per record in prepaid credits. On HTTP 402 the response carries a WWW-Authenticate: Payment challenge plus a JSON body with the credits required and the current balance. Top up credits at the topUpUrl, then retry with the same request (send an Idempotency-Key header to make the retry safe).'
x-rate-limit:
  policy: api-key
  limit: 60
  windowSeconds: 60
  scope: api_key
  errorType: rate_limited
  status: 429
  headers:
  - RateLimit-Policy
  - RateLimit
  - RateLimit-Limit
  - RateLimit-Remaining
  - RateLimit-Reset
  - X-RateLimit-Limit
  - X-RateLimit-Remaining
  - X-RateLimit-Reset
  - Retry-After
  docsUrl: https://unifapi.com/auth.md
  description: 'Every response carries the quota that applies to it: 60 requests per 60s per API key, as the IETF `RateLimit`/`RateLimit-Policy` structured fields plus the `RateLimit-Limit`/`-Remaining`/`-Reset` triple and `X-RateLimit-*` aliases. Exceeding the quota returns HTTP 429 with `error.type = rate_limited` and a `Retry-After` header in seconds. Responses that never resolved an API key report the default policy with a full budget.'