ABCProxy Docs
繁体中文
繁体中文
  • 概述
  • 代理
    • 動態住宅代理
      • 介紹
      • 代理管理器提取IP使用
      • 網頁個人中心提取IP使用
      • 入門指南
      • 賬密認證
      • API提取
      • 基本查詢
      • 選擇國家/地區
      • 選擇州
      • 選擇城市
      • 會話保持
    • 動態住宅代理(Socks5)
      • 入門指南
      • 代理管理器提取IP使用
    • 無限量住宅代理
      • 入門指南
      • 賬密認證
      • API提取
    • 靜態住宅代理
      • 入門指南
      • 賬密認證
      • API提取
    • ISP 代理
      • 入門指南
      • 帳密認證
    • 數據中心代理
      • 入門指南
      • 帳密認證
      • API提取
  • 高级代理解决方案
    • 網頁解鎖器
      • 開始使用
      • 發送請求
        • JavaScript渲染
        • 地理位置選擇
        • 會話保持
        • Header
        • Cookie
        • 屏蔽資源加載
    • APM-ABC代理管理器
      • 如何使用
  • SERP API
    • 開始使用
    • Google
      • Google 搜尋 API
      • Google 購物 API
      • Google 本地 API
      • Google 視頻 API
      • Google 新聞 API
      • Google 航班 API
      • Google 產品 API
      • Google 圖片 API
      • Google 鏡象圖片 API
      • Google Play 商店 API
      • Google Play 產品 API
      • Google Play 遊戲商店 API
      • Google Play 圖書商店 API
      • Google Play 電影商店 API
      • Google工作 API
      • Google學者API
      • Google學者作者 API
      • Google學者引用API
      • Google學者簡介API
      • Google財經 API
      • Google財經市場 API
      • Google 專利 API
      • Google 專利詳情 API
    • Bing
      • Bing 搜尋 API
      • Bing 圖片 API
      • Bing 影片 API
      • Bing 新聞 API
      • Bing 購物 API
      • Bing 地圖 API
    • Yahoo
      • Yahoo 搜尋 API
      • Yahoo 圖片 API
      • Yahoo 購物 API
      • Yahoo 影片 API
    • DuckDuckGo
      • DuckDuckGo 搜尋 API
      • DuckDuckGo 新聞 API
      • DuckDuckGo 地圖 API
    • Ebay
      • EBay 搜尋 API
    • Walmart
      • 沃爾瑪產品 API
      • 沃爾瑪商品評論 API
      • 沃爾瑪搜尋API
    • Yelp
      • Yelp 評論 API
    • Youtube
      • YouTube 搜尋 API
      • YouTube 影片 API
      • YouTube 視頻批量下載 API
        • YouTube 單個下載任務資訊 API
        • YouTube 批次下載任務資訊 API
  • 參數
    • Google GL 參數:受支持的 Google 國家 / 地區
    • Google 廣告透明度中心地區
    • Google HL 參數:受支持的 Google 語言
    • Google Lens 國家參數:受支持的 Google Lens 國家 / 地區
    • Google 本地服務工作類型
    • Google 趨勢類別
    • 受支持的 DuckDuckGo 地區
    • Google 趨勢位置
    • 受支持的 eBay 域名
    • 受支持的 eBay 位置選項
    • 受支持的 eBay 排序選項
    • 透過 cr 參數受支持的 Google 國家 / 地區
    • 受支持的 Google 域名
    • 透過 lr 參數受支持的 Google 語言
    • 受支持的 Google 專利國家代碼
    • 受支持的 Google Play 應用程式類別
    • 受支持的 Google Play 圖書類別
    • 受支持的 Google Play 遊戲類別
    • 受支持的 Google Play 電影類別
    • 受支持的 Google Scholar地區 (數據)
    • 受支持的 Google 旅遊貨幣代碼
    • 受支持的位置API
    • 受支持的 Yahoo! 國家 / 地區
    • 受支持的 Yahoo! 域名
    • 受支持的 Yahoo! 檔案格式
    • 受支持的 Yahoo! 語言
    • 受支持的 Yandex 域名
    • 受支持的 Yandex 語言
    • 受支持的 Yandex 位置
    • 受支持的 Yelp 域名
    • 受支持的 Yelp 評論語言
    • 沃爾瑪商店位置
  • 集成與使用
    • 瀏覽器集成
      • Proxy SwitchyOmega
      • BP Proxy Switcher
      • Brave Browser
    • 防檢測瀏覽器集成
      • AdsPower
      • BitBrowser(比特浏览器)
      • Hubstudio
      • Morelogin
      • Incogniton
      • ClonBrowser
      • Helium Scraper
      • ixBrowser
      • VMlogin
      • Antbrowser
      • Dolphin{anty}
      • lalimao(拉力猫指紋瀏覽器)
      • Gologin
    • 企業計划使用教程
      • 如何使用企業計劃CDKEY
  • 幫助
    • 使用問題
      • 客戶端提示:"please start the proxy first"
      • 客戶端登錄無反應
    • 退款政策
    • 聯絡我們
由 GitBook 提供支持
在本页
  • API 詳情
  • 請求
  • 響應
  • 成功 200
  • 錯誤響應
  1. SERP API
  2. Yahoo

Yahoo 購物 API

上一页Yahoo 圖片 API下一页Yahoo 影片 API

/search?engine=yahoo_shopping API 端點允許您透過 SerpApi 服務獲取 Yahoo! 購物搜尋結果。

API 詳情

端點GET https://serpapi.abcproxy.com/search

描述

使用者可透過 GET 請求查詢:https://serpapi.abcproxy.com/search?engine=yahoo_shopping。前往查看互動式即時演示。


請求

HTTP 請求

curl -X GET "https://serpapi.abcproxy.com/search" \
  -d "engine=yahoo_shopping" \
  -d "p=Coffee" \
  -d "no_cache=false" \
  -d "api_key=YOUR_API_KEY"
import requests

params = {
    "engine": "yahoo_shopping",
    "p": "Coffee",
    "no_cache": "false",
    "api_key": "YOUR_API_KEY"
}
response = requests.get("https://serpapi.abcproxy.com/search", params=params)
print(response.json())
const axios = require('axios');

const params = {
  engine: "yahoo_shopping",
  p: "Coffee",
  no_cache: "false",
  api_key: "YOUR_API_KEY"
};

axios.get("https://serpapi.abcproxy.com/search", { params })
  .then(response => console.log(response.data));
GET /search?engine=yahoo_shopping&p=Coffee&no_cache=false&api_key=YOUR_API_KEY HTTP/1.1
Host: serpapi.abcproxy.com
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://serpapi.abcproxy.com/search', [
    'query' => [
        'engine' => 'yahoo_shopping',
        'p' => 'Coffee',
        'no_cache' => 'false',
        'api_key' => 'YOUR_API_KEY'
    ]
]);
echo $response->getBody();
package main

import (
    "net/http"
    "io/ioutil"
    "log"
)

func main() {
    client := &http.Client{}
    req, _ := http.NewRequest("GET", "https://serpapi.abcproxy.com/search", nil)
    
    q := req.URL.Query()
    q.Add("engine", "yahoo_shopping")
    q.Add("p", "Coffee")
    q.Add("no_cache", "false")
    q.Add("api_key", "YOUR_API_KEY")
    req.URL.RawQuery = q.Encode()

    resp, _ := client.Do(req)
    body, _ := ioutil.ReadAll(resp.Body)
    log.Println(string(body))
}
using System;
using System.Net.Http;

class Program
{
    static async Task Main()
    {
        var client = new HttpClient();
        var query = System.Web.HttpUtility.ParseQueryString(string.Empty);
        query["engine"] = "yahoo_shopping";
        query["p"] = "Coffee";
        query["no_cache"] = "false";
        query["api_key"] = "YOUR_API_KEY";
        
        var response = await client.GetAsync(
            $"https://serpapi.abcproxy.com/search?{query}"
        );
        Console.WriteLine(await response.Content.ReadAsStringAsync());
    }
}
import java.net.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        String url = "https://serpapi.abcproxy.com/search" +
            "?engine=yahoo_shopping" +
            "&p=Coffee" +
            "&no_cache=false" +
            "&api_key=YOUR_API_KEY";
        
        HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
        conn.setRequestMethod("GET");
        
        BufferedReader in = new BufferedReader(
            new InputStreamReader(conn.getInputStream())
        );
        String response = in.lines().collect(Collectors.joining());
        System.out.println(response);
    }
}

參數

搜尋查詢

名稱
類型
必填
描述
範例

p

字符串

是

定義搜尋查詢

coffee

進階購物參數

名稱
類型
必填
描述
範例

min_price

字符串

否

價格範圍查詢下限

50

max_price

字符串

否

價格範圍查詢上限

100

sort_by

字符串

否

結果排序方式: price - 價格最高優先 relevancy - 最相關優先 popularity - 最熱門優先 discountPercentage - 折扣比例最高優先

-

order_by

字符串

否

排序方向

ASC (升序) 或 DESC (降序)

category_attr_values

字符串

否

性別與年齡範圍篩選(逗號分隔)

gender_female,age_adult

merchants

字符串

否

商家ID列表(逗號分隔)

3719d8d4-5edd-4817-998a-91f3229e7323

分頁

名稱
類型
必填
描述
範例

start

整數型

否

結果偏移量

1

limit

整數型

否

每頁結果數量

10

page

整數型

否

直接指定頁碼(自動計算偏移)

1

Serpapi 參數

名稱
類型
必填
描述
範例

engine

字符串

是

需設為 yahoo_shopping 使用購物API

yahoo_shopping

no_cache

布爾值

否

強制重新抓取結果(即使有緩存)

true 或 false

api_key

字符串

是

SerpApi 私鑰

YOUR_API_KEY


響應

成功 200

響應主體

{
  "code": 200,
  "search_parameters": {
    "engine": "yahoo_shopping",
    "no_cache": true,
    "api_key": "YOUR_API_KEY",
    "p": "Coffee"
  },
  "search_metadata": {
    "json_endpoint": "https://webserp.abcproxy.com/files/71b67ce45c847b94/ffaefbb2-c779-4cb0-9c05-76566c570f08.json",
    "created_at": "2025-04-09 14:13:04",
    "yahoo_url": "https://shopping.yahoo.com/search?p=Coffee",
    "raw_html_file": "https://webserp.abcproxy.com/files/71b67ce45c847b94/ffaefbb2-c779-4cb0-9c05-76566c570f08.html",
    "xray_html_file": "https://webserp.abcproxy.com/files/71b67ce45c847b94/ffaefbb2-c779-4cb0-9c05-76566c570f08.xray",
    "total_time_taken": "8.8580",
    "id": "ffaefbb2-c779-4cb0-9c05-76566c570f08"
  },
  "shopping_results": [
    {
      "price": "$31.90",
      "position": 1,
      "title": "Coffee Roasters of Jamaica - 100% Jamaica Blue Mountain Ground Coffee (8oz)",
      "link": "https://shopping.yahoo.com/product/00619752100809/Coffee-Roasters-of-Jamaica---100--Jamaica-Blue-Mountain-Ground-Coffee--8oz-?pid=amazon_B002OGKT7C",
      "thumbnail": "https://s.yimg.com/lo/api/res/1.2/NrVfMOuFFB4PIEUgiROmbg--/YXBwaWQ9ZWNfaG9yaXpvbnRhbDtoPTQwMDtzcz0xO3c9NDAw/https://m.media-amazon.com/images/I/51gvFTvR-3L._SL500_.jpg",
      "product_id": "00619752100809",
      "seller": "Amazon"
    },
    ...
  ],
  "filters": [
    {
      "key": "Categories",
      "value": [
        {
          "id": "436",
          "name": "Furniture"
        },
        ...
      ]
    },
    ...
  ],
  ...
}

響應欄位

欄位
類型
描述

search_parameters

對象

包含查詢參數及搜尋上下文

search_metadata

對象

包含時間和狀態資訊

shopping_results

對象數組

商品搜尋結果列表

filters

對象數組

可用搜尋篩選器列表


錯誤響應

常見錯誤

HTTP 狀態碼
錯誤代碼
描述

200

400

API 金鑰不可為空

200

401

參數錯誤

200

402

API 金鑰錯誤

200

403

餘額不足

200

404

扣費失敗

200

405

用量記錄失敗

200

406

不支援的引擎

200

407

網路錯誤

200

408

檔案不存在

200

429

請求過於頻繁

200

409

限制參數錯誤

200

410

URL 建構錯誤

200

411

查詢記錄失敗

200

412

找不到 JSON

200

413

獲取 HTML 錯誤

200

414

HTML 內容為空

錯誤範例

{
  "code": 400,
  "message": "API Key can not be empty"
}

工作臺