Stock photos from Unsplash for the design editor
Stock photos from Unsplash for the design editor (media:read)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
GET
Searches Unsplash on the server's key (UNSPLASH_ACCESS_KEY); without a query, its editorial feed. Without a key, configured is false and data is empty. Pictures load straight from Unsplash's CDN; credit the author with author_url and page_url.
header
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
query?stringLength
length <= 100page?integerRange
1 <= value <= 100Photos, 30 a page
application/json- response
configured*booleanWhether this server has an Unsplash key
data*array<>curl -X GET 'https://staqly.example.com/v1/stock/photos'Example Response
{ "configured": true, "data": [ { "id": "string", "width": 0, "height": 0, "alt": "string", "thumb": "string", "url": "string", "author": "string", "author_url": "string", "page_url": "string" } ]}