Felo API PlatformFelo API Platform
全部 DataForSEO 端点
v0.2.0-beta
OpenAPI 3.1.0

实时 Google 酒店信息高级版

服务器:https://openapi.felo.ai
客户端库

DataForSEO

​

SEO, search-engine results, keyword research, backlinks and AI visibility data.

实时 Google 酒店信息高级版

​

单个酒店的 Google 列表信息:客房、设施、价格以及 Google 展示的预订选项。采用 DataForSEO 的信封结构:数据位于 tasks[0].result,结果状态位于 tasks[0].status_code——被拒绝的请求仍会返回 HTTP 200。原始形式是 post_dataforseo_business_google_hotel_info_live_html,排队形式是 post_dataforseo_business_google_hotel_info_submit。要查找酒店,请先使用 post_dataforseo_business_google_hotel_searches_live。

计费参考

  • 计量方式:按上报的响应成本计量。
  • 参考请求估算:0.2428 美元。
  • 参考客户倍率:1.0。不得对已结算的客户金额再次应用。

仅供参考的元数据,不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

请求体
application/json
  • 类型: array (object | null)[]
    • adults
      类型: integer | null

      成人数
      可选字段
      如果未指定此字段,默认使用两名成人
      示例:
      1

    • check_in
      类型: string | null

      入住日期
      可选字段
      如果未指定此字段,默认使用明天的日期;
      该值不得早于今天的日期
      日期格式:"yyyy-mm-dd"
      示例:
      "2019-01-15"

    • check_out
      类型: string | null

      退房日期
      可选字段
      如果未指定此字段,我们的系统默认采用两天后的日期;
      注意:该值不能小于或等于 check_in;
      check_in 与 check_out 之间的范围不能超过 30 天
      日期格式:"yyyy-mm-dd"
      示例:
      "2019-01-15"

    • children
      类型: array string[] | null

      儿童人数与年龄
      可选字段
      如果未指定此字段,搜索将不包含儿童;

      如需包含一名 14 岁儿童,请设置以下值:
      [14]
      如需包含一名 13 岁儿童和一名 8 岁儿童,请设置以下值:
      [13,8]

    • currency
      类型: string | null

      货币
      可选字段
      示例:
      "USD"

    • hotel_identifier
      类型: string

      唯一酒店标识符
      必填字段
      酒店实体在 Google 搜索中的唯一标识符;
      可通过向 Advanced Google SERP API 发起请求获取该值(包含在响应中的 hotels 元素内),或使用 Business Data API 的 Hotel Searches 端点
      示例:
      ChYIq6SB--i6p6cpGgovbS8wN2s5ODZfEAE

    • language_code
      类型: string

      搜索引擎语言代码
      未指定 language_name 时为必填字段
      如果使用此字段,则无需指定 language_name
      可单独向 https://api.dataforseo.com/v3/business_data/google/languages 发起请求,获取可用语言及其 language_code 列表
      示例:
      en

    • language_name
      类型: string

      搜索引擎语言全名
      未指定 language_code 时为必填字段
      如果使用此字段,则无需指定 language_code
      可单独向 https://api.dataforseo.com/v3/business_data/google/languages 发起请求,获取带 language_name 的可用语言列表
      示例:
      English

    • load_prices_by_dates
      类型: boolean | null

      按日期加载酒店住宿价格
      可选字段
      如果将此参数指定为 true,响应将包含按日期划分的酒店住宿价格数组 prices_by_dates
      如果使用此参数,每次请求将按基础价格的两倍收费

    • location_code
      类型: integer

      搜索引擎地点代码
      未指定 location_name 或 location_coordinate 时为必填字段
      如果使用此字段,则无需指定 location_name 或 location_coordinate
      可单独向 https://api.dataforseo.com/v3/business_data/google/locations 发起请求,获取带 location_code 的可用地点列表
      示例:
      2840

    • location_coordinate
      类型: string

      地点的 GPS 坐标
      未指定 location_name 或 location_code 时为必填字段
      如果使用此字段,则无需指定 location_name 或 location_code
      location_coordinate 参数应按 "latitude, longitude" 格式指定
      "latitude" 和 "longitude" 的最大小数位数为 7
      注意:如果使用坐标设置地点,搜索将在最近的居民点进行;
      示例:
      53.476225,-2.243572

    • location_name
      类型: string

      搜索引擎地点全名
      未指定 location_code 或 location_coordinate 时为必填字段
      如果使用此字段,则无需指定 location_code 或 location_coordinate
      可单独向 https://api.dataforseo.com/v3/business_data/google/locations 发起请求,获取带 location_name 的可用地点列表
      示例:
      London,England,United Kingdom

    • prices_date_range
      类型: string | null

      用于获取每日价格数据的预设时段
      可选字段
      要使用此参数,必须将 load_prices_by_dates 指定为 true
      如果未指定 prices_start_date ,开始日期将设为 check_in 日期
      可能的值:month、three_months、six_months、year
      默认值:month

    • prices_end_date
      类型: string | null

      按日期加载价格的结束日期
      可选字段
      要使用此参数,必须将 load_prices_by_dates 指定为 true
      如果未指定此参数,你将获得当月按日期划分的价格
      日期格式:yyyy-mm-dd
      示例:
      2025-05-21

    • prices_start_date
      类型: string | null

      按日期加载价格的开始日期
      可选字段
      要使用此参数,必须将 load_prices_by_dates 指定为 true
      如果未指定此参数,开始日期将设为 check_in 日期
      日期格式:yyyy-mm-dd
      示例:
      2025-05-20

    • tag
      类型: string | null

      用户自定义任务标识符
      可选字段
      字符数上限为 255
      可使用此参数标识任务,并将其与结果对应
      可在响应的 data 对象中找到指定的 tag 值

响应
  • 200
    类型: object | null · Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveAdvancedResponseInfo
    • cost
      类型: number | null 格式: double

      任务总费用,美元

    • status_code
      类型: integer | null

      通用状态码 完整响应码列表见此处

    • status_message
      类型: string | null

      通用信息性消息 完整的一般信息性消息列表见此处

    • tasks
      类型: array (object | null)[] | null

      任务数组

      • 类型: object | null · Response36Afe1097B20_BusinessDataGoogleHotelInfoLiveAdvancedTaskInfo
        • cost
          类型: number | null 格式: double

          任务总费用,美元

        • data
          类型: object | null

          包含你在 POST 请求中指定的相同参数

          • propertyName
            类型: object | null
        • id
          类型: string | null

          任务标识符 我们系统中 UUID 格式的唯一任务标识符

        • path
          类型: array (string | null)[] | null

          URL 路径

        • result
          类型: array (object | null)[] | null

          结果数组

          • about
            类型: object | null · Response36Afe1097B20_HotelAboutInfo

            酒店信息

            • amenities
              类型: array (object | null)[] | null

              酒店设施
              关于酒店设施的信息

              • category
                类型: string | null

                设施的标准化类别

              • category_label
                类型: string | null

                类别的标签

              • items
                类型: array (object | null)[] | null

                具体设施和详情

                • amenity
                  类型: string | null

                  标准化设施名称

                • amenity_label
                  类型: string | null

                  显示的设施名称

                • hint
                  类型: string | null

                  设施的标准化详情

                • hint_label
                  类型: string | null

                  显示的设施详情

                • is_available
                  类型: boolean | null

                  表示该 amenity 在酒店中是否可用

            • check_in_time
              类型: object | null · Response36Afe1097B20_TimeInfo

              酒店入住时间
              酒店列表中标注的入住时间

              • hour
                类型: integer | null

                24 小时制的小时

              • minute
                类型: integer | null

                分钟

            • check_out_time
              类型: object | null · Response36Afe1097B20_TimeInfo

              酒店退房时间
              酒店列表中标注的退房时间

              • hour
                类型: integer | null

                24 小时制的小时

              • minute
                类型: integer | null

                分钟

            • description
              类型: string | null

              酒店的描述
              收集结果所针对的酒店实体的描述

            • domain
              类型: string | null

              酒店域名
              酒店网站的域名

            • full_address
              类型: string | null

              酒店的完整地址
              按标准化格式标注的酒店地址

            • popular_amenities
              类型: array (object | null)[] | null

              酒店设施
              标注为“热门”的酒店设施的相关信息

              • amenity
                类型: string | null

                标准化设施名称

              • amenity_label
                类型: string | null

                显示的设施名称

              • hint
                类型: string | null

                设施的标准化详情

              • hint_label
                类型: string | null

                显示的设施详情

              • is_available
                类型: boolean | null

                表示该 amenity 在酒店中是否可用

            • sub_descriptions
              类型: array (string | null)[] | null

              酒店的附加描述
              除描述之外提供的酒店详情

            • url
              类型: string | null

              酒店 URL
              列表中标注的酒店网站 URL

          • address
            类型: string | null

            酒店地址
            酒店的实体地址

          • check_url
            类型: string | null

            搜索引擎结果的直接 URL
            可用于确保我们提供了准确的结果

          • datetime
            类型: string | null

            收到结果的日期和时间
            采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
            示例:
            2019-11-15 12:57:46 +00:00

          • hotel_identifier
            类型: string | null

            POST 数组中收到的标识符
            此字段将包含设置任务时指定的 hotel_identifier 参数;
            示例:
            CgoI-KWyzenM_MV3EAE

          • language_code
            类型: string | null

            POST 数组中的语言代码

          • location
            类型: object | null · Response36Afe1097B20_HotelLocationInfo

            酒店位置信息
            有关酒店所在位置的信息

            • latitude
              类型: number | null

              酒店纬度
              酒店位置的纬度坐标
              示例:
              39.4806397

            • location_chain
              类型: array (object | null)[] | null

              位置链的元素
              位置链中每个元素的附加参数

              • card_id
                类型: string | null

                卡片标识符

              • cid
                类型: string | null

                客户 ID
                在这篇帮助中心文章中了解该标识符的更多信息

              • feature_id
                类型: string | null

                功能标识符
                在这篇帮助中心文章中了解该标识符的更多信息

              • title
                类型: string | null

                地点链中元素的标题

            • longitude
              类型: number | null

              酒店经度
              酒店位置的纬度坐标
              示例:
              -106.0512973

            • maps_url
              类型: string | null

              酒店在 Google 地图中位置的 URL

            • neighborhood
              类型: string | null

              酒店所在街区的名称

            • neighborhood_description
              类型: string | null

              酒店所在街区的描述

            • overall_score
              类型: number | null

              酒店位置的总体评分
              表示酒店位置在 1 到 5 分范围内的总体评分;
              基于酒店与附近景点和餐厅、交通及机场的邻近程度计算得出;
              注意,各项标准在总体评分中并非等权重

            • score_by_categories
              类型: object | null

              酒店位置的类别评分
              与酒店位置各类别相关的评分,表示与附近景点、餐厅、交通及机场的邻近程度;

              • propertyName
                类型: number | null 格式: double
          • location_code
            类型: integer | null

            POST 数组中的位置代码

          • overview_images
            类型: array (string | null)[] | null

            酒店概览中显示的图片
            包含酒店概览中所显示图片 URL 的数组

          • phone
            类型: string | null

            酒店电话号码
            酒店的联系电话

          • prices
            类型: object | null · Response36Afe1097B20_HotelPriceInfo

            酒店实体的价格详情
            包含酒店价格的信息

            • check_in
              类型: string | null

              入住日期和时间
              UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
              示例:
              2019-11-15 12:57:46 +00:00

            • check_out
              类型: string | null

              退房日期和时间
              UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
              示例:
              2019-11-15 12:57:46 +00:00

            • currency
              类型: string | null

              价格货币
              默认应用 USD,除非在 POST 数组中指定

            • discount_text
              类型: string | null

              所应用折扣的说明

            • items
              类型: array (object | null)[] | null

              遇到的条目类型
              items 数组中出现的搜索引擎结果类型;
              可能的条目类型:hotel_search_item

              • currency
                类型: string | null

                价格货币
                默认应用 USD,除非在 POST 数组中指定

              • domain
                类型: string | null

                第三方域名 带有价格信息的第三方网站页面的域名

              • free_cancellation_until
                类型: string | null

                可免费取消的截止日期 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00” 如果所选日期不提供免费取消,则等于 null

              • is_paid
                类型: boolean | null

                表示付费酒店信息
                如果为 true,相关的 hotel_search_item 是付费广告
                如果为 false,相关的 hotel_search_item 是自然酒店信息

              • offers
                类型: array (object | null)[] | null

                特色价格优惠

                • currency
                  类型: string | null

                  价格货币
                  默认应用 USD,除非在 POST 数组中指定

                • free_cancellation_until
                  类型: string | null

                  可免费取消的截止日期 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00” 如果所选日期不提供免费取消,则等于 null

                • max_visitors
                  类型: integer | null

                  访客数量上限 该价格优惠适用的最大访客数量

                • offer_images
                  类型: array (string | null)[] | null

                  价格优惠图片 价格优惠中所展示图片的 URL

                • price
                  类型: number | null

                  每晚价格

                • title
                  类型: string | null

                  酒店标题

                • type
                  类型: string | null

                  元素类型

                • url
                  类型: string | null

                  价格优惠的 URL 价格优惠所在网站页面的 URL

              • official_site
                类型: boolean | null
              • price
                类型: number | null

                每晚价格

              • title
                类型: string | null

                酒店标题

              • type
                类型: string | null

                元素类型

              • url
                类型: string | null

                第三方页面 URL 带有价格信息的第三方网站页面的 URL

            • price
              类型: number | null

              每晚价格

            • price_without_discount
              类型: number | null 格式: int64

              未应用折扣的每晚完整价格

            • prices_by_dates
              类型: array (object | null)[] | null
              • check_in_date
                类型: string | null
              • check_out_date
                类型: string | null
              • currency
                类型: string | null

                价格货币
                默认应用 USD,除非在 POST 数组中指定

              • price
                类型: number | null

                每晚价格

            • visitors
              类型: integer | null

              此价格对应的酒店访客数量

          • reviews
            类型: object | null · Response36Afe1097B20_HotelReviewInfo

            按标准划分的酒店评价
            有关酒店实体评价的信息

            • mentions
              类型: array (object | null)[] | null

              酒店提及
              按标准划分的酒店评论相关信息

              • negative_count
                类型: integer | null 格式: int64

                按标准的负面评论数

              • positive_count
                类型: integer | null 格式: int64

                按标准的正面评论数

              • positive_score
                类型: number | null

                按标准的正面得分

              • title
                类型: string | null

                已评估标准的标题

              • total_count
                类型: integer | null 格式: int64

                按标准的所有评论数

              • visible_by_default
                类型: boolean | null

                元素默认可见
                表示评论元素是否默认可见

            • other_sites_reviews
              类型: array (object | null)[] | null

              第三方网站上的评论
              来自第三方网站的评论

              • rating
                类型: object | null · Response36Afe1097B20_RatingInfo

                评论中的评分
                第三方网站上评论中包含的评分信息

                • rating_max
                  类型: integer | null

                  rating_type 的最大值

                • rating_type
                  类型: string | null

                  评分类型 此处可以找到以下元素:Max5、Percents、CustomMax

                • value
                  类型: number | null 格式: double

                  评分的值

                • votes_count
                  类型: integer | null 格式: int64

                  反馈数量

              • review_text
                类型: string | null

                评论文本
                评论的文本

              • title
                类型: string | null

                评论标题
                包含评论最初出现的第三方网站名称

              • url
                类型: string | null

                评论 URL
                指向评论最初出现的第三方网站的 URL

            • rating_distribution
              类型: object | null

              按投票数划分的评分分布
              1 到 5 分范围内各评分对应的投票分布

              • propertyName
                类型: integer | null 格式: Int64
            • value
              类型: number | null

              基于客户投票的酒店总体评分

            • votes_count
              类型: integer | null 格式: int64

              客户投票数
              参与酒店评分计算的客户投票数

          • stars
            类型: integer | null

            酒店星级评分
            1 到 5 星的星级评分,显示在酒店摘要中的评价评分之后

          • stars_description
            类型: string | null

            酒店星级评分
            1 到 5 星的星级评分,显示在酒店摘要中的评价评分之后

          • title
            类型: string | null

            酒店标题
            收集结果所针对的酒店实体的标题

        • result_count
          类型: integer | null 格式: int64

          result 数组中的元素数

        • status_code
          类型: integer | null

          任务的状态码 由 DataForSEO 生成,范围如下:10000-60000 完整响应码列表见此处

        • status_message
          类型: string | null

          任务的信息性消息 完整的一般信息性消息列表见此处

        • time
          类型: string | null

          执行时间,秒

    • tasks_count
      类型: integer | null 格式: int64

      tasks 数组中的任务数

    • tasks_error
      类型: integer | null 格式: int64

      tasks 数组中返回错误的任务数

    • time
      类型: string | null

      总执行时间,秒

    • version
      类型: string | null

      API 的当前版本

    application/json
  • 400

    无法处理该请求。请检查请求参数。

  • 401

    需要有效的 Felo API 密钥。

  • 402

    由于未满足计费要求,请求无法继续。

  • 403

    该账户无权执行此操作。

  • 429

    已达到请求或支出限额。

  • 502

    服务无法完成该请求。

  • 503

    API 或计费服务暂时不可用。

  • 504

    服务在处理请求时超时。

  • default

    错误响应;上游透传响应可能采用提供方格式

    application/json
Request Example for post/v1/beta/dataforseo/business_data/google/hotel_info/live/advanced
curl https://openapi.felo.ai/v1/beta/dataforseo/business_data/google/hotel_info/live/advanced \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "language_code": "en",
    "location_name": "New York,New York,United States",
    "hotel_identifier": "CgoI-KWyzenM_MV3EAE"
  }
]'
{
  "version": null,
  "status_code": null,
  "status_message": null,
  "time": null,
  "cost": null,
  "tasks_count": null,
  "tasks_error": null,
  "tasks": [
    {
      "id": null,
      "status_code": null,
      "status_message": null,
      "time": null,
      "cost": null,
      "result_count": null,
      "path": [
        null
      ],
      "data": null,
      "result": [
        {
          "hotel_identifier": null,
          "location_code": null,
          "language_code": null,
          "check_url": null,
          "datetime": null,
          "title": null,
          "stars": null,
          "stars_description": null,
          "address": null,
          "phone": null,
          "about": {
            "description": null,
            "sub_descriptions": [
              "[Max Depth Exceeded]"
            ],
            "check_in_time": "[Max Depth Exceeded]",
            "check_out_time": "[Max Depth Exceeded]",
            "full_address": null,
            "domain": null,
            "url": null,
            "amenities": [
              "[Max Depth Exceeded]"
            ],
            "popular_amenities": [
              "[Max Depth Exceeded]"
            ]
          },
          "location": {
            "neighborhood": null,
            "neighborhood_description": null,
            "maps_url": null,
            "overall_score": null,
            "score_by_categories": null,
            "latitude": null,
            "longitude": null,
            "location_chain": [
              "[Max Depth Exceeded]"
            ]
          },
          "reviews": {
            "value": null,
            "votes_count": null,
            "mentions": [
              "[Max Depth Exceeded]"
            ],
            "rating_distribution": null,
            "other_sites_reviews": [
              "[Max Depth Exceeded]"
            ]
          },
          "overview_images": [
            null
          ],
          "prices": {
            "price": null,
            "price_without_discount": null,
            "currency": null,
            "discount_text": null,
            "check_in": null,
            "check_out": null,
            "visitors": null,
            "items": [
              "[Max Depth Exceeded]"
            ],
            "prices_by_dates": [
              "[Max Depth Exceeded]"
            ]
          }
        }
      ]
    }
  ]
}
Live Google Hotel Info Advanced

需要帮助?