I'm looking at getting a thumbnail image of documents when uploaded into a document library. I can see the thumbnail preview when I click on ellipses (...) context menu of the document. Is there a way to somehow get this document using Rest API?

I did try the below for a .png file.


It worked for .png file but not for word, excel or PDF documents.

Thanks in advance

1 Answer 1


Not sure if you know rest api but This should return the url of the thumbnail -->


  • Hi Billy, I guess i know some little rest api. Tried _api/web/lists/getbytitle('Documents')/items(1)?$select=id got some result back but tried /_api/web/lists/getbytitle('title')/items(1)?$select=EncodedAbsThumbnailUrl but nothing am i missing something?
    – naijacoder
    Sep 24, 2020 at 2:53
  • Actually tried _api/web/lists/getbytitle('Documents')/items(1)?select=EncodedAbsThumbnailUrl and gopt some results but for some ServerRedirectedEmbedUri returns null
    – naijacoder
    Sep 24, 2020 at 3:02

Your Answer

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

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