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 source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

You can do a lot of amazing things with the Unsplash API! Whether you're looking to build a photo-editing app, a wallpaper app, or a photo-sharing website, you can use the Unsplash API to get access to over a million free, high resolution photos. Here are some of the amazing things you can build with the Unsplash API:

  • Photo-editing apps: You can use the Unsplash API to access, search for, and download high resolution photos so your users can use them as a starting point for their own creations.
  • Wallpaper apps: Why deal with copyright issues? With the Unsplash API you can easily obtain millions of photos to use as wallpaper in your app.
  • Photo-sharing websites: Why spend countless hours uploading and curating photos? With the Unsplash API you can access, search for, and download high resolution photos directly onto your website.
  • Image recognition: With the Unsplash API, you can leverage the millions of photos available to develop AI-powered image recognition and object detection software.
  • Advertisement websites: With the Unsplash API, you can easily integrate ads into your website by providing high resolution photos and links to the products in the photos.
  • Image search engines: Thanks to the variety of photos available, you can create a powerful image search engine to help your users find what they're looking for quickly.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    unsplash: {
      type: "app",
      app: "unsplash",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.unsplash.com/me`,
      headers: {
        Authorization: `Bearer ${this.unsplash.$auth.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}}