action mastodon_get_api_oembed { label: "get_api_oembed" description: "OEmbed as JSON" provider: mastodon method: GET path: "/api/oembed" encoding: json input: { type: "object" properties: { maxheight: { type: "integer" } maxwidth: { type: "integer" } url: { type: "string" } } additionalProperties: false } output: { description: "Represents a rich preview card that is generated using OpenGraph tags from a URL." required: ["description", "title", "type", "url"] properties: { author_name: { type: "string" description: "The author of the original resource." } author_url: { type: "string" description: "A link to the author of the original resource." } blurhash: { type: "string" description: "A hash computed by the [BlurHash algorithm](https://github.com/woltapp/blurhash), for generating colorful preview thumbnails when media has not been downloaded yet." } description: { type: "string" description: "Description of preview." } height: { type: "integer" description: "Height of preview, in pixels." } html: { type: "string" description: "HTML to be used for generating the preview card." } image: { type: "string" description: "Preview thumbnail (URL)." } provider_name: { type: "string" description: "The provider of the original resource." } provider_url: { type: "string" description: "A link to the provider of the original resource." } title: { type: "string" description: "Title of linked resource." } type: { type: "string" description: "The type of the preview card. String (Enumerable, oneOf)." enum: ["link", "photo", "video", "rich"] } url: { type: "string" description: "Location of linked resource." } width: { type: "integer" description: "Width of preview, in pixels." } } } }