---
title: "Fetch metadata for a remote asset URL"
method: GET
path: "/api/assets/remote-metadata"
tags: ["assets"]
---

# Fetch metadata for a remote asset URL

`GET /api/assets/remote-metadata`

[cloud-only] Fetches and returns metadata (content type, size, filename) for a remote URL without downloading the full content.

## Query parameters

- `url` string, uri, required

## Response `200`

Remote metadata

- AssetMetadataResponse — [cloud-only] Metadata for a remotely hosted asset resolved by URL.
  - `content_length` integer, required — Size of the asset in bytes (-1 if unknown)
  - `content_type` string — MIME type of the asset
  - `filename` string — Suggested filename for the asset from source
  - `name` string — Display name or title for the asset from source
  - `tags` string[] — Tags for categorization from source
  - `preview_image` string — Preview image as base64-encoded data URL
  - `validation` ValidationResult — [cloud-only] Result of validating a set of asset operations.
    - `is_valid` boolean, required — Overall validation status (true if all checks passed)
    - `errors` ValidationError[] — Blocking validation errors that prevent download
      - `code` string, required — Machine-readable error code
      - `message` string, required — Human-readable error message
      - `field` string, required — Field that failed validation
    - `warnings` ValidationError[] — Non-blocking validation warnings (informational only)
      - `code` string, required — Machine-readable error code
      - `message` string, required — Human-readable error message
      - `field` string, required — Field that failed validation

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `422` — Failed to retrieve metadata from source
- `500` — Internal server error

## Changes

- **2026-05-22** `c4db9e1283df` — 5 info
  - added the optional property `name` to the response with the `200` status
  - added the optional property `preview_image` to the response with the `200` status
  - added the optional property `tags` to the response with the `200` status
  - added the optional property `validation` to the response with the `200` status
  - …1 more
- **2026-05-22** `09a5075587c8` — 3 info
  - api operation id `getAssetRemoteMetadata` removed and replaced with `getRemoteAssetMetadata`
  - added the non-success response with the status `422`
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/assets/remote-metadata/get.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/c4db9e1283df/schema)
