Search background images
const url = 'https://example.com/api/v1/appearance/unsplash/search?q=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/appearance/unsplash/search?q=example' \ --header 'Authorization: Bearer <token>'Searches for the background images. It requires a signed-in User with the data scope. It can return 400 if the request is invalid, 401 if the session is missing or expired, 403 if access is denied, 404 if the requested item does not exist, 429 if the request limit is reached and 503 if the service is temporarily unavailable. Route: /api/v1/appearance/unsplash/search. Inputs: q, page. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Unsplash search results without any remote image URL.
object
One search result. The thumbnail URL points back to this server.
object
Photographer and photo page credit from Unsplash.
object
Examplegenerated
{ "page": 1, "results": [ { "credit": { "name": "example", "photo_url": "example", "profile_url": "example" }, "description": "example", "id": "example", "thumbnail_url": "example" } ], "total": 1, "total_pages": 1}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}