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

搜索

按关键词抓取 eBay 搜索结果页,并支持分页和跨多个 eBay 区域站点的域名本地化。

ebay_search 该 source 旨在检索 eBay 搜索结果页。我们可以返回任何 eBay 你喜欢的搜索页面。要查看带有已检索数据的响应示例,请下载 此示例输出 HTML 格式文件。

请求示例

下面的示例说明了如何获取 eBay 搜索结果。

curl 'https://realtime.oxylabs.io/v1/queries' \\
--user 'USERNAME:PASSWORD' \\
-H 'Content-Type: application/json' \
-d '{
        "source": "ebay_search", 
        "query": "shoes"
    }'
import requests
from pprint import pprint


# Structure payload.
payload = {
    'source': 'ebay_search',
    'query': 'shoes'
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())

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

请求参数值

通用

参数
描述
默认值

source

设置爬虫。

ebay_search

query

用于搜索产品的关键词或短语。

-

start_page

起始页码。

1

render

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

-

callback_url

回调端点的 URL。 更多信息

-

user_agent_type

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

desktop

- 必填参数

本地化

将结果适配到特定域名。

参数
描述
默认值

domain

适用于不同 eBay 地区的域名本地化。(com, co.uk, de, ca, com.au, it, pl, ph, com.hk, com.sg)

com

最后更新于

这有帮助吗?