Search media by date, category or type
search_libraryNarrow down app-uploaded photos and videos by date range, content category, media type, favorites, or album, returning only items that match your criteria.
Instructions
Filter media by date range, content category, media type or favourites. Only media uploaded by this app is returned. To reach anything else in the user's library, use start_pick_session.
There is no free-text search in the Google Photos API: you cannot search for "beach" as a word. Categories are the closest equivalent, and they are Google's own classifier, not tags the user set. Call describe_filter_capabilities for the exact values.
An album_id cannot be combined with any filter; Google rejects that combination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many to return per page, 1-100. | |
| account | No | Which connected Google account to act as, by the name it was configured under (or its email). Defaults to the first one. Call list_accounts to see them. | |
| album_id | No | Search inside one album. Cannot be combined with any filter below. | |
| end_date | No | Inclusive end, as YYYY-MM-DD. | |
| categories | No | Include only these content categories. See describe_filter_capabilities. | |
| media_type | No | Restrict to photos or videos. | |
| page_token | No | Continue from a previous page. Pass the `next_page_token` from the last result. Omit for the first page. | |
| start_date | No | Inclusive start, as YYYY-MM-DD. | |
| favorites_only | No | Only items the user marked as a favourite. | |
| include_archived | No | Include archived items. Default false. | |
| exclude_categories | No | Exclude these categories. |