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

# Search Unsplash

`POST /admin/photos/search-unsplash`

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/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/eb694aedc555/schema)
