Random Unsplash Photo
unsplash_random_photoFetch a single random Unsplash photo, filtered by keyword, orientation, collections, topics, or user. Includes ready-to-use attribution and multiple image sizes with customizable imgix URLs.
Instructions
Fetch a single random photo from Unsplash. Optionally filter by search term, orientation, collections, topics, or user. Returns photo URLs, dimensions, color, and ready-to-use attribution (text + HTML). Content is filtered to "high" safety by default. Read-only. Each photo includes a raw imgix base URL — append params for a custom size/format, e.g. ?w=800&h=600&q=80&fm=webp&fit=crop — plus fixed full/regular/small/thumb sizes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Limit the random selection to photos matching this search term. | |
| topics | No | Comma-separated topic ID(s)/slug(s) to narrow the selection. | |
| username | No | Limit the selection to photos by this Unsplash username. | |
| collections | No | Comma-separated public collection ID(s) to narrow the selection. | |
| orientation | No | Filter by photo orientation. | |
| content_filter | No | Content safety filter. Defaults to "high" to exclude potentially unsafe content. | high |