Media attributes include any metadata about the Data Row (e.g., width, height, MIME type, etc).

Get data row media attributes

Use the dataRow query to get all available media attributes for a Data Row.

Field

Description

dataRow.id

Data Row of the asset (media) to query.

mediaAttributes

This will return the available attributes for the specified Data Row.

Response:

📘

Note

Not all fields are guaranteed to be present and payload may differ based on asset type.

Field

Asset type

Type

Description

mimeType

Video, Image, Text, Tiled imagery

String

Media type. Will be one of the following:

  • video/mp4

  • image/jpeg

  • text/plain

  • application/x-tms-geo (tiled imagery: EPSG3857)

  • application/x-tms-simple (tiled imagery: Simple)

  • application/json (other)

width

Video, Image

Int

Image or frame width in pixels

height

Video, Image

Int

Image or frame height in pixels.

codec

Video

String

Indicates the video compression standard.

duration

Video

Int

Duration of the video in seconds.

frameRate

Video

Int

Frame rate per second

frameCount

Video

Int

Number of frames in the video.

query GetDataRowMediaAttributes {
  dataRow (where: {id: "<DATAROW_ID>"}) {
    mediaAttributes
  }
}
// Sample response: video
{
  "data": {
    "dataRow": {
      "mediaAttributes": {
        "codec": "avc1",
        "width": 1920,
        "height": 1080,
        "duration": 10,
        "mimeType": "video/mp4",
        "frameRate": 10,
        "frameCount": 100
      }
   }
}
// Sample response: image
{
  "data": {
    "dataRow": {
      "mediaAttributes": {
        "width": 3872,
        "height": 2592,
        "mimeType": "image/jpeg"
      }
   }
}
// Sample response: text
{
  "data": {
    "dataRow": {
      "mediaAttributes": {
        "mimeType": "text/plain"
      }
   }
}
// Sample response: tiled imagery
{
  "data": {
    "dataRow": {
      "mediaAttributes": {
        "mimeType": "application/x-tms-geo"
      }
   }
}