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

实时商家列表搜索任务

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

DataForSEO

​

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

实时商家列表搜索任务

​

按 categories、description、title 和 location_coordinate(纬度、经度和半径三元组)搜索 DataForSEO 自有的本地商家列表索引。返回 total_count、count、offset、offset_token 和 items,并使用该令牌分页。采用 DataForSEO 的信封结构:数据位于 tasks[0].result,结果状态位于 tasks[0].status_code——被拒绝的请求仍会返回 HTTP 200。本端点读取索引并立即返回结果;此处的其他端点都会排队对来源执行实时抓取。先从这里开始,只在确有需要时再深入。

计费参考

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

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

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

      商家类别
      可选字段
      指定的类别用于搜索商家列表;
      如果未使用此字段,我们将返回指定位置中发现的商家列表;
      最多可指定 10 个类别

    • description
      类型: string | null

      SERP 中元素的描述
      可选字段
      收集结果所针对的商家实体的描述;
      最多可包含 200 个字符

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

      结果筛选参数数组
      可选字段
      可同时添加多个筛选条件(最多 8 个)
      应在条件之间设置逻辑运算符 and、or
      支持以下运算符:
      regex, not_regex, <, <=, >, >=, =, <>, in, not_in, like, not_like, ilike, not_ilike, match, not_match
      可将 % 运算符与 like、not_like 配合使用,匹配任意长度(含零个字符)的字符串
      示例:
      ["rating.value",">",3]
      可单独向 https://api.dataforseo.com/v3/business_data/business_listings/available_filters 发起请求,获取可用的筛选条件列表
      完整的可用筛选条件列表见此处。

      空对象
    • is_claimed
      类型: boolean | null

      表示商家是否已由其所有者在 Google Maps 上验证
      可选字段

    • limit
      类型: integer | null

      返回的商家数量上限
      可选字段
      默认值:100
      最大值:1000

    • location_coordinate
      类型: string | null

      位置的 GPS 坐标
      可选字段
      location_coordinate 参数应按 "latitude,longitude,radius" 格式指定
      "latitude" 和 "longitude" 的最大小数位数为 7
      "radius" 的值以公里(km)为单位
      "radius" 的最小值:1
      "radius" 的最大值:100000
      示例:
      53.476225,-2.243572,200
      有关如何在此 API 中设置位置参数的更多信息,请参阅我们的帮助中心

    • offset
      类型: integer | null

      返回的商家在结果数组中的偏移量
      可选字段
      默认值:0
      如果指定 10,结果数组中的前十个实体将被跳过,并返回后续实体的数据
      注意:建议仅在检索最多 10,000 条结果时使用此参数
      如需检索超过 10,000 条结果,请改用 offset_token

    • offset_token
      类型: string | null

      用于后续请求的令牌
      可选字段
      在每次请求响应的同名字段中提供;
      使用此参数可在单次请求尝试获取超过 100,000 条结果时避免超时;
      通过指定响应数组中的唯一 offset_token 值,你将获得初始任务的后续结果;
      offset_token 值对每个后续任务都是唯一的
      注意:如果请求中指定了 offset_token,所有其他参数都应与此前的请求保持一致
      有关此参数的更多信息,请参阅我们的 帮助中心

    • order_by
      类型: array string[] | null

      结果排序规则
      可选字段
      可使用与 filters 数组相同的值对结果排序
      可用的排序类型:
      asc - 结果按升序排列
      desc - 结果按降序排列
      应使用逗号设置排序参数
      示例:
      ["rating.value,desc"]注意,单个请求中最多可设置三条排序规则
      应使用逗号分隔多条排序规则
      示例:
      ["rating.value,desc","rating.votes_count,desc"]

    • tag
      类型: string | null

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

    • title
      类型: string | null

      SERP 中元素的标题
      可选字段
      收集结果所针对的商家实体的名称;
      最多可包含 200 个字符

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

      任务总费用,美元

    • status_code
      类型: integer | null

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

    • status_message
      类型: string | null

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

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

      任务数组

      • 类型: object | null · Response36Afe1097B20_BusinessDataBusinessListingsSearchLiveTaskInfo
        • 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

          结果数组

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

            条目类型
            items 数组中的条目数

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

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

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

              附加商家类别
              更详细地描述商家实体所提供服务的其他 Google My Business 类别

            • address
              类型: string | null

              商家实体的地址

            • address_info
              类型: object | null · Response36Afe1097B20_AddressInfo

              包含商家实体地址组成部分的对象

              • address
                类型: string | null

                本地商家的街道地址

              • borough
                类型: string | null

                本地商家所属的行政单位或区域

              • city
                类型: string | null

                本地商家所在城市的名称

              • country_code
                类型: string | null

                本地商家的 ISO 国家代码

              • region
                类型: string | null

                本地商家所属的 DMA 区域

              • zip
                类型: string | null

                本地商家的邮政编码

            • attributes
              类型: object | null · Response36Afe1097B20_BusinessDataAttributesInfo

              以用户评价勾选项形式呈现的服务详情;
              以勾选项形式展示、基于用户反馈和商家 category 的商家实体服务详情

              • available_attributes
                类型: object | null

                可用属性
                表示商家实体可提供的属性

                • propertyName
                  类型: array (string | null)[] | null
              • unavailable_attributes
                类型: object | null

                不可用属性
                表示商家实体无法提供的属性

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

              商家类别
              最能描述商家实体所提供服务的 Google My Business 通用类别

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

              全局类别 ID
              不随所选国家/地区变化的通用类别 ID

            • check_url
              类型: string | null

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

            • cid
              类型: string | null

              Google 定义的客户 ID
              本地商家的唯一 ID
              如需了解该标识符的更多信息,请参阅这篇帮助中心文章

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

              商家的可用联系方式
              用于与商家联系的联系方式列表

              • source
                类型: string | null

                数据来源

              • type
                类型: string | null

                元素类型

              • value
                类型: string | null

                评分的值

            • description
              类型: string | null

              SERP 中元素的描述
              收集结果所针对的商家实体的描述

            • domain
              类型: string | null

              商家实体的域名

            • feature_id
              类型: string | null

              SERP 中元素的唯一标识符
              如需了解该标识符的更多信息,请参阅此帮助中心文章

            • first_seen
              类型: string | null

              我们的爬虫首次发现该商家信息元素的日期和时间
              采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
              示例:
              2023-03-11 10:04:11 +00:00

            • hotel_rating
              类型: integer | null

              酒店星级评分
              星级评分范围为 1-5 星,了解更多
              如果没有酒店星级评分信息,该值将为 null

            • is_claimed
              类型: boolean | null

              显示该实体是否已由其在 Google Maps 上的所有者验证

            • last_updated_time
              类型: string | null

              数据最后更新的日期和时间
              采用 UTC 格式:“yyyy-mm-dd hh-mm-ss +00:00”
              示例:
              2023-01-26 09:03:15 +00:00

            • latitude
              类型: number | null

              本地商家在 Google 地图中的纬度坐标
              示例:
              "latitude": 51.584091

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

              与商家可用的互动
              可直接从搜索结果与商家互动的选项列表

              • type
                类型: string | null

                元素类型

            • logo
              类型: string | null

              Google 我的商家资料中展示的徽标 URL

            • longitude
              类型: number | null

              本地商家在 Google 地图中的经度坐标
              示例:
              "longitude": -0.31365919999999997

            • main_image
              类型: string | null

              Google My Business 资料中展示的主图片 URL

            • original_title
              类型: string | null

              元素的原始标题
              未经 Google 翻译的原始标题

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

              相关商家实体

              • cid
                类型: string | null

                Google 定义的客户 ID
                本地商家的唯一 ID
                如需了解该标识符的更多信息,请参阅这篇帮助中心文章

              • feature_id
                类型: string | null

                SERP 中元素的唯一标识符
                如需了解该标识符的更多信息,请参阅此帮助中心文章

              • rating
                类型: object | null · Response36Afe1097B20_RatingInfo

                元素的评分
                基于评价并在 SERP 中显示的热度评分

                • rating_max
                  类型: integer | null

                  rating_type 的最大值

                • rating_type
                  类型: string | null

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

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

                  评分的值

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

                  反馈数量

              • title
                类型: string | null

                SERP 中元素的标题
                收集结果所针对的商家实体的名称

            • phone
              类型: string | null

              商家实体的电话号码

            • place_id
              类型: string | null

              唯一地点标识符
              元素中出现的本地商家的地点 ID
              如需了解该标识符的更多信息,请参阅这篇帮助中心文章

            • place_topics
              类型: object | null

              客户评论中提到的关键词
              包含与商家实体客户评论中提到的产品/服务相关的最热门关键词,以及提及每个关键词的评论数量
              示例:
              "place_topics": {
              "egg roll": 48,
              "birthday": 33
              }

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

                Signed 64-bit integers (long type).

            • popular_times
              类型: object | null · Response36Afe1097B20_PopularTimes

              热门时段
              与商家实体繁忙时段相关的信息

              • popular_times_by_days
                类型: object | null

                热门时段
                本地商家每周各天繁忙时段的信息

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

                  周日的营业时间

                  • popular_index
                    类型: integer | null

                    人气指数 按时间衡量的相对人气指数,范围为 0 到 100; 值越高表示一天中越繁忙的时段

                  • time
                    类型: object | null · Response36Afe1097B20_TimeInfo

                    24 小时制的小时

                    • hour
                      类型: integer | null

                      24 小时制的小时

                    • minute
                      类型: integer | null

                      分钟

            • price_level
              类型: string | null

              场所价格水平
              可取值:inexpensive、moderate、expensive、very_expensive
              如果没有价格水平信息,该值将为 null

            • rating
              类型: object | null · Response36Afe1097B20_RatingInfo

              元素的评分
              基于评价并在 SERP 中显示的热度评分

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

                rating_type 的最大值

              • rating_type
                类型: string | null

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

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

                评分的值

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

                反馈数量

            • rating_distribution
              类型: object | null

              商家实体的评分分布
              该对象显示用户评价的 1 星到 5 星评分数

              • propertyName
                类型: integer | null 格式: Int64
            • services
              类型: array (object | null)[] | null
              • category
                类型: string | null

                商家类别
                最能描述商家实体所提供服务的 Google My Business 通用类别

              • price
                类型: object | null · Response36Afe1097B20_PriceInfo
                • currency
                  类型: string | null

                  所列价格的货币 适用于该价格的货币 ISO 代码

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

                  当前价格 表示结果中所展示产品或服务的当前价格

                • displayed_price
                  类型: string | null

                  结果中的价格字符串 结果中提供的原始价格字符串

                • is_price_range
                  类型: boolean | null

                  价格以区间形式提供 表示价格是否以区间形式提供

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

                  最高价格 结果中所示产品或服务的最高价格

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

                  常规价格 表示未应用任何折扣的产品或服务常规价格

              • snippet
                类型: string | null

                商家实体的附加信息

              • title
                类型: string | null

                SERP 中元素的标题
                收集结果所针对的商家实体的名称

            • snippet
              类型: string | null

              商家实体的附加信息

            • title
              类型: string | null

              SERP 中元素的标题
              收集结果所针对的商家实体的名称

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

              Google My Business 资料中展示的图片总数

            • type
              类型: string | null

              元素类型

            • url
              类型: string | null

              商家实体的绝对 URL

            • work_time
              类型: object | null · Response36Afe1097B20_BusinessWorkHoursInfo

              营业时间详情
              与商家实体营业时间相关的信息

              • work_hours
                类型: object | null · Response36Afe1097B20_WorkHours

                营业时间
                本地商家的营业时间信息

                • current_status
                  类型: string | null

                  商家的当前状态
                  指示商家是否营业

                • timetable
                  类型: object | null

                  营业时间表

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

                    周日的营业时间

                    • close
                      类型: object | null · Response36Afe1097B20_TimeInfo

                      结束时间

                      • hour
                        类型: integer | null

                        24 小时制的小时

                      • minute
                        类型: integer | null

                        分钟

                    • open
                      类型: object | null · Response36Afe1097B20_TimeInfo

                      开始时间

                      • hour
                        类型: integer | null

                        24 小时制的小时

                      • minute
                        类型: integer | null

                        分钟

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

            Signed 64-bit integers (long type).

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

            我们数据库中与你的请求相关的结果总数

        • 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/business_listings/search/live
curl https://openapi.felo.ai/v1/beta/dataforseo/business_data/business_listings/search/live \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '[
  {
    "categories": [
      "pizza_restaurant"
    ],
    "description": "pizza",
    "title": "pizza",
    "is_claimed": true,
    "location_coordinate": "53.476225,-2.243572,10",
    "order_by": [
      "rating.value,desc"
    ],
    "filters": [
      [
        "rating.value",
        ">",
        3
      ]
    ],
    "limit": 3
  }
]'
{
  "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": [
        {
          "total_count": null,
          "count": null,
          "offset": null,
          "offset_token": null,
          "items": [
            {
              "type": null,
              "title": null,
              "original_title": null,
              "description": null,
              "category": null,
              "category_ids": [
                "[Max Depth Exceeded]"
              ],
              "additional_categories": [
                "[Max Depth Exceeded]"
              ],
              "cid": null,
              "feature_id": null,
              "address": null,
              "address_info": "[Max Depth Exceeded]",
              "place_id": null,
              "phone": null,
              "url": null,
              "domain": null,
              "logo": null,
              "main_image": null,
              "total_photos": null,
              "snippet": null,
              "latitude": null,
              "longitude": null,
              "is_claimed": null,
              "attributes": "[Max Depth Exceeded]",
              "place_topics": null,
              "rating": {
                "0": "[",
                "1": "M",
                "2": "a",
                "3": "x",
                "4": " ",
                "5": "D",
                "6": "e",
                "7": "p",
                "8": "t",
                "9": "h",
                "10": " ",
                "11": "E",
                "12": "x",
                "13": "c",
                "14": "e",
                "15": "e",
                "16": "d",
                "17": "e",
                "18": "d",
                "19": "]",
                "rating_type": "[Max Depth Exceeded]",
                "value": "[Max Depth Exceeded]",
                "votes_count": "[Max Depth Exceeded]",
                "rating_max": "[Max Depth Exceeded]"
              },
              "hotel_rating": null,
              "price_level": null,
              "rating_distribution": null,
              "people_also_search": [
                "[Max Depth Exceeded]"
              ],
              "work_time": "[Max Depth Exceeded]",
              "popular_times": "[Max Depth Exceeded]",
              "local_business_links": [
                "[Max Depth Exceeded]"
              ],
              "contact_info": [
                "[Max Depth Exceeded]"
              ],
              "check_url": null,
              "last_updated_time": null,
              "first_seen": null,
              "services": [
                "[Max Depth Exceeded]"
              ]
            }
          ]
        }
      ]
    }
  ]
}
Live Business Listings Search Tasks

需要帮助?