[BUG] Search API only returns 250 results with no way of paging #1259

Closed
opened 2026-02-05 01:03:37 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @agross on GitHub (Aug 20, 2023).

The bug

Calling curl -L -X GET '<server>/api/search?type=VIDEO' -H 'Accept: application/json' -H 'x-api-key: the-key' returns just 250 results.

$ curl ... | jq '.assets.items | length'
250

$ curl ... | jq '.assets.total'
789

Limiting results without the possibility to page is not useful if you have a lot of videos in your collection.

The OS that Immich Server is running on

Linux

Version of Immich Server

v1.74.0

Version of Immich Mobile App

v1.74.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

unrelated

Your .env content

unrelated

Reproduction steps

See above.

Additional information

No response

Originally created by @agross on GitHub (Aug 20, 2023). ### The bug Calling `curl -L -X GET '<server>/api/search?type=VIDEO' -H 'Accept: application/json' -H 'x-api-key: the-key'` returns just 250 results. ```sh $ curl ... | jq '.assets.items | length' 250 $ curl ... | jq '.assets.total' 789 ``` Limiting results without the possibility to page is not useful if you have a lot of videos in your collection. ### The OS that Immich Server is running on Linux ### Version of Immich Server v1.74.0 ### Version of Immich Mobile App v1.74.0 ### Platform with the issue - [X] Server - [X] Web - [X] Mobile ### Your docker-compose.yml content ```YAML unrelated ``` ### Your .env content ```Shell unrelated ``` ### Reproduction steps ```bash See above. ``` ### Additional information _No response_
Author
Owner

@jrasm91 commented on GitHub (Aug 20, 2023):

It's more useful than 0 results 😁

@jrasm91 commented on GitHub (Aug 20, 2023): It's more useful than 0 results 😁
Author
Owner

@bo0tzz commented on GitHub (Aug 20, 2023):

Duplicate of #3072. This limit is in place because of browser performance concerns. Some work has been done recently to improve that across the app, but this hasn't reached the search results page yet.

@bo0tzz commented on GitHub (Aug 20, 2023): Duplicate of #3072. This limit is in place because of browser performance concerns. Some work has been done recently to improve that across the app, but this hasn't reached the search results page yet.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1259