Skip to main content

embeds

Creates, updates, deletes, gets or lists an embeds resource.

Overview

Nameembeds
TypeResource
Idcloudflare.streams.embeds

Fields

The following fields are returned by SELECT queries:

Retreieve embed Code HTML response.

NameDatatypeDescription
contentsstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectidentifier, account_idFetches an HTML code snippet to embed a video in a web page delivered through Cloudflare. On success, returns an HTML fragment for use on web pages to display a video. On failure, returns a JSON response body.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
identifierstringResource identifier.

SELECT examples

Fetches an HTML code snippet to embed a video in a web page delivered through Cloudflare. On success, returns an HTML fragment for use on web pages to display a video. On failure, returns a JSON response body.

SELECT
contents
FROM cloudflare.streams.embeds
WHERE identifier = '{{ identifier }}' -- required
AND account_id = '{{ account_id }}' -- required
;