获取帖子oEmbed内嵌信息/Get post oEmbed info

Instagramapi

About

获取帖子oEmbed内嵌信息/Get post oEmbed info

Documentation

获取帖子oEmbed内嵌信息/Get post oEmbed info

[中文]

用途:

  • 获取Instagram帖子的oEmbed内嵌信息
  • 返回可直接嵌入网页的HTML代码和帖子元信息
  • 适用于需要在第三方网站嵌入Instagram帖子的场景

参数:

  • url: Instagram帖子的完整URL(如 https://www.instagram.com/p/xxx/https://www.instagram.com/reel/xxx/
  • hidecaption: 是否隐藏帖子文本(默认false)
  • maxwidth: 嵌入的最大宽度(像素,默认540)

返回:

  • data.version: oEmbed版本
  • data.title: 帖子标题
  • data.author_name: 作者名称
  • data.author_url: 作者主页URL
  • data.author_id: 作者ID
  • data.media_id: 媒体ID
  • data.provider_name: 提供者名称(Instagram)
  • data.provider_url: 提供者URL
  • data.type: 类型(rich)
  • data.width: 宽度
  • data.html: HTML嵌入代码
  • data.thumbnail_url: 缩略图URL
  • data.thumbnail_width: 缩略图宽度
  • data.thumbnail_height: 缩略图高度

价格:

  • 0.008 USD/请求

[English]

Purpose:

  • Get Instagram post oEmbed embed info
  • Returns HTML code for embedding and post metadata
  • Suitable for embedding Instagram posts on third-party websites

Parameters:

  • url: Full Instagram post URL (e.g., https://www.instagram.com/p/xxx/ or https://www.instagram.com/reel/xxx/)
  • hidecaption: Whether to hide caption (default false)
  • maxwidth: Max embed width in pixels (default 540)

Return:

  • data.version: oEmbed version
  • data.title: Post title
  • data.author_name: Author name
  • data.author_url: Author profile URL
  • data.author_id: Author ID
  • data.media_id: Media ID
  • data.provider_name: Provider name (Instagram)
  • data.provider_url: Provider URL
  • data.type: Type (rich)
  • data.width: Width
  • data.html: HTML embed code
  • data.thumbnail_url: Thumbnail URL
  • data.thumbnail_width: Thumbnail width
  • data.thumbnail_height: Thumbnail height

Price:

  • 0.008 USD/request

示例/Example

url = "https://www.instagram.com/reel/DUlObENDmJD"

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 获取帖子oEmbed内嵌信息/Get post oEmbed info

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models