Unsplash

Beautiful Free Images & Pictures

Go to site
Explore
/
Apps
/
Unsplash

Unsplash API Integrations

Build and run workflows using the Unsplash API. Use 1000s of open source triggers and actions across 500+ apps. Or write custom code to integrate any app or API in seconds.

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.unsplash.com/me`,
  headers: {
    Authorization: `Bearer ${auths.unsplash.oauth_access_token}`,
  },
})

Authentication

Unsplash uses OAuth authentication. When you connect your Unsplash account, Pipedream will open a popup window where you can sign into Unsplash and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Unsplash API.

Pipedream requests the following authorization scopes when you connect your account:

publicread_userwrite_userread_photoswrite_photoswrite_likeswrite_followersread_collectionswrite_collections
OAuth Request Configurations:
  1. authorization
    GEThttps://unsplash.com/oauth/authorize?client_id={{custom_fields.access_key}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://unsplash.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{custom_fields.access_key}}&client_secret={{custom_fields.secret_key}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}