K
K
kirillleogky2019-12-13 13:28:32
JavaScript
kirillleogky, 2019-12-13 13:28:32

How to issue unsplash API?

Tell me how to create an unsplash API so that there is a search for the city and certain landscapes in the photo.
I made with mountains and clouds in mind:

https://api.unsplash.com/photos/random?orientation=landscape&per_page=1&query=clouds, mountains&client_id=ТОКЕН

But if we take into account, for example, Beijing as a city, then it does not search around the city.
I have tried these options and everyone is not looking around the city:
https://api.unsplash.com/photos/random?orientation=landscape&per_page=1&query=town,beijin,clouds, mountains&client_id=ТОКЕН

https://api.unsplash.com/photos/random?orientation=landscape&per_page=1&query=city,beijin,clouds, mountains&client_id=ТОКЕН

https://api.unsplash.com/photos/random?orientation=landscape&per_page=1&query=beijin,clouds, mountains&client_id=ТОКЕН

Tell me how to enter it correctly so that it takes into account both the city and certain characteristics of the photo, for example, mountains or a waterfall?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question