openapi: 3.1.0 info: title: Google Photos Library Albums MediaItems:search API description: The Google Photos Library API allows you to manage photos, videos, and albums in Google Photos. You can create and manage albums, upload and retrieve media items, and share albums with other users. version: v1 contact: name: Google url: https://developers.google.com/photos servers: - url: https://photoslibrary.googleapis.com/v1 security: - oauth2: [] tags: - name: MediaItems:search paths: /mediaItems:search: post: operationId: searchMediaItems summary: Search media items description: Searches for media items in a user's Google Photos library. requestBody: content: application/json: schema: type: object properties: albumId: type: string pageSize: type: integer pageToken: type: string filters: type: object properties: dateFilter: type: object contentFilter: type: object mediaTypeFilter: type: object properties: mediaTypes: type: array items: type: string enum: - ALL_MEDIA - VIDEO - PHOTO responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/MediaItemListResponse' tags: - MediaItems:search components: schemas: MediaItemListResponse: type: object properties: mediaItems: type: array items: $ref: '#/components/schemas/MediaItem' nextPageToken: type: string MediaItem: type: object properties: id: type: string description: Identifier for the media item. description: type: string productUrl: type: string format: uri baseUrl: type: string format: uri mimeType: type: string mediaMetadata: type: object properties: creationTime: type: string format: date-time width: type: string height: type: string photo: type: object properties: cameraMake: type: string cameraModel: type: string focalLength: type: number apertureFNumber: type: number isoEquivalent: type: integer video: type: object properties: cameraMake: type: string cameraModel: type: string fps: type: number status: type: string enum: - UNSPECIFIED - PROCESSING - READY - FAILED filename: type: string securitySchemes: oauth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://accounts.google.com/o/oauth2/auth tokenUrl: https://oauth2.googleapis.com/token scopes: https://www.googleapis.com/auth/photoslibrary: View and manage your Google Photos library https://www.googleapis.com/auth/photoslibrary.readonly: View your Google Photos library https://www.googleapis.com/auth/photoslibrary.sharing: Manage and add to shared albums