Documentation has been updated: see help center and changelog in one place.

卖家

抓取 Amazon 卖家页面,获取评分、反馈、资料等,支持 JS 渲染、地理定位和代码示例。

amazon_sellers 数据源旨在检索 Amazon 卖家页面。

查看输出 数据字典 针对卖家,提供简要描述、截图、解析后的 JSON 代码片段以及定义每个解析字段的表格。使用右侧导航或向下滚动页面浏览详细信息。

请求示例

在下面的代码示例中,我们发出请求以检索卖家 ID 的卖家页面 A2MUQS6AX5GGRamazon.de 市场。

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "amazon_sellers", 
        "domain": "de", 
        "query": "A2MUQS6AX5GGR",
        "parse": true
    }'

在我们的示例中,我们使用同步的 Realtime 集成方法。如果您想使用 Proxy Endpoint 或异步的 Push-Pull 集成,请参阅 集成方法 部分。

请求参数值

通用

用于抓取 Amazon 卖家页面的基本设置与自定义选项。

参数
说明
默认值

source

设置抓取器。

amazon_sellers

query

卖家 ID 代码。

-

render

启用 JavaScript 渲染,当设置为 html. 更多信息.

-

parse

当设置为以下值时返回解析后的数据 true。 查看输出 数据字典.

false

callback_url

回调端点的 URL。 更多信息.

-

user_agent_type

设备类型和浏览器。完整列表可在 此处.

desktop

- 必填参数

本地化

将结果适配到特定的地理位置、域名和语言。

参数
说明
默认值

geo_location

传送到 位置。参见我们关于使用此参数的指南 此处.

-

domain

Amazon 的域名本地化。可用域名的完整列表可在此处找到 此处.

com

locale

Accept-Language header 值,用于设置 Amazon 页面界面语言。 更多信息.

-

结构化数据

下面您可以找到一个 结构化输出示例 用于 amazon_sellers。请注意,目前我们仅支持对 desktop 设备类型 的解析输出。然而,没有明显理由使用其他设备类型来获取卖家页面,因为卖家数据在所有设备上将完全相同。

Amazon_sellers 结构化输出
{
    "results": [
        {
            "content": {
                "url": "https://www.amazon.com/sp?seller=A151FB8X73UXPJ",
                "query": "A151FB8X73UXPJ",
                "rating": 4.5,
                "page_type": "Seller",
                "description": "Service with a smile! Gamer Girlz LLC loves making our customers happy by providing the quickest service & highest quality products. Every order is packaged with care & includes a special THANK YOU for choosing Gamer Girlz to provide you with the first class shopping experience you deserve!",
                "business_name": "Gamer Girlz",
                "recent_feedback": [
                    {
                        "feedback": "The product never came, and was very very expensive. Wasn't eligible for refund for some reason.",
                        "rated_by": "By Juli on May 8, 2022.",
                        "rating_stars": 1
                    },
                    {
                        "feedback": "Favorite game",
                        "rated_by": "By DF on May 8, 2022.",
                        "rating_stars": 5
                    },
                    {
                        "feedback": "It works perfectly and I love the games on it.",
                        "rated_by": "By John on May 8, 2022.",
                        "rating_stars": 5
                    },
                    {
                        "feedback": "All the games I got came super fast and it amazing condition! Would definitely buy from them again and recommend seller to others!",
                        "rated_by": "By Brianna c. on May 6, 2022.",
                        "rating_stars": 5
                    },
                    {
                        "feedback": "They were fast with shipping and provided quality merchandise. A label of authenticity was included with the game I bought to ensure me that I bought a genuine version.",
                        "rated_by": "By anonymous  on May 6, 2022.",
                        "rating_stars": 5
                    }
                ],
                "business_address": "1020 Michigan St. Sandpoint ID 83864 US",
                "parse_status_code": 12000,
                "feedback_summary_table": {
                    "counts": {
                        "30_days": 44,
                        "90_days": 146,
                        "all_time": 7857,
                        "12_months": 611
                    },
                    "neutral": {
                        "30_days": "5%",
                        "90_days": "2%",
                        "all_time": "2%",
                        "12_months": "1%"
                    },
                    "negative": {
                        "30_days": "7%",
                        "90_days": "7%",
                        "all_time": "3%",
                        "12_months": "8%"
                    },
                    "positive": {
                        "30_days": "89%",
                        "90_days": "91%",
                        "all_time": "95%",
                        "12_months": "91%"
                    }
                }
            },
            "created_at": "2022-05-09 06:57:47",
            "updated_at": "2022-05-09 06:57:50",
            "page": 1,
            "url": "https://www.amazon.com/sp?seller=A151FB8X73UXPJ",
            "job_id": "6929323518437886977",
            "status_code": 200,
            "parser_type": ""
        }
    ]
}

输出数据字典

HTML 示例

JSON 结构

amazon_sellers 结构化输出包含诸如 URL, query, rating等字段。下面的表格列出了我们解析的每个字段的详细清单,以及其描述和数据类型。表格还包含一些元数据。

说明
类型

url

Amazon 卖家页面的 URL。

字符串

query

用作原始搜索词的 13 个字符卖家 ID。

字符串

rating

卖家的评分。

整数

page_type

Amazon 页面类型。

字符串

description

关于卖家的简短描述。

字符串

seller_name

卖家名称。

字符串

business_name

企业名称。

字符串

recent_feedback

包含最近反馈项及其相应详情的列表。

数组

business_address

企业地址。

字符串

parse_status_code

解析任务的状态代码。您可以在此处查看解析器状态代码说明 此处.

整数

feedback_summary_data

关于卖家评级的可用详细信息列表。

对象

created_at

抓取任务创建的时间戳。

时间戳

updated_at

抓取任务完成的时间戳。

时间戳

job_id

与抓取任务关联的作业 ID。

整数

status_code

抓取任务的状态代码。您可以在此处查看爬虫状态代码说明 此处.

整数

parser_type

用于解析数据的解析器类型。

字符串

在下列部分,当某个结果类型有多于一项时,解析后的 JSON 代码片段将被简短化。

最近反馈

recent_feedback 数据显示针对 Amazon 市场上特定商品列表的近期客户评论和反馈。

...
"recent_feedback": [
    {
        "feedback": "We truly appreciate you taking time out of your busy day to leave such a nice review. As a small business we truly like dealing with customers like you who share their positive experience.",
        "rated_by": "By Troy on January 29, 2024.",
        "rating_stars": 5
    },
...
],
...
键 (recent_feedback)
说明
类型

feedback

提交给卖家或卖家商品的反馈内容。

字符串

rated_by

提交反馈的用户及其信息。

字符串

rating_stars

所提交的星级数量。

整数

反馈摘要数据

feedback_summary_data 是针对 Amazon 市场上特定商品列表提供的反馈统计。反馈摘要数据包含不同时间段的信息,便于卖家和分析人员跟踪客户情绪随时间的变化。

...               
 "feedback_summary_data": {
    "1_month": {
        "count": 3,
        "1_star": "33%",
        "2_star": "0%",
        "3_star": "0%",
        "4_star": "33%",
        "5_star": "33%"
    },
    "3_month": {
        "count": 10,
        "1_star": "10%",
        "2_star": "0%",
        "3_star": "0%",
        "4_star": "20%",
        "5_star": "70%"
    },
 ...
}
...
键 (content.feedback_summary_data)
说明
类型

1_month/3_month/12_month/all_time

用于按定义的时间范围查看评分信息的筛选器。

对象

1_month/3_month/12_month/all_time.count

某一时间范围内可用的评论数量。

整数

1_month-all_time.1_star-5_star

某一时间范围内评分星级的百分比分布。

percentage

最后更新于

这有帮助吗?