---
title: "Fetch URL metadata"
method: GET
path: "/metadata"
tags: ["Metadata"]
---

# Fetch URL metadata

`GET /metadata`

## Request

- Base URL: `http://localhost:4000`
- URL: `http://localhost:4000/metadata`
- Auth: none declared

Extract title, description, and Open Graph image from a URL. Uses a 5-second timeout. Private network addresses (localhost, 169.254.x.x, etc.) are blocked.

## Query parameters

- `url` string, uri, required

## Response `200`

Metadata extracted

- MetadataResponse
  - `title` string, nullable
  - `description` string, nullable
  - `ogImage` string, uri, nullable

## Other responses

- `400`: Missing or invalid URL
- `403`: Access to private networks is forbidden
- `502`: Failed to fetch metadata from target URL

---

[API](https://skmtc.dev/reqistry/apis/public-apis-mobile-client-api.md) · [All operations](https://skmtc.dev/reqistry/apis/public-apis-mobile-client-api/llms.txt) · [OpenAPI document](https://skmtc.dev/reqistry/apis/public-apis-mobile-client-api/revisions/7f07b9ca718f?raw)
