---
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

- RemoteAssetMetadata — [cloud-only] Metadata fetched from a remote asset URL.
  - `content_type` string — MIME type of the remote file
  - `content_length` integer — Size in bytes
  - `filename` string — Suggested filename from Content-Disposition or URL

## Other responses

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

## Changes

- **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/09a5075587c8/schema)
