Overview
This node allows users to search for media items within their Google Photos library. It supports filtering by album ID, media type (photos, videos, or all media), content categories to include or exclude, and options to include archived media or exclude media not created by the app. Users can choose to return all results or limit the number of results returned. This node is useful for automating media management, organizing photos and videos, or integrating Google Photos content into workflows.
Use Case Examples
- Search for all photos in a specific album.
- Retrieve videos only, excluding certain content categories like 'Receipts' or 'Screenshots'.
- Include archived media items in the search results.
- Limit the search results to a maximum number of media items.
Properties
| Name | Meaning |
|---|---|
| Return All | Whether to return all results or only up to a given limit. |
| Limit | Maximum number of media items to return when 'Return All' is false. |
| Filters | Collection of filters to refine the media item search, including album ID, media type, content categories to include or exclude, and options to include archived media or exclude non-app created media. |
Output
JSON
jsonmediaItems- Array of media items matching the search criteria.
Dependencies
- Requires Google Photos OAuth2 API credentials for authentication.
Troubleshooting
- Ensure the OAuth2 credentials are correctly configured and authorized to access the Google Photos library.
- If no results are returned, verify the filter criteria such as album ID and content categories are correct and that the media items exist.
- Be aware of API rate limits and pagination; use 'Return All' carefully to avoid excessive data retrieval.
Links
- Google Photos API - Search Media Items - Official documentation for searching media items using the Google Photos API.