Search Photos via REST API [PHP Code]

Get a page of search results for photos sorted by relevance by sending a GET request to the Unsplash.com REST API. Replace {unsplash_apikey} with your own Unsplash Access key. The PHP code was automatically generated for the Search Photos Via REST API example.
Search Photos via REST API [PHP Code] Send
GET /search/photos?query=car HTTP/1.1
Host: api.unsplash.com
Authorization: Client-ID {unsplash_apikey}

Updated: Viewed: 10701 times
PHP code for Search Photos Via REST API example

PHP code for Search Photos Via REST API Example

This PHP code snippet was generated automatically for the Search Photos Via REST API example.
<< Back to the Search Photos Via REST API example

Generate code snippets for PHP and other programming languages

Convert your Search Photos Via REST API request to the PHP, JavaScript/AJAX, Node.js, Curl/Bash, Python, Java, C#/.NET code snippets using the PHP code generator.