PhotoPrism Subjects API
The Subjects API from PhotoPrism — 3 operation(s) for subjects.
The Subjects API from PhotoPrism — 3 operation(s) for subjects.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/photoprism:photoprism-subjects-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: 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 Subjects API
version: v1
servers:
- url: https://demo.photoprism.app
security:
- BearerAuth: []
tags:
- name: Subjects
paths:
/api/v1/subjects:
get:
operationId: SearchSubjects
parameters:
- description: maximum number of results
in: query
name: count
required: true
schema:
type: integer
maximum: 100000
minimum: 1
- description: search result offset
in: query
name: offset
schema:
type: integer
maximum: 100000
minimum: 0
- description: sort order
in: query
name: order
schema:
type: string
enum:
- name
- count
- added
- relevance
- description: show hidden
in: query
name: hidden
schema:
type: string
enum:
- 'yes'
- 'no'
- description: minimum number of files
in: query
name: files
schema:
type: integer
- description: search query
in: query
name: q
schema:
type: string
responses:
'200':
description: OK
headers:
X-Count:
description: The actual number of subjects returned
schema:
type: number
X-Limit:
description: The limit of the number of subjects to be returned
schema:
type: number
X-Offset:
description: The offset that was used
schema:
type: number
content:
application/json:
schema:
items:
$ref: '#/components/schemas/search.Subject'
type: array
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
summary: finds and returns subjects as JSON
tags:
- Subjects
/api/v1/subjects/{uid}:
get:
operationId: GetSubject
parameters:
- description: subject uid
in: path
name: uid
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/entity.Subject'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
summary: returns a subject as JSON
tags:
- Subjects
put:
operationId: UpdateSubject
parameters:
- description: subject uid
in: path
name: uid
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/entity.Subject'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'409':
description: Conflict
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'413':
description: Request Entity Too Large
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
summary: updates subject properties
tags:
- Subjects
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/form.Subject'
description: properties to be updated (only submit values that should be changed)
required: true
/api/v1/subjects/{uid}/like:
delete:
operationId: DislikeSubject
parameters:
- description: subject uid
in: path
name: uid
required: true
schema:
type: string
responses:
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
summary: removes the favorite flag from a subject
tags:
- Subjects
post:
operationId: LikeSubject
parameters:
- description: subject uid
in: path
name: uid
required: true
schema:
type: string
responses:
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'404':
description: Not Found
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'429':
description: Too Many Requests
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/i18n.Response'
summary: flags a subject as favorite
tags:
- Subjects
components:
schemas:
entity.Subject:
properties:
About:
type: string
Alias:
type: string
Bio:
type: string
Birthday:
type: string
CreatedAt:
type: string
DeletedAt:
type: string
Excluded:
type: boolean
Favorite:
type: boolean
FileCount:
type: integer
Hidden:
type: boolean
Name:
type: string
Notes:
type: string
PhotoCount:
type: integer
Private:
type: boolean
Slug:
type: string
Src:
type: string
Thumb:
type: string
ThumbSrc:
type: string
Type:
type: string
UID:
type: string
UpdatedAt:
type: string
Verified:
type: boolean
type: object
search.Subject:
properties:
Alias:
type: string
Birthday:
type: string
Excluded:
type: boolean
Favorite:
type: boolean
FileCount:
type: integer
Hidden:
type: boolean
MarkerSrc:
type: string
MarkerUID:
type: string
Name:
type: string
PhotoCount:
type: integer
Private:
type: boolean
Slug:
type: string
Thumb:
type: string
ThumbSrc:
type: string
Type:
type: string
UID:
type: string
Verified:
type: boolean
type: object
form.Subject:
properties:
About:
type: string
Alias:
type: string
Bio:
type: string
Birthday:
type: string
Excluded:
type: boolean
Favorite:
type: boolean
Hidden:
type: boolean
Name:
type: string
Notes:
type: string
Private:
type: boolean
Thumb:
type: string
ThumbSrc:
type: string
Verified:
type: boolean
type: object
i18n.Response:
properties:
code:
type: integer
details:
type: string
error:
type: string
message:
type: string
messageId:
type: string
messageParams:
items: {}
type: array
type: object
securitySchemes:
BearerAuth:
in: header
name: Authorization
type: apiKey
externalDocs:
description: Learn more ›
url: https://docs.photoprism.app/developer-guide/api/