images-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseImages Search
图片搜索
Requires API Key: Get one at https://api.search.brave.comPlan: Included in the Search plan. See https://api-dashboard.search.brave.com/app/subscriptions/subscribe
需要API密钥:请前往https://api.search.brave.com获取套餐:包含在Search套餐中。详情请见https://api-dashboard.search.brave.com/app/subscriptions/subscribe
Quick Start (cURL)
快速入门(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}"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"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/searchAuthentication: header
X-Subscription-Token: <API_KEY>http
GET https://api.search.brave.com/res/v1/images/search身份验证: 请求头
X-Subscription-Token: <API_KEY>Parameters
参数
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| string | Yes | - | Search query (1-400 chars, max 50 words) |
| string | No | | Search country (2-letter country code or |
| string | No | | 2+ char language code |
| int | No | 50 | Results to return (1-200) |
| string | No | | |
| bool | No | true | Auto-correct query; corrected query in |
| 参数 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
| string | 是 | - | 搜索查询(1-400个字符,最多50个单词) |
| string | 否 | | 搜索国家(两位国家代码或 |
| string | 否 | | 两位及以上字符的语言代码 |
| int | 否 | 50 | 返回结果数量(1-200) |
| string | 否 | | 可选值为 |
| bool | 否 | true | 自动纠正查询;纠正后的查询会在 |
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
}
}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
响应字段
| Field | Type | Description |
|---|---|---|
| string | Always |
| string | Original query |
| string? | Spellchecked query (null if no correction) |
| bool? | Whether spellcheck was disabled |
| bool? | True if strict safesearch hid relevant results |
| array | List of image results |
| string | Always |
| string? | Image title |
| string? | Page URL where image was found |
| string? | Source domain |
| string? | ISO datetime of last page crawl |
| string? | Brave-proxied thumbnail URL (~500px width) |
| int? | Thumbnail width |
| int? | Thumbnail height |
| string? | Original full-size image URL |
| string? | Low-res placeholder URL (Brave-proxied) |
| int? | Original image width (may be null) |
| int? | Original image height (may be null) |
| string? | URL protocol scheme |
| string? | Network location |
| string? | Lowercased domain |
| string? | Favicon URL |
| string? | URL path |
| string? | Relevance: |
| bool | Whether results may contain offensive content |
| 字段 | 类型 | 描述 |
|---|---|---|
| string | 固定为 |
| string | 原始查询内容 |
| string? | 拼写纠正后的查询内容(无纠正时为null) |
| bool? | 是否禁用了拼写检查 |
| bool? | 当严格安全搜索隐藏了相关结果时,值为true |
| array | 图片结果列表 |
| string | 固定为 |
| string? | 图片标题 |
| string? | 图片所在页面的URL |
| string? | 源域名 |
| string? | 页面最后爬取的ISO格式时间 |
| string? | Brave代理的缩略图URL(宽度约500px) |
| int? | 缩略图宽度 |
| int? | 缩略图高度 |
| string? | 原始高清图片的URL |
| string? | 低分辨率占位图URL(由Brave代理) |
| int? | 原始图片宽度(部分图片可能无此数据) |
| int? | 原始图片高度(部分图片可能无此数据) |
| string? | URL协议 |
| string? | 网络位置 |
| string? | 小写格式的域名 |
| string? | 网站图标URL |
| string? | URL路径 |
| string? | 相关度: |
| bool | 结果是否可能包含冒犯性内容 |
Use Cases
使用场景
- Visual content discovery: Build image galleries, mood boards, or visual research tools. Use for comprehensive coverage. Prefer over
count=200when you need image-specific metadata (dimensions, thumbnails).web-search - Content enrichment: Add relevant images to articles or generated content. Use and
countryto target your audience's locale.search_lang - Safe image retrieval: Default ensures family-friendly results out of the box. Only two modes (off/strict) — no moderate option, unlike web/video/news search.
safesearch=strict - 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.
- 视觉内容发现:构建图片图库、情绪板或视觉研究工具。使用获取全面的结果。当你需要图片特定元数据(尺寸、缩略图)时,优先选择此接口而非
count=200。web-search - 内容丰富:为文章或生成式内容添加相关图片。使用和
country参数定位目标受众的地区和语言。search_lang - 安全图片检索:默认确保结果适合全年龄段。图片搜索仅支持两种模式(关闭/严格),不像网页/视频/新闻搜索有中等模式。
safesearch=strict - 大批量批量检索:每次请求最多可返回200张图片(网页搜索最多20条,视频/新闻最多50条)。非常适合批量图片采集或视觉分析流程。
Notes
注意事项
- SafeSearch: Defaults to for images (stricter than web search)
strict - High volume: Can return up to 200 results per request
- Thumbnails: Brave-proxied for user privacy (500px width). Use for original full-resolution image.
properties.url - Dimensions: may be missing for some images
properties.width/height - Placeholder: is a low-res URL (not inline base64) useful for progressive loading UX
properties.placeholder
- 安全搜索:图片搜索默认使用模式(比网页搜索更严格)
strict - 高容量:每次请求最多可返回200条结果
- 缩略图:由Brave代理,保护用户隐私(宽度500px)。如需原始高清图片,请使用。
properties.url - 尺寸信息:部分图片可能没有数据
properties.width/height - 占位图:是低分辨率URL(不是内联base64格式),适合用于渐进式加载的用户体验优化
properties.placeholder