Download1.5

Bulk Download


GET http://www.mediafire.com/api/1.5/file/zip.php
POST http://www.mediafire.com/api/1.5/file/zip.php

Description : : To download multiple files and folders into the same zip file, the 3rd-party application should call the api file/zip. All files and folders to be downloaded should belong to the same account.

Required Parameters:

  • keys : a comma-separated list of quickkeys and folderkeys to be zipped.

Optional Parameters:

  • session_token : A type 1 or type 2 session token. (Type 2 will require a call signature). The session token is needed only when:
    • The session user wants to include private items when downloading owned files and folders, or
    • If 'confirm_download' is set to 'yes', that is, when the session user wants to use their own bandwidth (if they are premium).
  • confirm_download : Confirm the download using the session user's bandwidth, and only if the user is premium. 'yes' or 'no' (default 'no').
  • meta_only : Only returns a json or xml response even on success. This will prevent returning the zip file back. 'yes' or 'no' (default 'no').
  • response_format : 'xml' or 'json' (default 'xml')

Examples:

Request
http://www.mediafire.com/zip.php?quick_key=cg66p0rrzs9grir, t358dkjt3us9532, f85bhsr59bn13ft&folder_key=th234ku896bet,xv7tjua93lfu1


GET http://www.mediafire.com/api/1.5/file/get_links.php
POST http://www.mediafire.com/api/1.5/file/get_links.php

Description : The Download API allows a 3rd-party software to generate the direct link for downloading or streaming. All accounts have a limited free 50 GB daily bandwidth. Premium accounts can still request direct links using their bandwidth after their free daily bandwidth is consumed. The remaining bandwidth is also returned in the response in Megabytes.

Required Parameters:

  • session_token : A type 1 or type 2 session token. (Type 2 will require a call signature).
  • quick_key : The quickkey, or the comma-separated list of quickkeys, of the file or files requiring a direct link.
  • signature : This is the call signature that is required to authenticate a type 2 session token transaction.
  • link_type : This should take the value 'direct_download'.

Optional Parameters:

  • response_format : 'xml' or 'json' (default 'xml')


Examples:

Request
http://www.mediafire.com/api/1.5/file/get_links.php?link_type=direct_download&session_token=8fj2978y5fn4592y7yf23457y27bcfy23ouhf2tno47y5f2384y5f23845&quick_key=fnp84f34fn9nf49&response_format=xml
Response
<response>
    <action>file/get_links</action>
    <links>
        <link>
            <quickkey>fnp84f34fn9nf49</quickkey>
            <direct_download>http://205.196.121.46/e9a3sfex5mig/fnp84f34fn9nf49/my_resume.doc</direct_download>
        </link>
    </links>
    <direct_download_free_bandwidth>224</direct_download_free_bandwidth>
    <result>Success</result>
    <current_api_version>1.2</current_api_version>
</response>