# Get Media

{% hint style="info" %}
How to get a media
{% endhint %}

{% tabs %}
{% tab title="Request" %}
`GET https://mburger.cloud/api/media/<id>`

```bash
curl https://mburger.cloud/api/media/<id>
-H "Accept: application/json" 
-H "X-MBurger-Token: <token>" 
-H "X-MBurger-Version: 3"
```

#### &#x20;URL Parameters

| Name | Type | Required | Description |
| ---- | ---- | -------- | ----------- |
| id   | int  | Yes      | Media id.   |

#### &#x20;Parameters

| Name          | Type   | Required | Description                                                                                                                      |
| ------------- | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------- |
| image\_format | string | No       | Specify which image dimension to include in response. Values are *thumb*, *medium*, *large* and *original*. Default is *medium*. |
| {% endtab %}  |        |          |                                                                                                                                  |

{% tab title="Response" %}
When successful, a HTTP 200 and JSON like this is returned:

```bash
{
  "status_code": 0,
  "body": {
    "id": 1,
    "url": "https://cdn.mburger.cloud/storage/1/conversions/image-medium.jpg",
    "size": 12302,
    "mime_type": "image/jpeg"
  }
}
```

{% endtab %}
{% endtabs %}
