Get Attachment URL from list item (en)
<script type="text/javascript"> $(document).ready(function() { // Rest URL var requestUri = "/_api/lists/getbytitle('MyCustomList')/items?$select=Title,ID,Attachments,AttachmentFiles&$expand=AttachmentFiles"; $.ajax({ url: requestUri, type: "GET", headers: { "ACCEPT": "application/json;odata=verbose" }, success: function (data) { $.each(data.d.results, function (i, item){ var title = item.Title; var id = item.ID; var attachmentUrl = item.AttachmentFiles.results[0]; //alert(attachmentUrl.FileName); //alert(attachmentUrl.ServerRelativeUrl); }) }, error: function () { alert("