Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
API Google Photos cho phép bạn xây dựng trải nghiệm ảnh và video phong phú vào ứng dụng, nhờ đó, bạn có thể tương tác với hàng trăm triệu người dùng chọn Google Photos. Chúng tôi cung cấp hai API mạnh mẽ để giúp bạn đạt được mục tiêu:
Google Photos Picker API: Tạo một cách an toàn để người dùng chọn ảnh và video trong thư viện Google Photos thông qua việc tích hợp liền mạch với ứng dụng Google Photos.
API Thư viện Google Photos: Tải lên và quản lý ảnh cũng như album mà ứng dụng của bạn tạo, tất cả đều nằm trong thư viện Google Photos của người dùng.
Bạn có thể tích hợp với các API của Google Photos mà không cần tham gia chương trình đối tác. Tuy nhiên, nếu ứng dụng của bạn có khả năng vượt quá hạn mức hạn mức về phạm vi cung cấp chung, hãy bày tỏ sự quan tâm đến chương trình đối tác của Google Photos.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-08-29 UTC."],[[["\u003cp\u003eGoogle Photos APIs allow you to integrate photo and video experiences into your applications using the Picker and Library APIs.\u003c/p\u003e\n"],["\u003cp\u003eThe Picker API enables users to securely select photos and videos from their Google Photos library for use in your app.\u003c/p\u003e\n"],["\u003cp\u003eThe Library API lets your app upload, manage, and organize photos and albums within users' Google Photos libraries.\u003c/p\u003e\n"],["\u003cp\u003eUsers must be signed in to a Google Account to utilize these APIs, as service accounts are not supported.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should review API usage policies, UX guidelines, and quota limits before building applications with the Google Photos APIs.\u003c/p\u003e\n"]]],["Google Photos offers two APIs: the Picker API, which allows users to select media from their Google Photos library for sharing with your app, and the Library API, which lets your app upload and manage content within a user's Google Photos library. Both utilize OAuth 2.0 for authorization. Developers can enable these APIs, manage media items and albums, and explore them via API Explorer and code samples. Review user data policies and UX guidelines before development. A partner program is available for high-volume apps.\n"],null,["# About the Google Photos APIs\n\nThe Google Photos APIs enable you to build rich photo and video experiences into\nyour applications, allowing you to interact with the hundreds of millions of\npeople who choose Google Photos. We offer two powerful APIs to help you achieve\nyour goals:\n\n- **Google Photos Picker API:** Create a secure way for users to select photos and videos from their Google Photos library through a seamless integration with the Google Photos app.\n- **Google Photos Library API:** Upload and manage photos and albums your app creates, all within your users' Google Photos libraries.\n\nGet started by [enabling one (or more) of the APIs and configuring your\napp](/photos/overview/configure-your-app).\n\nKey concepts\n------------\n\n**Library:** This represents the collection of media items stored in the user's\nGoogle Photos account.\n\n- The Picker API lets [users select media items from their\n library](/photos/picker/guides/sessions) to share with your app.\n- The Library API lets you [manage content within the user's\n library](/photos/library/guides/list) that was created by your app.\n\n**Albums:** These are collections of media items within a user's library, which\ncan be shared with other users.\n\n- The Library API lets you to [create and manage\n albums](/photos/library/guides/manage-albums) created by your app.\n\n**Media items:** These include photos, videos, and their associated metadata.\n\n- Picker API:\n - The Picker API returns [PickedMediaItem](/photos/picker/reference/rest/v1/mediaItems) objects representing the media items selected by the user.\n - Learn more about [listing and retrieving media\n items](/photos/picker/guides/media-items) with the Picker API.\n- Library API:\n - The Library API works with [MediaItem](/photos/library/reference/rest/v1/mediaItems) objects representing media items uploaded or created by your app.\n - Learn more about [working with media items](/photos/library/guides/list) with the Library API.\n\nAuthorization\n-------------\n\nLike other Google REST APIs, the Google Photos APIs use [OAuth\n2.0](/identity/protocols/OAuth2) to handle authorization.\n| **Note:** The Google Photos APIs don't support service accounts. To use these APIs, users must be signed in to a valid Google Account.\n\nUsing the Google Photos APIs\n----------------------------\n\nBefore you get started on your app development, review the following documents:\n\n- [Photos API User Data and Developer Policy](/photos/support/api-policy)\n- [UX guidelines](/photos/support/ux-guidelines) for designing your app\n- The Google Photos APIs [limits and quotas](/photos/overview/api-limits-quotas)\n\nExplore the APIs\n----------------\n\nThere are multiple ways to try out the APIs.\n\nTry out the APIs without writing any code using the API Explorer available in\nthe reference documentation.\n\n- [Try creating a session with the Picker API](/photos/picker/reference/rest/v1/sessions/create)\n- [Try creating an album with the Library API](/photos/library/reference/rest/v1/albums/create)\n\nExplore our code samples demonstrating key features and use cases.\n\n- [Picker API samples](/photos/picker/samples)\n- [Library API samples](/photos/library/samples)\n\nPartner program\n---------------\n\nYou can integrate with the Google Photos APIs without joining the\npartner program. However, if your app is likely to exceed the general\navailability [quota limit](/photos/overview/api-limits-quotas), express interest\nin the [Google Photos\npartner program](/photos/partner-program).\n\nLearn more\n----------\n\n[Configure your app](/photos/overview/configure-your-app): set up your project\nand try out a sample.\n\nGuides: the how-to guides and concepts around using the Google Photos APIs.\n\n- [Picker API guides](/photos/picker/guides/get-started-picker)\n- [Library API guides](/photos/library/guides/get-started-library)\n\nReference docs: the API reference documentation\n\n- [Picker API reference documentation](/photos/picker/reference/rest)\n- [Library API reference documentation](/photos/library/reference/rest)\n\n[Support](/photos/support/how-to-get-help): the support options for requesting\nhelp or giving feedback."]]