Skip to content

MediaFire API

1 endpointUtilitiesGlobalsocial:read1 real examples

Returns the name, size and direct download link of a public MediaFire file from its share URL.

View as Markdown
GET/mediafire/downloadA public MediaFire file by its share URL: name, size and the direct download link.

download

GET/v1/mediafire/download

A public MediaFire file by its share URL: name, size and the direct download link.

scope social:read1 unitcached 5 min

Parameters

url
string
required
MediaFire share URL (https://www.mediafire.com/file/<id>/<name>/file) or the file id.
e.g. https://www.mediafire.com/file/rutx9o67641wjm9/MediaFire_-_Getting_Started.pdf/file
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

6 fields
downloadUrlstring
idstring
namestring
sizestring
uploadedstring
viewUrlstring
curl "https://api.hoshime.com/v1/mediafire/download?url=https%3A%2F%2Fwww.mediafire.com%2Ffile%2Frutx9o67641wjm9%2FMediaFire_-_Getting_Started.pdf%2Ffile" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "downloadUrl": "https://download2389.mediafire.com/rtje33ubf60gTPnTIItqH25ka_Ij2-0Kt--iKpDLfwQjhJSF3tv4uLCStKluGvibdV73hOWjVO3QCt0GhKklpydkVxnwsO3-wfneN6Y-K…",
    "id": "rutx9o67641wjm9",
    "name": "MediaFire - Getting Started.pdf",
    "size": "372.37KB",
    "uploaded": "2017-01-07 12:16:54",
    "viewUrl": "https://www.mediafire.com/file/rutx9o67641wjm9/file"
  },
  "meta": {
    "cached": false,
    "endpoint": "download",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "mediafire",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open