Web
擷取網頁內容與搜尋網路。
- 擷取:回傳任何公開 URL 的原始內容
- 搜尋:使用 Brave Search 搜尋網路並取得結構化結果
擷取
GET /web/fetch — 1 點數
依網址擷取網頁內容。
| 參數 | 類型 | 必填 | 預設 | 說明 |
|---|---|---|---|---|
url | string | 是 | — | 目標網頁 URL |
cURL
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 搜尋網路並回傳結構化結果。
| 參數 | 類型 | 必填 | 預設 | 說明 |
|---|---|---|---|---|
q | string | 是 | — | 搜尋關鍵字 |
count | integer | 否 | 10 | 結果數量(1-50) |
cURL
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