Neynar Documentation

Overview

HTML metadata includes two main components:

Open Graph (OG) data

Standard metadata used across the web to describe content, including title, description, images, and more.

oEmbed data

A format for allowing embedded content from one site to be displayed on another site.

Accessing HTML Metadata

When retrieving frames or catalogs through the API, you can now access the html property which contains all the metadata associated with the frame or catalog URL.

Example Response

JSON

{
  "html": {
    "title": "Example Frame",
    "description": "This is an example frame with metadata",
    "image": "https://example.com/image.jpg",
    "url": "https://example.com/frame",
    "oembed": {
      "type": "rich",
      "version": "1.0",
      "title": "Example Frame",
      "author_name": "Example Author",
      "provider_name": "Example Provider",
      "html": "<iframe src='https://example.com/embed'></iframe>",
      "width": 600,
      "height": 400
    }
  }
}

Metadata Types

Open Graph Properties

The Open Graph properties available include:

oEmbed Types

The oEmbed data can be one of four types:

Rich

General embeddable content with HTML

Video

Video content with playback capabilities

Photo

Image content

Link

Simple link content

Each type has specific properties relevant to that media type.

Use Cases

HTML metadata in frames and catalogs enables:

Implementation Notes

This feature makes it easier to build rich, informative interfaces that display frame and catalog content with proper context and visual elements.