An open API service indexing awesome lists of open source software.

https://github.com/jerdog/sample-unsplash-img-get


https://github.com/jerdog/sample-unsplash-img-get

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Sample Unsplash API in Javascript

_taken from [here](https://javascript.plainenglish.io/a-beginners-guide-to-unsplash-api-in-javascript-2524c51ae1f3)

## Requirements

- Install node packages (`unsplash-js` and `node-fetch`)

```bash
npm install
```

- create .env file with Unsplash API key, via [Dashboard](https://unsplash.com/oauth/applications)

```bash
UNSPLASH_KEY=API_KEY_FROM_UNSPLASH
```

- Create a folder called `images` to store your results
- Run via `node index.js`