具
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/download | A public MediaFire file by its share URL: name, size and the direct download link. |
download
GET
/v1/mediafire/downloadA public MediaFire file by its share URL: name, size and the direct download link.
scope social:read1 unitcached 5 min
Parameters
urlstring 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 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
downloadUrl | string |
id | string |
name | string |
size | string |
uploaded | string |
viewUrl | string |
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"
const res = await fetch("https://api.hoshime.com/v1/mediafire/download?url=https%3A%2F%2Fwww.mediafire.com%2Ffile%2Frutx9o67641wjm9%2FMediaFire_-_Getting_Started.pdf%2Ffile", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mediafire/download?url=https%3A%2F%2Fwww.mediafire.com%2Ffile%2Frutx9o67641wjm9%2FMediaFire_-_Getting_Started.pdf%2Ffile", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }