---
title: "Search Unsplash"
method: POST
path: "/admin/photos/search-unsplash"
tags: ["admin-photos"]
---

# Search Unsplash

`POST /admin/photos/search-unsplash`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/admin/photos/search-unsplash`
- Auth: none declared

Search Unsplash for photos.
Accepts orientation: "landscape" (default) or "portrait".
Returns 6 results per page; pass `page` to load additional results.

## Request body

- UnsplashSearchRequest: Request for Unsplash search.
  - `query` string, required
  - `orientation` string
  - `page` integer

## Response `200`

Successful Response

- UnsplashSearchResponse: Response from Unsplash search.
  - `photos` UnsplashPhoto[], required
    - `img_url` string, required
    - `full_url` string, required
    - `photographer` string, required
    - `photographer_username` string, required
  - `page` integer, required
  - `total_pages` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stardrift/apis/stardrift-api.md) - [All operations](https://skmtc.dev/stardrift/apis/stardrift-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stardrift/apis/stardrift-api/revisions/be9ed1e6c38a?raw)
