You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
api/v1/images?limit=200&sort=Newest&period=AllTime&cursor=0 works fine and has a valid value for nextCursor in metadata. But for api/v1/images?limit=200&sort=Most%20Reactions&period=AllTime&cursor=0 the nextCursor variable is null.
It works fine when the sort value is Newest, but for other values the nextCursor variable is null
Steps to reproduce the problem
Select a sort value other than Newest
Modify this text with selected sort value https://civitai.com/api/v1/images?limit=200&sort=<your sort value>&period=AllTime&cursor=0
Paste this link to browser's address bar and check the metadata->nextCursor
What should have happened?
The nextCursor variable had to have valid integer cursor value.
What platforms do you use to access the site?
Windows
What browsers do you use to access the site?
Mozilla Firefox
Additional information, context and logs
I tried to move cursor as the total items count but I am not sure if the new cursor is going to bring me the next results or take me to the wrong list
I tried with page variable rather than cursor variable but the page variable is finished at 1 and nextCursor variable is null
The text was updated successfully, but these errors were encountered:
You can use nextPage instead which still works when using 'cursor'.
I faced a similar problem (which still persists) which was that I couldn't get nextPage nor nextCursor and since I couldn't find a solution to it I had to change the behaviour of my app to load images newest to latest since the only API routes that gave me a 'nextPage' were the ones that use 'cursor' and also sort by 'Newest'.
Well actually, this also doesn't work right now since as of writing (Friday, February 2nd, 2024) a new problem occurred that gives a status 500 error if there are any query parameters given at all but I hope it's just server maintenance.
What happened?
api/v1/images?limit=200&sort=Newest&period=AllTime&cursor=0
works fine and has a valid value fornextCursor
inmetadata
. But forapi/v1/images?limit=200&sort=Most%20Reactions&period=AllTime&cursor=0
thenextCursor
variable is null.Newest
, but for other values thenextCursor
variable is nullSteps to reproduce the problem
Newest
https://civitai.com/api/v1/images?limit=200&sort=<your sort value>&period=AllTime&cursor=0
metadata->nextCursor
What should have happened?
The
nextCursor
variable had to have valid integer cursor value.What platforms do you use to access the site?
Windows
What browsers do you use to access the site?
Mozilla Firefox
Additional information, context and logs
page
variable rather thancursor
variable but thepage
variable is finished at 1 andnextCursor
variable is nullThe text was updated successfully, but these errors were encountered: