Skip to content
HALOWERK

File Formats and Conversion

deep link media crop fit

Spatial media fragment checks a pixel crop against the supplied native frame size and measures its visible area. Use it when an agent needs to verify that a shared deep link selects the intended content.

POST https://format.halowerk.com/v1/deep-link-media-crop-fit

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
urlstringYes
widthintegerYes
heightintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 1800,
      "minLength": 1
    },
    "width": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    },
    "height": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000
    }
  },
  "required": [
    "url",
    "width",
    "height"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "url": "https://media.w3.org/2010/05/sintel/trailer.mp4#xywh=pixel:0,0,120,80",
  "width": 320,
  "height": 240
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "fully_inside": {
          "type": "boolean"
        },
        "visible_pixels": {
          "type": "integer"
        },
        "requested_pixels": {
          "type": "integer"
        }
      },
      "required": [
        "fully_inside",
        "visible_pixels",
        "requested_pixels"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’