You are viewing the legacy documentation for the Google Photos Library API.
Library API overview
Stay organized with collections
Save and categorize content based on your preferences.
Using the Google Photos Library API your app can read, write, and share photos and videos in
Google Photos.
The Library API is a RESTful
API with JSON payload. The structure
of the API is based on the product concepts of Google Photos:
- Library: media stored in the user's
Google Photos account.
- Albums: media collections which can be
shared with other users.
- Media items: photos, videos, and
their metadata.
- Sharing: feature that enables users to
share their media with other users.
Authorization
Like other Google REST APIs, the Library API uses OAuth
2.0 to handle authorization.
Your app can request access to the user's Google Photos library via the
various authorization
scopes provided by the
API.
Note that the Library API does not support service accounts; to use this
API, users must be signed in to a valid Google Account.
Using the Library API
Before you get started on your app development, keep the following in mind:
Explore the API
To try out the Library API without writing any code, use the API Explorer
available in the reference documentation.
Here are some methods to try using the API Explorer:
Check out our code sample that shows some of the key
features of the Library API.
Partner program
You can integrate with the Google Photos Library API without joining the partner program.
However, if your app is likely to exceed the general availability quota
limit, express interest in the Google Photos
partner program.
Learn more
Some places to go from here:
- Get started: configure your project and
try out the sample.
- Guides: the how-to guides and concepts around
using the Library API.
- Reference: the API reference documentation
- Support: the support options for
requesting help or giving feedback.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["The Google Photos Library API allows your app to read, write, and share photos and videos stored in Google Photos."],["It uses a RESTful API with JSON payload and OAuth 2.0 for authorization, requiring users to be signed in to a Google Account."],["Before developing your app, review the acceptable use policy, UX guidelines, and API limits and quotas."],["Explore the API through the API Explorer or by checking out the provided code samples."],["Consider joining the Google Photos partner program if your app is likely to exceed the general availability quota limit."]]],["The Google Photos Library API enables apps to interact with Google Photos content, reading, writing, and sharing photos and videos. It's a RESTful API using JSON payloads, organized around libraries, albums, media items, and sharing. Access requires OAuth 2.0 authorization via specific scopes, and service accounts are not supported. Developers should adhere to usage policies, UX guidelines, and quotas. The API can be explored through the API Explorer, and code samples are available. Those who need more quota should apply to the Google Photos partner program.\n"]]