Images Search

作者 brave62793e0c49ed無授權條款183 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 週前更新

USE FOR image search. Returns images with title, source URL, thumbnail. Supports SafeSearch filter. Up to 200 results.

AI 產生的概覽

呼叫 Brave 圖片搜尋 API,回傳包含標題、來源網址、縮圖與中繼資料的圖片結果。

功能
這個技能說明如何呼叫 Brave 圖片搜尋 API 端點來執行圖片搜尋。內容涵蓋必要的 API 金鑰標頭、查詢參數(例如國家、語言、結果數量與 SafeSearch),以及 JSON 回應格式。它也說明回傳欄位,包括標題、頁面網址、來源網域、縮圖、原始圖片尺寸與相關性信賴度,並列出視覺內容探索、批次圖片取得等使用情境。
適用情境
當你需要依查詢尋找圖片,並希望取得包含縮圖、來源頁面與圖片尺寸的結構化結果時使用。它適合視覺研究、圖庫或情緒板建立、內容配圖以及批次圖片蒐集。需要 SafeSearch 過濾或依地區指定時也適用。
執行需求
需要 Brave Search API 金鑰,透過 X-Subscription-Token 標頭傳送,並需要連線至 api.search.brave.com 的網路存取。需要包含 Search 方案的訂閱。這個技能只包含說明,不附帶指令碼。

Images Search

Requires API Key: Get one at https://api.search.brave.com

Plan: Included in the Search plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe

Quick Start (cURL)

Basic Search

bash
curl -s "https://api.search.brave.com/res/v1/images/search?q=mountain+landscape" \  -H "Accept: application/json" \  -H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}"

With Parameters

bash
curl -s "https://api.search.brave.com/res/v1/images/search" \  -H "Accept: application/json" \  -H "X-Subscription-Token: ${BRAVE_SEARCH_API_KEY}" \  -G \  --data-urlencode "q=northern lights photography" \  --data-urlencode "country=US" \  --data-urlencode "search_lang=en" \  --data-urlencode "count=20" \  --data-urlencode "safesearch=strict"

Endpoint

http
GET https://api.search.brave.com/res/v1/images/search

Authentication: X-Subscription-Token: <API_KEY> header

Parameters

ParameterTypeRequiredDefaultDescription
qstringYes-Search query (1-400 chars, max 50 words)
countrystringNoUSSearch country (2-letter country code or ALL)
search_langstringNoen2+ char language code
countintNo50Results to return (1-200)
safesearchstringNostrictoff or strict (no moderate for images)
spellcheckboolNotrueAuto-correct query; corrected query in query.altered

Response Format

json
{  "type": "images",  "query": {    "original": "mountain landscape",    "altered": null,    "spellcheck_off": false,    "show_strict_warning": false  },  "results": [    {      "type": "image_result",      "title": "Beautiful Mountain Landscape",      "url": "https://example.com/mountain-photo",      "source": "example.com",      "page_fetched": "2025-09-15T10:30:00Z",      "thumbnail": {        "src": "https://imgs.search.brave.com/...",        "width": 200,        "height": 150      },      "properties": {        "url": "https://example.com/images/mountain.jpg",        "placeholder": "https://imgs.search.brave.com/placeholder/...",        "width": 1920,        "height": 1080      },      "meta_url": {        "scheme": "https",        "netloc": "example.com",        "hostname": "example.com",        "favicon": "https://imgs.search.brave.com/favicon/...",        "path": "/mountain-photo"      },      "confidence": "high"    }  ],  "extra": {    "might_be_offensive": false  }}

Response Fields

FieldTypeDescription
typestringAlways "images"
query.originalstringOriginal query
query.alteredstring?Spellchecked query (null if no correction)
query.spellcheck_offbool?Whether spellcheck was disabled
query.show_strict_warningbool?True if strict safesearch hid relevant results
results[]arrayList of image results
results[].typestringAlways "image_result"
results[].titlestring?Image title
results[].urlstring?Page URL where image was found
results[].sourcestring?Source domain
results[].page_fetchedstring?ISO datetime of last page crawl
results[].thumbnail.srcstring?Brave-proxied thumbnail URL (~500px width)
results[].thumbnail.widthint?Thumbnail width
results[].thumbnail.heightint?Thumbnail height
results[].properties.urlstring?Original full-size image URL
results[].properties.placeholderstring?Low-res placeholder URL (Brave-proxied)
results[].properties.widthint?Original image width (may be null)
results[].properties.heightint?Original image height (may be null)
results[].meta_url.schemestring?URL protocol scheme
results[].meta_url.netlocstring?Network location
results[].meta_url.hostnamestring?Lowercased domain
results[].meta_url.faviconstring?Favicon URL
results[].meta_url.pathstring?URL path
results[].confidencestring?Relevance: low, medium, or high
extra.might_be_offensiveboolWhether results may contain offensive content

Use Cases

  • Visual content discovery: Build image galleries, mood boards, or visual research tools. Use count=200 for comprehensive coverage. Prefer over web-search when you need image-specific metadata (dimensions, thumbnails).
  • Content enrichment: Add relevant images to articles or generated content. Use country and search_lang to target your audience's locale.
  • Safe image retrieval: Default safesearch=strict ensures family-friendly results out of the box. Only two modes (off/strict) — no moderate option, unlike web/video/news search.
  • High-volume batch retrieval: Up to 200 images per request (vs 20 for web, 50 for videos/news). Ideal for bulk image sourcing or visual analysis pipelines.

Notes

  • SafeSearch: Defaults to strict for images (stricter than web search)
  • High volume: Can return up to 200 results per request
  • Thumbnails: Brave-proxied for user privacy (500px width). Use properties.url for original full-resolution image.
  • Dimensions: properties.width/height may be missing for some images
  • Placeholder: properties.placeholder is a low-res URL (not inline base64) useful for progressive loading UX

來源與署名

來源:brave/brave-search-skills位於skills/images-search提交62793e0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架