Tuesday, January 1, 2019

OneDrive 2019 Direct File Download URL Maker






Microsoft OneDrive Direct File Download URL Maker




<iframe src="https://onedrive.live.com/embed?cid=8F99649728BEB2F3&resid=8F99649728BEB2F3%211010&authkey=AFo8ZQ_-qj84DEQ" width="98" height="120" frameborder="0" scrolling="no"></iframe>  see instructions below, if you don't know how. NOTE : For images there an extra step below.



https://onedrive.live.com/embed?cid=8F99649728BEB2F3&resid=8F99649728BEB2F3%211010&authkey=AFo8ZQ_-qj84DEQ and populate the text-box below. To proceed click "Get Download Link" button.



4. Now, Click on Get Download Link button.


Text-box will be highlighted so you can copy the full link. To copy, right-click and choose  "Copy" or simply (ctrl-c) to copy link. Note: Entire URL is automatic selected for your convenience.





 


For Images, you get a direct url
  1. Right-click on image and select Embed. The Copy the URL to embed image now gives you direct download URL, but is super long.

    So you do not need to do the above! 


19 comments:

  1. any way we can help the same step for onedrive for business ?

    ReplyDelete
    Replies
    1. simply add this command below-

      &download=1

      at the end of shared link you've generated from onedrive business. It'll directly start downloading immediately

      Delete
  2. I believe that in business version download link is available directly. If not send me the link to convert.

    ReplyDelete
  3. Hello, is there a "reverse" way to get the direct link from the "preview link" I get from a supplier?

    ReplyDelete
  4. Use this "shared link" ie https://1drv.ms/u/s!AsRPggdGwZFcjWhqmIY9K_tzLnQI?e=1o1vOQ
    the expand it here (https://www.ipvoid.com/unshorten-url/) to get expanded URL ie
    https://onedrive.live.com/redir?resid=5C91C14607824FC4!1768&authkey=!AGqYhj0r-3MudAg&e=1o1vOQ

    Change redir? to download? in URL.

    Done.

    ReplyDelete
    Replies
    1. https://metadataconsulting.blogspot.com/2021/10/2021-Pro-Tip-Convert-OneDrive-Share-Link-to-Download-Link.html

      Delete
  5. Is there any way to make direct link for https://1drv.ms/u/ links?

    ReplyDelete
    Replies
    1. Kinda. You have to the MS shortened URL (https://1drv.ms/...) to expand it first. Using https://linkexpander.com/ for example. Take that URL and use in this page.

      Delete
  6. A lot of thanks! It's realy work fine! I'm don't check for images, but for excel file it work (checked).

    ReplyDelete
  7. Did you see Onedrive has changed it's embed coding? It now looks like this... https://1drv.ms/v/c/

    ReplyDelete
  8. That is not the embed link, that is the share link

    ReplyDelete
  9. The embed code has changed! Now looks like this:
    src="https://1drv.ms/u/c/fd21d22a9be551c7/IQMHzZkwgwd0R4ihUJCtZun5AVDadY3_LBrs9f1HXpo_jjI" width="98" height="120" frameborder="0" scrolling="no"

    This has changed recently as direct downloads did work now they don't.

    ReplyDelete
    Replies
    1. Your the 2nd person to bring this to my attention, and I see if I can hack the URL API to get a download - that link does expand to
      https://onedrive.live.com/redir?cid=fd21d22a9be551c7&resid=FD21D22A9BE551C7!s3099cd070783477488a15090ad66e9f9&embed=1&migratedtospo=true&redeem=aHR0cHM6Ly8xZHJ2Lm1zL3UvYy9mZDIxZDIyYTliZTU1MWM3L0lRTUh6Wmt3Z3dkMFI0aWhVSkN0WnVuNUFWRGFkWTNfTEJyczlmMUhYcG9fampJ

      Delete
  10. Thanks, i did move it to dropbox which works. Tried everything to get it to work, not sure if this is an error on onedrive or they've removed the option for direct downloads.

    ReplyDelete
  11. The insertion system has changed, now the generated links look like this:

    src="https://1drv.ms/t/c/a73d8b13f9e57609/IQOaTZgA3Bu-Q6v8ogXIT9gJAQeMqe7yaGm296aY-Ze0E7A" width="98" height="120" frameborder="0" scrolling="no"

    How could it be resolved?

    ReplyDelete
    Replies
    1. Hi Otavio, if you use a URL Link Expander, you see that your link gets converted to https://onedrive.live.com/redir?cid=a73d8b13f9e57609&resid=A73D8B13F9E57609!s00984d9a1bdc43beabfca205c84fd809&ithint=file,txt&embed=1&migratedtospo=true&redeem=aHR0cHM6Ly8xZHJ2Lm1zL3QvYy9hNzNkOGIxM2Y5ZTU3NjA5L0lRT2FUWmdBM0J1LVE2djhvZ1hJVDlnSkFRZU1xZTd5YUdtMjk2YVktWmUwRTdB

      and the Onedrive API for this links includes a redeem variable which has replaced authkey variable. Long story short, the new API prevents downloading. But there is a way around it, you get the download link from your browser - see update notice at top of page that links to https://metadataconsulting.blogspot.com/2024/06/OneDrive-Direct-Download-Link-Generator-for-2024-Breaking-API-Change.html

      Delete
  12. Hello! But the link from the browser is only valid for an hour. ((((

    ReplyDelete
    Replies
    1. Sucks ;( but MS got their act together with their upgraded API

      Delete