Get all properties of page library files using sharepoint REST API in android RRS feed

  • Question

  • i'm currently using the below rest api call to get only the folder details. Now i've to get all the files and its field property values inside the Pages/PublishingNewsHF folder

    http://<site url>/_api/Web/GetFileByServerRelativeUrl('/Pages/PublishingNewsHF')/ListItemAllFields"

    Monday, March 13, 2017 5:09 AM

All replies

  • Hi Hari, 

    Please try the below url;


    Please make sure to update your site url, relative path and folder name.

    K Mohit

    Monday, March 13, 2017 6:42 AM
  • Hi,

    We can use the following REST API to get all the folders and files in the "PublishingNewsHF" folder.

    http://<site url>/_api/Web/GetFolderByServerRelativeUrl('/Pages/PublishingNewsHF')?$expand=Folders,Files

    If you only want to get all the files in the "PublishingNewsHF" folder. We can use this:

    http://<site url>/_api/Web/GetFolderByServerRelativeUrl('/Pages/PublishingNewsHF')?$expand=Files

    More information:

    Working with folders and files with REST

    Best Regards,


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Tuesday, March 14, 2017 8:57 AM
  • please try:

    var url = String.format("{0}/_api/web/GetFolderByServerRelativeUrl('/Pages')/Files?$expand=ListItemAllFields"_spPageContextInfo.webAbsoluteUrl);

    • Edited by Anh Vo (Mr) Tuesday, October 29, 2019 6:00 PM
    Tuesday, October 29, 2019 6:00 PM