> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Media Details

> Gets Meta media details for images and videos using image_hash or video_id

Gets Meta media details for images and videos using image\_hash or video\_id. Use this to get image URLs, video source URLs, thumbnails, preview links, dimensions, title, duration, or media info from a Meta ad creative, uploaded media, or existing creative. Accepts one or more image\_hashes and/or video\_ids.

|                      |                              |
| -------------------- | ---------------------------- |
| **App**              | Meta Ads                     |
| **Operation ID**     | `meta_ads_get_media_details` |
| **Type**             | Action                       |
| **Connection**       | `meta_ads` (required)        |
| **Credits per run**  | 1                            |
| **Agent / MCP tool** | Yes                          |

## Inputs

| Field          | Type            | Required | Default | Description                                                                                                                                                                                                                       |
| -------------- | --------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account`      | DynamicAccount  | Yes      | -       | Ad account that owns the media. Accepts an account ID with or without the 'act\_' prefix (for example 'act\_1234567890' or '1234567890')                                                                                          |
| `image_hashes` | array of string | No       | -       | One or more Meta image hashes (the image\_hash returned by a creative) to resolve into details such as url, permalink\_url, width, and height. Accepts a single hash or a list. Provide image\_hashes, video\_ids, or both.       |
| `video_ids`    | array of string | No       | -       | One or more Meta video IDs (the video\_id returned by a creative) to resolve into details such as source URL, thumbnail/poster URL, title, and length. Accepts a single ID or a list. Provide image\_hashes, video\_ids, or both. |

## Output

**Type**: `Dict`

Returns the account ID plus resolved image and video detail lists.

**Fields**: `account_id`, `images`, `videos`
