Google Photos Library Media Items API

The Media Items API from Google Photos Library — 5 operation(s) for media items.

GitHub OpenAPI
Business capability
Photo & Image Libraries AE-170.30

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/mediaItems/{mediaItemsId} Get an app-created media item · Get mediaItems #
Ask an LLM
“How do I fetch one media item my app uploaded to a user's library?”
“Can I read the description and metadata of a single app-created photo?”
Tell an agent
Get media item {mediaItemsId}.
Show the description of app-created item {mediaItemsId}.
PATCH /v1/mediaItems/{mediaItemsId} Update an app-created media item · Patch mediaItems #
Ask an LLM
“How do I change the description on a photo my app uploaded?”
“Can I update only the description of an app-created media item?”
Tell an agent
Update the description of media item {mediaItemsId} to {description}.
Set the description of app-created item {mediaItemsId} to {description}.
GET /v1/mediaItems List app-created media items · List mediaItems #
Ask an LLM
“Which photos has my app uploaded to a user's library?”
“Can I page through all app-created media items in a library?”
Tell an agent
List all media items my app created in the user's library.
Show the next {pageSize} app-created photos after page token {pageToken}.
GET /v1/mediaItems:batchGet Get several app-created media items · Batch get mediaItems #
Ask an LLM
“How do I fetch a batch of app-created photos by their IDs?”
“Does the batch get return items in the same order as the IDs I pass?”
Tell an agent
Get app-created media items {mediaItemIds}.
Fetch the photos {mediaItemIds} my app uploaded.
POST /v1/mediaItems:batchCreate Upload several photos to a library · Batch create mediaItems #
Ask an LLM
“How do I upload multiple photos to a user's library in one call?”
“Can I add uploaded photos to an album and sort them into a position?”
Tell an agent
Create media items {newMediaItems} in the user's library.
Upload {newMediaItems} into album {albumId} at position {albumPosition}.
POST /v1/mediaItems:search Search app-created media items · Search mediaItems #
Ask an LLM
“Which photos did my app upload to a user's library?”
“Can I search app-created media items by date or filter?”
Tell an agent
Search app-created media items in the user's library.
Find app-created photos matching {filters}.

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/google-photos:google-photos-media-items-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

google-photos-media-items-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Photos Library Media Items API
  version: v1
  description: Generated from Google's published Discovery document for Photos Library API (photoslibrary v1, revision 20261110). 6 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://photoslibrary.googleapis.com
tags:


# --- truncated at 32 KB (34 KB total) ---
# Full source: https://artifacts.apis.io/google-photos/openapi/google-photos-media-items-api-openapi.yml