# How do I show/pull twitter images in pm.visualizer

**URL:** <https://community.postman.com/t/how-do-i-show-pull-twitter-images-in-pm-visualizer/36105>\
**Category:** Help Hub\
**Tags:** image, twitter\
**Created:** [June 9, 2022, 8:50pm UTC](https://community.postman.com/t/how-do-i-show-pull-twitter-images-in-pm-visualizer/36105 "2022-06-09T20:50:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxlmx](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dxlmx](https://community.postman.com/u/dxlmx)\
**Post date:** [June 9, 2022, 8:50pm UTC](https://community.postman.com/t/how-do-i-show-pull-twitter-images-in-pm-visualizer/36105/1 "2022-06-09T20:50:14Z")

</div>

**My question:**  
How do I show/pull twitter images in pm.visualizer?

**Details:**  
To my understanding “media\_keys” are for twitter images, and media.

**How I found the problem:**  
Media keys do show in the Json response, but don’t know how to pull them into visualizer.  
this is an example of the pretty json

```auto
{
    "data": [

        {
            "text": "blah blah blah",
            "created_at": "2022-06-08T15:19:12.000Z",
            "attachments": {
                "media_keys": [
                    "13_1534555545646006275"
                ]
            },
            "id": "####"
        },

```

**I’ve already tried:**  
This was a long shot, and it didn’t work

```auto
<img src="{{media_keys}}">

```

or this

```auto
<img src="{{attachments.media_keys}}">

```

Thank you

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 9, 2022, 9:06pm UTC](https://community.postman.com/t/how-do-i-show-pull-twitter-images-in-pm-visualizer/36105/2 "2022-06-09T21:06:27Z")

</div>

Never done it myself but according to the [doc’s](https://developer.twitter.com/en/docs/twitter-ads-api/creatives/guides/identifying-media)

> The media key is the ID plus a numeric prefix and an underscore.

It sounds like you might be looking for the ‘Entities’ \> ‘Media object’ \> ‘media\_url’

> media\_url  
> String  
> An http:// URL pointing directly to the uploaded media file. Example:  
> “media\_url”:“[http://pbs.twimg.com/media/DOhM30VVwAEpIHq.jpg](http://pbs.twimg.com/media/DOhM30VVwAEpIHq.jpg)”

> **[Entities object](https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/entities#media)**

With the URL you could then use the image HTML as your template like this;

```auto
<img src="http://pbs.twimg.com/media/DOhM30VVwAEpIHq.jpg">

```

---

<div class="post-metadata">

**Author:** ![dxlmx](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dxlmx](https://community.postman.com/u/dxlmx)\
**Post date:** [June 9, 2022, 9:08pm UTC](https://community.postman.com/t/how-do-i-show-pull-twitter-images-in-pm-visualizer/36105/3 "2022-06-09T21:08:12Z")

</div>

Thank you very much I’ll try that.
