I have this current link with me:


How to get the absolute URL of a SharePoint library file using URL like below?

I want use REST API to this URL:

  • (if it is one-timer) - I'd go to this link in browser and get file then use "details" to get real file path... Feb 4 at 22:37
  • My regret is that there are many :(
    – Hàn Vũ
    Feb 5 at 6:23
  • Try the following endpoint: https://<url>/_api/web/GetFileByServerRelativeUrl('/sites/<name>/DocLib8/<fileName>')/ListItemAllFields The absolute URL of the file can be accessed with response.d.EncodedAbsUrl Feb 5 at 19:03


Your Answer

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