# /GetMediaByDealer

## GetMediaByDealer

<mark style="color:blue;">`GET`</mark> `https://app.b2see.co.uk/PublicAPI/GetMediaByDealer`

Ths endpoint allows you to get Image URLs, Video URLs and Video embed html for ALL vehicles for a Dealer.&#x20;

#### Query Parameters

| Name     | Type    | Description                          |
| -------- | ------- | ------------------------------------ |
| apiKey   | string  | API Key to authenticate 3rd party    |
| dealerId | integer | The unique identifier for the Dealer |

{% tabs %}
{% tab title="200 GarageID and API Key successfully match." %}

```javascript
  {
    "vrm": "3",
    "dateUpdated": "2021-02-06T15:55:24Z",
    "mediaList": [
      {
        "id": 2733477,
        "type": "Image",
        "label": "KIA - Image 1",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--sSqLUYKW--/pafouggjquqipd8qna1g.jpg"
      },
      {
        "id": 2733478,
        "type": "Image",
        "label": "KIA - Image 2",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--D_im7a7h--/jnl7xysysddiw1inofb4.jpg"
      },
      {
        "id": 2733479,
        "type": "Image",
        "label": "KIA - Image 3",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--7f3q4e3m--/fb7pja1mpomziaa5gtkx.jpg"
      },
      {
        "id": 2733480,
        "type": "Image",
        "label": "KIA - Image 4",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--GWH8wqqT--/yollubsrxbziljqru2iz.jpg"
      },
      {
        "id": 2733481,
        "type": "Image",
        "label": "KIA - Image 5",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--JaeooURC--/j6jyldqiadau7eyt5htk.jpg"
      },
      {
        "id": 2733482,
        "type": "Image",
        "label": "KIA - Image 6",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--XGqD8HJD--/slpzknjw0gzpm8gbrhib.jpg"
      },
      {
        "id": 2733483,
        "type": "Image",
        "label": "KIA - Image 7",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--crbyG8z3--/h3tjebz78qrlkrtpmckw.jpg"
      },
      {
        "id": 2733484,
        "type": "Image",
        "label": "KIA - Image 8",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--Qv2R3Zl4--/jfyo37qtsfi4pgrhza1r.jpg"
      },
      {
        "id": 2733485,
        "type": "Image",
        "label": "KIA - Image 9",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--JtZCdhAZ--/fw3zcpilvrelrz8dry5o.jpg"
      },
      {
        "id": 2733486,
        "type": "Image",
        "label": "KIA - Image 10",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--MAFPOOKS--/vdotwfw6fcr70bhdlxpe.jpg"
      },
      {
        "id": 2733487,
        "type": "Image",
        "label": "KIA - Image 11",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--jmqV3e4Z--/ghmfaag7bfzpdz76npsu.jpg"
      },
      {
        "id": 2733488,
        "type": "Image",
        "label": "KIA - Image 12",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--UKPEjALT--/hxfqipekn7ggdhajhnfg.jpg"
      },
      {
        "id": 2733489,
        "type": "Image",
        "label": "KIA - Image 13",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--jY-l7SaN--/tkb2ls3iplrf1u3aerc6.jpg"
      },
      {
        "id": 2733490,
        "type": "Image",
        "label": "KIA - Image 14",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--q2YSGj0G--/zeywbbpjhwdjtasx7bg9.jpg"
      },
      {
        "id": 2733491,
        "type": "Image",
        "label": "KIA - Image 15",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--xjB394pv--/a1zeurcwjl32a9tu1ujg.jpg"
      },
      {
        "id": 2733492,
        "type": "Image",
        "label": "KIA - Image 16",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--QckDbphH--/niw1neicxxvmrf15tejf.jpg"
      },
      {
        "id": 2733493,
        "type": "Image",
        "label": "KIA - Image 17",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--ZyAZhXto--/cgqbgqqtc1f4lcvdpog4.jpg"
      },
      {
        "id": 2733494,
        "type": "Image",
        "label": "KIA - Image 18",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--KguHZFE2--/y6eajl4kdesgwyrh0yqj.jpg"
      },
      {
        "id": 2733495,
        "type": "Image",
        "label": "KIA - Image 19",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--QC_n6ZcF--/jevchrmsogrr7zogh4la.jpg"
      },
      {
        "id": 2733496,
        "type": "Video",
        "label": "Video",
        "mediaUrl": "https://view.vzaar.com/22591888/player"
      }
    ]
  },
  {
    "vrm": "AF20TYK",
    "dateUpdated": "2021-03-29T09:55:01Z",
    "mediaList": [
      {
        "id": 2897859,
        "type": "Image",
        "label": "KIA - Image 1",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--27TQbAoN--/ausdhmimamsy1kxyi97d.jpg"
      },
      {
        "id": 2897860,
        "type": "Image",
        "label": "KIA - Image 2",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--gCNvb7BQ--/ytjwyo0bys7rsspwn5st.jpg"
      },
      {
        "id": 2897861,
        "type": "Image",
        "label": "KIA - Image 3",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--La_Esxqg--/wdykubudxjzp8a4pxzqq.jpg"
      },
      {
        "id": 2897862,
        "type": "Image",
        "label": "KIA - Image 4",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--zU8ryVvj--/tcavhihupfooii17e3fi.jpg"
      },
      {
        "id": 2897863,
        "type": "Image",
        "label": "KIA - Image 5",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--9L-X5o6s--/l4q0uegoadrl37oew6in.jpg"
      },
      {
        "id": 2897864,
        "type": "Image",
        "label": "KIA - Image 6",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--Wii0Unhb--/tqgbdncv6g2yk4pm61hj.jpg"
      },
      {
        "id": 2897865,
        "type": "Image",
        "label": "KIA - Image 7",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--_9FUEEJd--/ccdgcwgvutrmblqu8dum.jpg"
      },
      {
        "id": 2897866,
        "type": "Image",
        "label": "KIA - Image 8",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s---PEX-Je4--/if4qqtv8qo2ctnwmuctg.jpg"
      },
      {
        "id": 2897867,
        "type": "Image",
        "label": "KIA - Image 9",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--kFj6vgKI--/lidacnnackdw8jsgbjy2.jpg"
      },
      {
        "id": 2897868,
        "type": "Image",
        "label": "KIA - Image 10",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--iq6sUaLI--/uzmil6lzyvw40sixvoid.jpg"
      },
      {
        "id": 2897869,
        "type": "Image",
        "label": "KIA - Image 11",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--Ejb7gE_F--/nfesrnce6kjcwac1ucr0.jpg"
      },
      {
        "id": 2897870,
        "type": "Image",
        "label": "KIA - Image 12",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--ueQvVOVf--/irx0ivwgb3ebpusln9v6.jpg"
      },
      {
        "id": 2897871,
        "type": "Image",
        "label": "KIA - Image 13",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--Ln27gSN_--/bdvflcztblmxwklta37f.jpg"
      },
      {
        "id": 2897872,
        "type": "Image",
        "label": "KIA - Image 14",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--U0M04AkV--/rr9j7bcctehduzabaeu6.jpg"
      },
      {
        "id": 2897873,
        "type": "Image",
        "label": "KIA - Image 15",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--ojDAc-Q0--/uqf14u29ehohvfvkz2pj.jpg"
      },
      {
        "id": 2897874,
        "type": "Image",
        "label": "KIA - Image 16",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--O7eKL5Gv--/lpkl1mmpvh4xgiihwbkk.jpg"
      },
      {
        "id": 2897875,
        "type": "Image",
        "label": "KIA - Image 17",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--8LLmv8Pw--/ikyo8tohrzlfu2esxdl1.jpg"
      },
      {
        "id": 2897876,
        "type": "Image",
        "label": "KIA - Image 18",
        "mediaUrl": "https://res.cloudinary.com/b2see/image/upload/s--ooFtku_s--/i1o9nwrft1tpcac8vewg.jpg"
      },
      {
        "id": 2897877,
        "type": "Video",
        "label": "Video",
        "mediaUrl": "https://view.vzaar.com/22806194/player",
        "youTubeUrl": "https://www.youtube.com/embed/PEesAjPtPws?rel=0",
        "youTubeEmbedHtml": "<iframe id=\"ytplayer\" type=\"text/html\" width=\"640\" height=\"360\" src=\"https://www.youtube.com/embed/PEesAjPtPws?autoplay=1&rel=0\" frameborder=\"0\"></iframe>",
        "youTubeWatchUrl": "https://www.youtube.com/watch?v=PEesAjPtPws&rel=0"
      }
    ]
  }
```

{% endtab %}

{% tab title="404 dealerId or apiKey do not match." %}

```javascript
{
  "Success": false,
  "Message": "garageId does not exist"
}

or

{
  "Success": false,
  "Message": "API key not in correct format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)"
}
```

{% endtab %}
{% endtabs %}
