Get Images from a folder sorted by date using Admin api


1 comment

  • Avatar
    Eric Pasos

    Hi Anjan,

    The parameter direction can be used to sort the result by created_at date (see, for example,

    const options = {
    type: 'upload',
    prefix: uploadDir,
    max_results: 10,
    direction: 1,

    Alternatively, you can also use the Search API expression parameters (see, for example:


    Then you could also use the next_cursor to go through the next 10 items in the result list.

    Hope this helps, please let me know if you have any further questions.



    Comment actions Permalink

Please sign in to leave a comment.