MrMaps
MrMaps
IImmich
Created by MrMaps on 11/26/2024 in #help-desk-support
Total images retrieved through pagination doesn't match "total"
Hi everyone, First of all, I want to thank you for this amazing app, it's incredibly useful and works really well! I have a question about API usage. I'm trying to retrieve data for people/faces using the /people endpoint. I currently have 46655 images, so I’m querying them in batches of 1000 (the max allowed). However, the process stops working after approximately 42000 images. Subsequent batches return 0 results, and the hasNextPage field is set to False. To calculate the number of pages, I’m dividing the total number of images by the batch size, i.e., 46655/1000, resulting in 47 batches in total. However, starting from batch 43 (inclusive), I consistently get 0 results. Does anyone know why this is happening? Any insights would be greatly appreciated!
18 replies