🖼️ Unsplash Image Search API
收藏🖼️ Unsplash Image Search API 数据集概述
基本信息
- 数据集名称: Unsplash Image Search API
- 类别: Video, Images
- 提供者: EaseApi2
- 订阅者数量: 155
- API版本: 1.0.0 (current)
- 服务等级: 100%
- 平均延迟: 847ms
- 受欢迎度: 9.5 Popularity
定价方案
- BASIC: $0.00 / 月
- PRO: $9.99 / 月
- ULTRA: $23.99 / 月
- MEGA: $59.99 / 月
功能概述
Unsplash Image Search API 是一个功能强大、对开发者友好的API,用于从Unsplash的海量图库中搜索高质量图像,并提供全面的元数据。
- 支持通过关键词搜索图像
- 支持分页
- 提供全面的图像元数据
- 包含摄影师署名信息
- 包含图像标签和描述
认证方式
使用此API需要:
- 一个RapidAPI账户
- 在RapidAPI上订阅此API
- 在
X-RapidAPI-Key请求头中使用您的RapidAPI密钥
主要端点
搜索图像
- 方法:
GET - 路径:
/search - 描述:
searchImages
查询参数
| 参数名 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
| query | string | 是 | 搜索关键词 |
| page | integer | 否 | 页码(默认值: 1) |
响应结构
API返回JSON格式的响应,结构如下:
success: 布尔值,指示请求是否成功data: 包含搜索结果的对象total: 找到的图像总数total_pages: 总页数current_page: 当前页码per_page: 每页结果数results: 图像对象数组
图像对象结构
结果数组中的每个图像对象包含:
id: 唯一的图像标识符description: 图像描述或替代文本updated_at: 最后更新时间戳urls: 包含各种图像尺寸URL的对象user: 摄影师信息tags: 相关标签数组
示例响应
json { "id": "U-DgtDG6MRo", "description": "Tesla Model 3", "updatedAt": "2024-12-05T18:30:33Z", "urls": { "raw": "https://images.unsplash.com/photo-1585011664466-b7bbe92f34ef?ixid=M3wzNjc2NDl8MHwxfHNlYXJjaHwxfHxUZXNsYXxlbnwwfHx8fDE3MzM0NjcxMjd8MA&ixlib=rb-4.0.3", "full": "https://images.unsplash.com/photo-1585011664466-b7bbe92f34ef?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzNjc2NDl8MHwxfHNlYXJjaHwxfHxUZXNsYXxlbnwwfHx8fDE3MzM0NjcxMjd8MA&ixlib=rb-4.0.3&q=85", "regular": "https://images.unsplash.com/photo-1585011664466-b7bbe92f34ef?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjc2NDl8MHwxfHNlYXJjaHwxfHxUZXNsYXxlbnwwfHx8fDE3MzM0NjcxMjd8MA&ixlib=rb-4.0.3&q=80&w=1080", "small": "https://images.unsplash.com/photo-1585011664466-b7bbe92f34ef?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjc2NDl8MHwxfHNlYXJjaHwxfHxUZXNsYXxlbnwwfHx8fDE3MzM0NjcxMjd8MA&ixlib=rb-4.0.3&q=80&w=400", "thumb": "https://images.unsplash.com/photo-1585011664466-b7bbe92f34ef?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjc2NDl8MHwxfHNlYXJjaHwxfHxUZXNsYXxlbnwwfHx8fDE3MzM0NjcxMjd8MA&ixlib=rb-4.0.3&q=80&w=200" }, "user": { "username": "austin__ramsey", "name": "Austin Ramsey" }, "tags": [] }
最佳实践建议
- 使用具体的搜索查询以获得更好的结果
- 对大型结果集实施分页
- 在适当时缓存响应
- 显示图像时始终注明摄影师署名
支持与联系
- API支持: 请联系 m@hiapi.xyz 或访问我们的RapidAPI页面
- 速率限制: 请参考您的RapidAPI订阅计划以了解速率限制详情




