Skip to Content

Web

擷取網頁內容與搜尋網路。

  • 擷取:回傳任何公開 URL 的原始內容
  • 搜尋:使用 Brave Search 搜尋網路並取得結構化結果

擷取

GET /web/fetch — 1 點數

依網址擷取網頁內容。

參數類型必填預設說明
urlstring目標網頁 URL
curl -H "x-api-key: sk_oms_xxx" \ "https://api.omniscrape.dev/web/fetch?url=https://example.com"

回應

{ "url": "https://example.com/", "statusCode": 200, "contentType": "text/html", "body": "<!doctype html><html lang=\"en\"><head><title>Example Domain</title>...</head><body>...</body></html>" }

搜尋

GET /web/search — 2 點數

使用 Brave Search 搜尋網路並回傳結構化結果。

參數類型必填預設說明
qstring搜尋關鍵字
countinteger10結果數量(1-50)
curl -H "x-api-key: sk_oms_xxx" \ "https://api.omniscrape.dev/web/search?q=latest+AI+news&count=5"

回應

{ "query": "latest AI news", "results": [ { "title": "AI News - Latest Updates", "url": "https://example.com/ai-news", "description": "The latest developments in artificial intelligence..." } // ... 更多結果 ], "count": 5 }
Last updated on