For the complete documentation index, see llms.txt. This page is also available as Markdown.

Best Buy

Best Buy 抓取 API,支持搜索和产品来源。包含解析数据支持和全面的集成示例。

使用网页爬虫API,您可以抓取并解析各种类型的 Best Buy 页面;下面概述所有受支持的爬虫及其对应的 source 值。

来源
说明
专用解析器

bestbuy_search

搜索页面 ,用于您选择的搜索词。

否。

bestbuy_product

商品页面 ,用于您选择的商品 ID。

是。

入门

创建您的 API 用户凭据:注册免费试用或在 Oxylabs 仪表板 中购买产品,以创建您的 API 用户凭据(USERNAMEPASSWORD).

请求示例

curl 'https://realtime.oxylabs.io/v1/queries' \
--user "USERNAME:PASSWORD" \
-H "Content-Type: application/json" \
-d '{
        "source": "bestbuy_product",
        "product_id": "6525410",
        "parse": true
    }'
输出示例
{
    "results": [
        {
            "content": {
                "url": "https://www.bestbuy.com/site/apple-iphone-15-plus-128gb-black-verizon/6525454.p?skuId=6525454&intl=nosplash",
                "price": {
                    "price": 25.83,
                    "currency": "USD"
                },
                "title": "Apple - iPhone 15 Plus 128GB - Black (Verizon)",
                "rating": {
                    "count": 55,
                    "score": 4.3
                },
                "_errors": [
                    "'NoneType' object has no attribute 'xpath'"
                ],
                "product_id": "6525410",
                "is_sold_out": false,
                "parse_status_code": 12004,
            },
            "created_at": "2024-06-13 11:44:20",
            "updated_at": "2024-06-13 11:44:48",
            "page": 1,
            "url": "https://www.bestbuy.com/site/apple-iphone-15-plus-128gb-black-verizon/6525454.p?skuId=6525454&intl=nosplash",
            "job_id": "7206984735770310657",
            "status_code": 200,
            "parser_type": "bestbuy_product"
        }
    ]
}

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

或者,您可以包含其他参数,例如 user_agent_type, parse, render 以及更多内容来自定义你的抓取请求。阅读更多:

功能

最后更新于

这有帮助吗?