PhotoPrism Photos API

The Photos API from PhotoPrism — 17 operation(s) for photos.

Business capability
Photo & Image Libraries AE-170.30

Operations 20

POST /api/v1/batch/photos/approve approves multiple photos that are currently under review #
POST /api/v1/batch/photos/archive moves multiple photos to the archive #
POST /api/v1/batch/photos/delete permanently removes multiple or all photos from the archive #
POST /api/v1/batch/photos/edit returns and updates the metadata of multiple photos #
POST /api/v1/batch/photos/private toggles private state of multiple photos #
POST /api/v1/batch/photos/restore restores multiple photos from the archive #
GET /api/v1/geo finds photos and returns results as JSON, so they can be displayed on a map or… #
GET /api/v1/photos finds pictures and returns them as JSON #
GET /api/v1/photos/view finds pictures and returns a viewer-formatted JSON result for the lightbox #
GET /api/v1/photos/{uid} returns picture details as JSON #
PUT /api/v1/photos/{uid} updates picture details and returns them as JSON #
POST /api/v1/photos/{uid}/approve marks a photo in review as approved #
POST /api/v1/photos/{uid}/files/{fileuid}/primary sets the primary file for a photo #
POST /api/v1/photos/{uid}/files/{fileuid}/unstack removes a file from an existing photo stack #
POST /api/v1/photos/{uid}/label adds a label to a photo #
DELETE /api/v1/photos/{uid}/label/{id} removes a label from a photo #
PUT /api/v1/photos/{uid}/label/{id} changes a photo label #
DELETE /api/v1/photos/{uid}/like removes the favorite flags from a photo #
POST /api/v1/photos/{uid}/like flags a photo as favorite #
GET /api/v1/photos/{uid}/yaml returns picture details as YAML #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/photoprism:photoprism-photos-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

photoprism-photos-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  description: 'API request bodies and responses are usually JSON-encoded, except for binary data and some of the OAuth2 endpoints. Note that the `Content-Type` header must be set to `application/json` for this, as the request may otherwise fail with error 400.

    When clients have a valid access token, e.g. obtained through the `POST /api/v1/session` or `POST /api/v1/oauth/token` endpoint, they can use a standard Bearer Authorization header to authenticate their requests. Submitting the access token with a custom `X-Auth-Token` header is supported as well.'
  title: PhotoPrism Photos API
  version: v1
servers:
- url: https://demo.photoprism.app
security:
- BearerAuth: []
tags:


# --- truncated at 32 KB (60 KB total) ---
# Full source: https://artifacts.apis.io/photoprism/openapi/photoprism-photos-api-openapi.yml