# Unsplash on Onekey > 2 endpoints for Unsplash (0 stable, 2 beta), 1 to 5 credits each. Category: Entertainment, art & culture. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/unsplash Reference (Markdown): https://onekey.dev/docs/api/unsplash.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 2 mapped Unsplash endpoints return each: - `author.avatarUrl` (URL): 2 - `author.displayName` (string): 2 - `author.id` (string): 2 - `author.username` (string): 2 - `content.createdAt` (ISO 8601 date): 2 - `content.id` (string): 2 - `content.text` (string): 2 - `content.url` (URL): 2 - `engagement.likes` (integer): 2 - `media.thumbnailUrl` (URL): 2 - `media.url` (URL): 2 - `engagement.views` (integer): 1 - `entity.stats.downloads` (integer): 1 ## Endpoints ### unsplash.photo Fetch an Unsplash photo. - Price: 1 credit per fresh call. Status: beta. Returns: one record. - Request: `GET https://api.onekey.dev/v1/unsplash/photo?id=abc123` with header `x-api-key: YOUR_API_KEY` - Parameters: - `id` (string, required): Photo id - Fields returned: `content.id`, `content.text`, `content.url`, `media.url`, `media.thumbnailUrl`, `author.id`, `author.username`, `author.displayName`, `author.avatarUrl`, `engagement.likes`, `content.createdAt`, `entity.stats.downloads`, `engagement.views` - Reference: https://onekey.dev/docs/api/unsplash/photo.md ### unsplash.search Search Unsplash photos. - Price: 5 credits per fresh call. Status: beta. Returns: a list. - Request: `GET https://api.onekey.dev/v1/unsplash/search?q=mountain` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search text - Fields returned: `content.id`, `content.text`, `content.url`, `media.url`, `media.thumbnailUrl`, `author.id`, `author.username`, `author.displayName`, `author.avatarUrl`, `engagement.likes`, `content.createdAt` - Reference: https://onekey.dev/docs/api/unsplash/search.md ## Sample request ```bash curl "https://api.onekey.dev/v1/unsplash/photo?id=abc123" \ -H "x-api-key: YOUR_API_KEY" ```