Pixabay
摄影图片
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 摄影
简介
Pixabay API 提供对 Pixabay 免费图片库的搜索访问——照片、插画和矢量图,还有视频。内容在 Pixabay Content License 下免费使用(允许商用)。免费层比大多数图库 API 更宽裕。
快速开始
搜索图片(替换 YOUR_KEY):
curl "https://pixabay.com/api/?key=YOUR_KEY&q=cat&image_type=photo&per_page=5"
按方向与分类筛选:
curl "https://pixabay.com/api/?key=YOUR_KEY&q=city&orientation=horizontal&category=places"
视频:
curl "https://pixabay.com/api/videos/?key=YOUR_KEY&q=ocean"
认证方式
- 在 pixabay.com 注册,从账号页面复制 API 密钥。
- 通过
key查询参数携带。 - (无效密钥返回 HTTP 400——已实测。)
速率限制与注意事项
- 免费层:每 IP 100 次请求/小时——在免费图库 API 中属于较宽裕的。
- 搜索需要有效的
q;image_type=photo|illustration|vector筛选内容类型。 - 结果含
webformatURL(可热链的预览图)和largeImageURL;page/per_page分页。 - 所有图片可免费商用(Pixabay Content License);无需署名。
常见问题
Pixabay 免费吗? 是的——免费层(100 次/小时)且内容免费使用。
如何获取密钥? 在 pixabay.com 注册——密钥在账号页面。
图片可以商用吗? 可以——Pixabay Content License 允许商业使用且无需署名。
摄影 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Bruzu Image generation with query string | API Key | Yes | Yes | ↗ |
| CheetahO Photo optimization and resize | API Key | Yes | Unknown | ↗ |
| Dagpi Image manipulation and processing | API Key | Yes | Unknown | ↗ |
| Duply Generate, Edit, Scale and Manage Images and Videos Smarter & Faster | API Key | Yes | Yes | ↗ |
| DynaPictures Generate Hundreds of Personalized Images in Minutes | API Key | Yes | Yes | ↗ |