immich_api_rs 1.137.3

Immich API
Documentation
# \SearchApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_assets_by_city**]SearchApi.md#get_assets_by_city | **GET** /search/cities | 
[**get_explore_data**]SearchApi.md#get_explore_data | **GET** /search/explore | 
[**get_search_suggestions**]SearchApi.md#get_search_suggestions | **GET** /search/suggestions | 
[**search_asset_statistics**]SearchApi.md#search_asset_statistics | **POST** /search/statistics | 
[**search_assets**]SearchApi.md#search_assets | **POST** /search/metadata | 
[**search_large_assets**]SearchApi.md#search_large_assets | **POST** /search/large-assets | 
[**search_person**]SearchApi.md#search_person | **GET** /search/person | 
[**search_places**]SearchApi.md#search_places | **GET** /search/places | 
[**search_random**]SearchApi.md#search_random | **POST** /search/random | 
[**search_smart**]SearchApi.md#search_smart | **POST** /search/smart | 



## get_assets_by_city

> Vec<models::AssetResponseDto> get_assets_by_city()


This endpoint requires the `asset.read` permission.

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::AssetResponseDto>**](AssetResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_explore_data

> Vec<models::SearchExploreResponseDto> get_explore_data()


This endpoint requires the `asset.read` permission.

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec<models::SearchExploreResponseDto>**](SearchExploreResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_search_suggestions

> Vec<String> get_search_suggestions(r#type, country, include_null, make, model, state)


This endpoint requires the `asset.read` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**r#type** | [**SearchSuggestionType**].md |  | [required] |
**country** | Option<**String**> |  |  |
**include_null** | Option<**bool**> | This property was added in v111.0.0 |  |
**make** | Option<**String**> |  |  |
**model** | Option<**String**> |  |  |
**state** | Option<**String**> |  |  |

### Return type

**Vec<String>**

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## search_asset_statistics

> models::SearchStatisticsResponseDto search_asset_statistics(statistics_search_dto)


This endpoint requires the `asset.statistics` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**statistics_search_dto** | [**StatisticsSearchDto**]StatisticsSearchDto.md |  | [required] |

### Return type

[**models::SearchStatisticsResponseDto**](SearchStatisticsResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## search_assets

> models::SearchResponseDto search_assets(metadata_search_dto)


This endpoint requires the `asset.read` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**metadata_search_dto** | [**MetadataSearchDto**]MetadataSearchDto.md |  | [required] |

### Return type

[**models::SearchResponseDto**](SearchResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## search_large_assets

> Vec<models::AssetResponseDto> search_large_assets(album_ids, city, country, created_after, created_before, device_id, is_encoded, is_favorite, is_motion, is_not_in_album, is_offline, lens_model, library_id, make, min_file_size, model, person_ids, rating, size, state, tag_ids, taken_after, taken_before, trashed_after, trashed_before, r#type, updated_after, updated_before, visibility, with_deleted, with_exif)


This endpoint requires the `asset.read` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**album_ids** | Option<[**Vec<uuid::Uuid>**]uuid::Uuid.md> |  |  |
**city** | Option<**String**> |  |  |
**country** | Option<**String**> |  |  |
**created_after** | Option<**String**> |  |  |
**created_before** | Option<**String**> |  |  |
**device_id** | Option<**String**> |  |  |
**is_encoded** | Option<**bool**> |  |  |
**is_favorite** | Option<**bool**> |  |  |
**is_motion** | Option<**bool**> |  |  |
**is_not_in_album** | Option<**bool**> |  |  |
**is_offline** | Option<**bool**> |  |  |
**lens_model** | Option<**String**> |  |  |
**library_id** | Option<**uuid::Uuid**> |  |  |
**make** | Option<**String**> |  |  |
**min_file_size** | Option<**u32**> |  |  |
**model** | Option<**String**> |  |  |
**person_ids** | Option<[**Vec<uuid::Uuid>**]uuid::Uuid.md> |  |  |
**rating** | Option<**f64**> |  |  |
**size** | Option<**f64**> |  |  |
**state** | Option<**String**> |  |  |
**tag_ids** | Option<[**Vec<uuid::Uuid>**]uuid::Uuid.md> |  |  |
**taken_after** | Option<**String**> |  |  |
**taken_before** | Option<**String**> |  |  |
**trashed_after** | Option<**String**> |  |  |
**trashed_before** | Option<**String**> |  |  |
**r#type** | Option<[**AssetTypeEnum**].md> |  |  |
**updated_after** | Option<**String**> |  |  |
**updated_before** | Option<**String**> |  |  |
**visibility** | Option<[**AssetVisibility**].md> |  |  |
**with_deleted** | Option<**bool**> |  |  |
**with_exif** | Option<**bool**> |  |  |

### Return type

[**Vec<models::AssetResponseDto>**](AssetResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## search_person

> Vec<models::PersonResponseDto> search_person(name, with_hidden)


This endpoint requires the `person.read` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**name** | **String** |  | [required] |
**with_hidden** | Option<**bool**> |  |  |

### Return type

[**Vec<models::PersonResponseDto>**](PersonResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## search_places

> Vec<models::PlacesResponseDto> search_places(name)


This endpoint requires the `asset.read` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**name** | **String** |  | [required] |

### Return type

[**Vec<models::PlacesResponseDto>**](PlacesResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## search_random

> Vec<models::AssetResponseDto> search_random(random_search_dto)


This endpoint requires the `asset.read` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**random_search_dto** | [**RandomSearchDto**]RandomSearchDto.md |  | [required] |

### Return type

[**Vec<models::AssetResponseDto>**](AssetResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## search_smart

> models::SearchResponseDto search_smart(smart_search_dto)


This endpoint requires the `asset.read` permission.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**smart_search_dto** | [**SmartSearchDto**]SmartSearchDto.md |  | [required] |

### Return type

[**models::SearchResponseDto**](SearchResponseDto.md)

### Authorization

[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)