action stream_io_api_get_og { label: "Get OG" description: "Get an OpenGraph attachment for a link" provider: stream_io_api method: GET path: "/og" encoding: json input: { type: "object" properties: { url: { type: "string" } } additionalProperties: false } output: { type: "object" required: ["duration"] properties: { actions: { type: "array" items: { type: "object" required: ["name", "text", "type"] properties: { name: { type: "string" } style: { type: "string" } text: { type: "string" } type: { type: "string" } value: { type: "string" } } } } asset_url: { type: "string" description: "URL of detected video or audio" } author_icon: { type: "string" } author_link: { type: "string" description: "og:site" } author_name: { type: "string" description: "og:site_name" } color: { type: "string" } duration: { type: "string" } fallback: { type: "string" } fields: { type: "array" items: { type: "object" required: ["title", "value", "short"] properties: { short: { type: "boolean" } title: { type: "string" } value: { type: "string" } } } } footer: { type: "string" } footer_icon: { type: "string" } giphy: { type: "object" required: ["fixed_height", "fixed_height_downsampled", "fixed_height_still", "fixed_width", "fixed_width_downsampled", "fixed_width_still", "original"] properties: { fixed_height: { type: "object" required: ["frames", "height", "size", "url", "width"] properties: { frames: { type: "string" } height: { type: "string" } size: { type: "string" } url: { type: "string" } width: { type: "string" } } } fixed_height_downsampled: { type: "object" additionalProperties: true } fixed_height_still: { type: "object" additionalProperties: true } fixed_width: { type: "object" additionalProperties: true } fixed_width_downsampled: { type: "object" additionalProperties: true } fixed_width_still: { type: "object" additionalProperties: true } original: { type: "object" additionalProperties: true } } } image_url: { type: "string" description: "URL of detected image" } og_scrape_url: { type: "string" description: "extracted url from the text" } original_height: { type: "number" } original_width: { type: "number" } pretext: { type: "string" } text: { type: "string" description: "og:description" } thumb_url: { type: "string" description: "URL of detected thumb image" } title: { type: "string" description: "og:title" } title_link: { type: "string" description: "og:url" } type: { type: "string" description: "Attachment type, could be empty, image, audio or video" } } } }