Configure the Embed Field

This article explains what the Embed field is and how to configure it in the Custom Type builder.

The Embed field allows you to add a valid oEmbed URL, like YouTube, Vimeo, or Soundcloud.

Screenshot of the Embed field in the drag-and-drop editor.

You can read more about the oEmbed format, view a list of supported providers, and see more examples of JSON responses on the oEmbed website.

The visual builder

When configuring an Embed field, you'll see the options to set the Field name, API ID, and Field placeholder.

Screenshot of the Embed field editor.

JSON model

The following table displays the JSON configuration options available in the JSON editor.


string (required)

Value must be Embed



Object for the configuration options



The label that shows up for the field in the document editor



A user-friendly placeholder for the field in the entry editor

Example JSON configuration

The following JSON defines an Embed field with label and placeholder:

"example_embed": {
  "type": "Embed",
  "config": {
    "label": "oEmbed Link",
    "placeholder": "Paste an oEmbed supported service resource URL"

API response example

Here is an API response example of an Embed field with the API ID of example_embed:

// API response example of an Embed field

  // ...
    "title":"Prismic — Basics",
    "html":"<iframe width=\"200\" height=\"113\" src=\"\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"

Was this article helpful?
Not really
Yes, Thanks

Can't find what you're looking for? Spot an error in the documentation? Get in touch with us on our Community Forum or using the feedback form above.