Instagram API

Instagram Reels 转录文本 API

转录任意公开的 Instagram Reels 或视频帖子:完整语音转录文本、说话人标签和逐词时间戳,支持 reel、/p/ 或 /tv/ URL,或你已有的 Instagram CDN 媒体 URL。视频帖子的转录方式与 Reels 完全相同。图片帖子会以“已找到”返回其记录和空转录文本,只按请求价格扣费。转录使用 MAI-Transcribe-2,因其准确度和说话人标签而选用。开启 hostVideo 还可获得无需 Instagram 会话即可播放的托管 MP4 链接。如果你只要文字,instagram.media_transcript 是更便宜的纯转录选项;如果你只要文件,请用 instagram.post。

POST/v1/run/instagram.reel_transcript
可用率
80.67%
30d · 688 次调用
请求数
688
30d · 按周,近 12 周
响应时间
9.4s
中位数 · 30d

试一试

发出你的第一个请求

打开于
获取免费密钥
示例响应
免费运行只返回前 3 条结果。为密钥充值即可获得完整响应。
{
  "data": {
    "items": [
      {
        "bytes": 42,
        "durationSeconds": 12.5,
        "expiresUtc": 12.5,
        "hostedUrl": "https://example.com/page",
        "id": "a1b2c3d4",
        "language": "en",
        "likeCount": 12500,
        "mediaType": "general",
        "ownerUsername": "alex_rivera",
        "segments": [
          {
            "end": 12.5,
            "speaker": "example",
            "start": 12.5,
            "text": "A short example description of this item.",
            "words": [
              null
            ]
          }
        ],
        "shortcode": "a1b2c3d4",
        "text": "A short example description of this item.",
        "thumbnailUrl": "https://example.com/image.jpg",
        "url": "https://example.com/page"
      }
    ]
  },
  "found": true,
  "reason": "not_found"
}
响应类型定义
interface InstagramReelTranscriptResponse {
  data: {
    items: {
      bytes?: number;
      durationSeconds?: number;
      expiresUtc?: number;
      hostedUrl?: string;
      id: string;
      language?: string;
      likeCount?: number;
      mediaType?: string;
      ownerUsername?: string;
      segments?: {
        end?: number;
        speaker?: string;
        start?: number;
        text?: string;
        words?: {
          end?: number;
          start?: number;
          text?: string;
        }[];
      }[];
      shortcode?: string;
      text: string;
      thumbnailUrl?: string;
      url: string;
    }[];
  } | null;
  found: boolean;
  reason?: "not_found";
}

完整的参数与响应参考:这个接口的每个字段、类型和示例。

参考

请求、响应与价格

最近验证于 2026-09-29 · 可用率和延迟按 30d 统计
POST /v1/run/instagram.reel_transcript
curl -X POST https://api.getanyapi.com/v1/run/instagram.reel_transcript \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hostVideo":true,"url":"https://www.instagram.com/reel/CfY6jCIgH-P/","wordTimestamps":false}'
字段类型示例值
请求体
urlstring"https://www.instagram.com/reel/CfY6jCIgH-P/"公开 Instagram Reels 或视频帖子的 URL(例如 https://www.instagram.com/reel/C8yKXdRxKqK/),或你已有的 Instagram CDN 媒体 URL。
hostVideobooleantrue设为 true 可同时获得该 Reels 的托管 MP4 链接,无需 Instagram 会话即可播放。作为附加项在转录之外另行扣费(例如 true)。图片帖子没有可托管的文件,所以对其设置此项的请求会被拒绝,不扣费;不带 hostVideo 发送即可获得帖子记录。
wordTimestampsbooleanfalse设为 true 可为转录文本中的每个词附上精确时间戳(例如 true)。
响应
dataobject
data.itemsobject[]Record for the requested reel (one item), with the full transcript text, timed segments, source video metadata, and the hosted video link when hostVideo was asked for. Populated whenever the provider has data for the entity.
data.items[].bytesintegerSize of the hosted MP4 in bytes. Present only when hostVideo was true.
data.items[].durationSecondsnumberVideo duration in seconds. Absent when there is no transcript, which is what measures it.
data.items[].expiresUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. After this moment the hosted MP4 is deleted. Present only when hostVideo was true.
data.items[].hostedUrlstringA direct link to the downloaded MP4, hosted by AnyAPI and playable without an Instagram session. Present only when hostVideo was true.
data.items[].idstringThe reel's numeric Instagram media ID, as a string. Empty when the request supplied a CDN media URL, which carries no post record. Populated whenever the provider has data for the entity.
data.items[].languagestringDetected spoken language (ISO 639-1 code, e.g. "en"). Absent when there is no transcript.
data.items[].likeCountintegerNumber of likes on the reel. Absent when the lane that served the lookup does not carry a like count.
data.items[].mediaTypestringWhat kind of media this is, as Instagram labels it (for example a video or an image post). On a photo post this is how you tell that the empty transcript is the answer rather than silence.
data.items[].ownerUsernamestringUsername of the reel's owner, without the @ prefix. Empty when the request supplied a CDN media URL.
data.items[].segmentsobject[]Time-aligned transcript segments in playback order, one per sentence, each with its text, speaker label, and start/end offsets in seconds. A segment starts when its first word is spoken and ends when its last one finishes. Empty when the reel has no detectable spoken audio.
data.items[].segments[].endnumberSegment end offset in seconds from the start of the video.
data.items[].segments[].speakerstringWhich speaker said this segment, as a stable label within this transcript (e.g. "0", "1").
data.items[].segments[].startnumberSegment start offset in seconds from the start of the video.
data.items[].segments[].textstringThe segment's transcribed text.
data.items[].segments[].wordsobject[]Every word in the segment with its own timing. Present only when wordTimestamps was true.
data.items[].segments[].words[].endnumberWord end offset in seconds from the start of the video.
data.items[].segments[].words[].startnumberWord start offset in seconds from the start of the video.
data.items[].segments[].words[].textstringThe word as spoken.
data.items[].shortcodestringThe reel's short code, the part of its instagram.com URL after /reel/. Empty when the request supplied a CDN media URL.
data.items[].textstringThe full speech transcript. Empty when the reel has no detectable spoken audio, or when the post is a photo with no video to transcribe. Populated whenever the provider has data for the entity.
data.items[].thumbnailUrlstringA link to the reel's cover image on Instagram. This link is signed by Instagram and stops working after a short time.
data.items[].urlstringThe reel URL the request asked for, returned as sent. Populated whenever the provider has data for the entity.
foundbooleanWhether the post was found. A reel or video post is found and transcribed. A photo post is found too: its record comes back with an empty transcript and is charged the request price only, with no audio minutes. A post that does not exist is not found and is free.
reason"not_found"Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
价格
每次请求价格(上限)USDUS$0.095
价格(/千分钟音频)USDUS$5.94

常见问题

关于 Instagram Reels 转录文本 API

AnyAPI 的 Instagram Reels 转录文本 API 只需一次 POST 请求 /v1/run/instagram.reel_transcript,就以统一格式的 JSON 返回 Instagram 数据。转录任意公开的 Instagram Reels 或视频帖子:完整语音转录文本、说话人标签和逐词时间戳,支持 reel、/p/ 或 /tv/ URL,或你已有的 Instagram CDN 媒体 URL。视频帖子的转录方式与 Reels 完全相同。图片帖子会以“已找到”返回其记录和空转录文本,只按请求价格扣费。转录使用 MAI-Transcribe-2,因其准确度和说话人标签而选用。开启 hostVideo 还可获得无需 Instagram 会话即可播放的托管 MP4 链接。如果你只要文字,instagram.media_transcript 是更便宜的纯转录选项;如果你只要文件,请用 instagram.post。无论哪个数据源提供服务,AnyAPI 都返回同一套统一的 schema。费用:每千分钟音频 US$5.94,单次请求最多 US$0.095,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Instagram Reels 转录文本 API 调用中有 80.7% 成功,响应时间中位数为 9.4 秒,共测量 688 次调用。

费用:每千分钟音频 US$5.94,单次请求最多 US$0.095,以美元计价,无需订阅,也没有每月最低消费。你只需为一个美元钱包充值,每次调用从中扣费。部分由钱包付费的失败请求会产生处理费用,我们按成本原价转嫁,不加价;错误响应会显示收取的金额。

转录任意公开的 Instagram Reels 或视频帖子:完整语音转录文本、说话人标签和逐词时间戳,支持 reel、/p/ 或 /tv/ URL,或你已有的 Instagram CDN 媒体 URL。视频帖子的转录方式与 Reels 完全相同。图片帖子会以“已找到”返回其记录和空转录文本,只按请求价格扣费。转录使用 MAI-Transcribe-2,因其准确度和说话人标签而选用。开启 hostVideo 还可获得无需 Instagram 会话即可播放的托管 MP4 链接。如果你只要文字,instagram.media_transcript 是更便宜的纯转录选项;如果你只要文件,请用 instagram.post。响应是统一格式的 JSON,外层结构与每个 AnyAPI 接口相同,所以解析另一个接口只需换一个 URL,别的都不用改。

过去 30 天,通过 AnyAPI 发起的 Instagram Reels 转录文本 API 调用中有 80.7% 成功,响应时间中位数为 9.4 秒,共测量 688 次调用。这些是 AnyAPI 对经过网关的流量的自有测量,持续重新计算,并非公开承诺的服务等级目标。