I have SharePoint 2013 Picture Library. I am using below REST API to access my library.

_spPageContextInfo.webAbsoluteUrl + "/_api/web/getfolderbyserverrelativeurl('" + listName + "')/files" + filter

But it does not return all the fields of this Picture Library.

I need to fetch Description and ServerRelativeUrl.

But the Description field is missing in the response.

Please refer below REST API response that I am getting ::

enter image description here

please suggest me if anyone have any idea.


1 Answer 1


Try it as below:

_spPageContextInfo.webAbsoluteUrl + "/_api/web/getfolderbyserverrelativeurl('" + listName + "')/files" + filter&$expand=ListItemAllFields

You need to add ListItemAllFields in the REST endpoint

  • Thanks a lot Gautam for your quick response. Appending '$expand=ListItemAllFields' to the URL worked for me. Feb 20, 2017 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.