unsplash

Import Unsplash photo to Blob storage

Triggers the Unsplash download-tracking endpoint, stores an optimized copy on your Blob, and returns { url, alt, attribution }. Per the Unsplash API license you MUST display attribution.html (or an equivalent link credit) wherever the imported image is shown. Body: { "photoId": "<id from search>" }.

post/api/v1/media/unsplash/import

Request

  • Base URL: https://slatehut.com
  • URL: https://slatehut.com/api/v1/media/unsplash/import
  • Auth: HTTP bearer

Request body

photoIdstring required

Unsplash photo id from search results

Response

urlstring uri required
altstring required

Plain-text credit line suitable for alt.

Changes

No recorded changes to this operation across all 1 revision of this API.