定价页 | 点此进入 |
免费方式 | N/A |
定价方式 | 商务咨询 |
采购渠道 | 官网 |
API适用国家/地区 | 美国 |
支持语言 | N/A |
Shutterstock API 服务商
评分 69
(-1)
7
Shutterstock是什么公司
更多Shutterstock是一个提供库存图片、照片、矢量图、视频和音乐的在线平台。用户可以通过搜索关键词,找到数百万种呈现故事的方式。Shutterstock还提供AI内容生成工具,以及企业解决方案。主营业务包括图片、视频、新闻传媒、音乐、音效、模板等。
Shutterstock的API接口(产品与功能)
如果你正在从事涉及照片、视频或音乐的项目,你可能会发现Shutterstock的公共API文档非常有用。它们允许开发者以编程方式访问Shutterstock庞大的媒体资产库。
要访问Shutterstock的公共API,你需要一个API密钥。你可以在开发者门户注册一个免费账户并申请一个API密钥。一旦你有了密钥,你就可以开始探索API端点并开始发送请求。
Shutterstock提供了几个API端点来访问他们的媒体资产。最常用的端点是那些用于搜索和下载图片、视频和音乐的端点。
以下是如何使用这些端点的一些示例:
fetch('https://api.shutterstock.com/v2/images/search?query=cat', {
method: 'GET',
headers: {
Authorization: 'Bearer 你的访问令牌'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.log(error));
fetch('https://api.shutterstock.com/v2/videos/search?query=cat', {
method: 'GET',
headers: {
Authorization: 'Bearer 你的访问令牌'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.log(error));
fetch('https://api.shutterstock.com/v2/image-downloads/图片ID', {
method: 'POST',
headers: {
Authorization: 'Bearer 你的访问令牌'
}
})
.then(response => response.blob())
.then(blob => URL.createObjectURL(blob))
.then(url => console.log(url))
.catch(error => console.log(error));
fetch('https://api.shutterstock.com/v2/video-downloads/视频ID', {
method: 'POST',
headers: {
Authorization: 'Bearer 你的访问令牌'
}
})
.then(response => response.blob())
.then(blob => URL.createObjectURL(blob))
.then(url => console.log(url))
.catch(error => console.log(error));
Shutterstock的公共API是开发者在涉及媒体资产的项目中的强大工具。通过上面提供的示例,你可以开始使用API来搜索和下载图片、视频和音乐。要了解更多关于不同端点及其参数的信息,请查看Shutterstock开发者门户。
Shutterstock API的价格(API免费方式与收费标准)
在选择API服务商时,综合评估以下维度,选择最适合自己需求的API服务商,确保技术兼容性和成本效益。