• Resolved vi54

    (@vi54)


    Hello there. I need to use WordPress as a headless cms.
    I am able to perfectly get the folders via
    wp-json/wp/v2/media_folder/
    or even a specific folder via
    wp-json/wp/v2/media_folder/3 where 3 is the id.

    I do see a count variable which shows the amount of images in that id.

    How do I get all the actual images in that folder please?
    I am looking for a json rest api link to get all images as an array from a specific media_folder id.

    Thank you
    All the best

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @vi54 ,
    Thanks for your comment!

    We currently do not support using a JSON REST API to get images :(. However, I have forwarded this to our production team.

    Please let me know if I may be of further help by replying to [email protected].

    • This reply was modified 3 years, 2 months ago by Shalom Taiwo.
    Thread Starter vi54

    (@vi54)

    hello I look forward to a solution for this. I was hoping this would be a standard feature since rest api is a very sought after thing these days.

    I assume it’s easy for your developers to create the required endpoints. as the count is already there. Thus meaning the code of your plugin allready knows how many images there are in a certain gallery: It’s just a matter of adding an array with the actual images. In the meantime as deadlines are crawling upon me I will have to rely on a different media management plugin that supports this.

    All the best

    • This reply was modified 3 years, 2 months ago by vi54.
    • This reply was modified 3 years, 2 months ago by vi54.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get content of media folder via json’ is closed to new replies.