# MediaFire API

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

Category: Utilities. Region: global. 1 endpoint at `https://api.hoshime.com/v1/mediafire/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/mediafire
## GET /v1/mediafire/download

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

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `url` | string | yes | 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 | no | 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 | no | 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 | no | 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 fields: `downloadUrl` (string), `id` (string), `name` (string), `size` (string), `uploaded` (string), `viewUrl` (string)

```bash
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"
```
