Load Data Using Secure API Keys from a Third-Party API with Netlify Serverless Functions

InstructorJason Lengstorf

Share this video with your friends

Send Tweet

We'll a single set of data using a serverless function and multiple APIs. We already have our API for pulling the corgi's data, the next step is getting the images from Unsplash using the Unsplash API.

To access the Unsplash API, create an account. Once your account has been registered for the API, go to your apps. Click “New Application”, and fill in the required details. To use the API you must abide by the terms and follow the API guidelines.

The API is available at https://api.unsplash.com/. Responses are sent as JSON.

The collection we'll be loading is available at api.unsplash.com/collections/48405776/photos You'll need your own API key!

Serverless functions help us comply with the terms and API guidelines by protecting API keys and making secure calls to 3rd Party APIs.