API Hop 文件
Naver 介面參考
Naver: 網頁搜尋 · AI 摘要 · AI Mode 回答.
並行上限
AI 與 Data 分別共用帳戶層級的並行名額,預設 5 AI / 2 Data,訂閱方案可調整上限。介面個別設定仍受類別總上限約束。達到任一上限回傳 HTTP 429;非同步任務執行結束前占用名額。
GET /v1/naver/search 預設並行上限: 2
GET /v1/naver/ai-overview 預設並行上限: 2
GET /v1/naver/ai-mode 預設並行上限: 2
Naver: 網頁搜尋 · AI 摘要 · AI Mode 回答.
驗證與計費
預設每次成功請求 $0.0003(300 credits)。 使用 API Hop API Key;可用性取決於已啟用閘道與金鑰權限。成功請求價格以目前目錄與帳戶為準,帳戶專屬價格優先。成功的空結果也會計費,失敗會釋放預留額度。逾時為 60 秒,不自動重試或分頁,結算失敗不會重複呼叫上游。
http
Authorization: Bearer YOUR_API_KEY僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 JSON,不自動分頁或重試。識別碼及續查權杖應從最新回應複製,範例僅供說明。每次完成的查詢分別計費,包括已確認的空結果或不可用結果。XOR 表示二選一,NOT 表示不得提供,=> 表示需要。
Naver: 網頁搜尋
GET https://api.apihop.ai/v1/naver/search
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
query | string | 搜尋詞; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | 커피 |
page | integer | 頁碼(從 1 開始); page: optional; min: 1; max: 100 | 1 |
device | string | 裝置; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不封存回應產物; zero_trace: optional | true |
where | string | Naver 搜尋分類;省略為網頁搜尋,nexearch 傳回綜合搜尋,image 圖片、news 新聞。; where: optional; nexearch, web, news, image, video | nexearch |
start | integer | 結果偏移量; start: optional; min: 1; max: 10000 | 1 |
num | integer | 每頁結果數 (num); where=image; 預設值: 50; num: optional; min: 1; max: 100 | 1 |
sort_by | string | 排序; sort_by: optional; 0, 1, 2, r, dd | 0 |
period | string | 時間範圍 (period); all, 1h, 1d, 1w, 1m, 3m, 6m, 1y, fromYYYYMMDDtoYYYYMMDD; news: 2h..6h; period: optional; ^(?:all|[1-6]h|1d|1w|[136]m|1y|from[0-9]{8}to[0-9]{8})$ | - |
驗證規則
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednum => where=image; where=news => sort_by in 0,1,2, otherwise r,dd; period 2h..6h => where=news; custom period fromYYYYMMDDtoYYYYMMDD: valid ordered dates
範例
bash
curl --get "https://api.apihop.ai/v1/naver/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=커피"Naver: AI 摘要
GET https://api.apihop.ai/v1/naver/ai-overview
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
query | string | 搜尋詞; query: optional; minLength: 1; UTF-8 bytes: 8192 | 커피란 무엇인가 |
device | string | 裝置; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不封存回應產物; zero_trace: optional | true |
page_token | string | Naver 綜合搜尋 where=nexearch 傳回的商業 AI 摘要權杖;不能與 query 同時使用。; page_token: optional; maxLength: 8192 | - |
驗證規則
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedquery XOR page_token; page_token: copy from a fresh search response; preserve original query and locale
範例
bash
curl --get "https://api.apihop.ai/v1/naver/ai-overview" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=커피란 무엇인가"Naver: AI Mode 回答
GET https://api.apihop.ai/v1/naver/ai-mode
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
query | string | 搜尋詞; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | 커피란 무엇인가 |
continuable | boolean | 傳回可用於後續追問的對話權杖;Google 對話自首次請求起最多保留 15 分鐘,來源可能提前失效。; continuable: optional | true |
subsequent_request_token | string | 本介面傳回的對話權杖;同時提交新問題,並保持原語言、地區及位置。; subsequent_request_token: optional; maxLength: 24576 | - |
zero_trace | boolean | 不封存回應產物; zero_trace: optional | true |
驗證規則
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
範例
bash
curl --get "https://api.apihop.ai/v1/naver/ai-mode" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=커피란 무엇인가"回應與錯誤
保留原生 JSON 與數字精確度。以下是空成功結果範例。HTTP 400 輸入無效;401 需驗證;402 餘額不足;403 無權限或未開放;405 方法不支援;429 限流;5xx 服務錯誤。請保留 X-Request-Id。
json
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}