定價頁 | 點此進入 |
免費方式 | N/A |
定價方式 | 商務咨詢 |
采購渠道 | 官網 |
API適用國家/地區 | 美國 |
支持語言 | N/A |
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服務商,確保技術兼容性和成本效益。