API 文档

Facebook Watch 播放列表 API

Facebook Watch 播放列表 API:输入参数、完整枚举、输出字段和真实响应示例。

测试 API
打开产品页并测试
POST https://api.goanyapi.com/api/v1/facebook/watch/playlist

请求与输入参数

同步 POST JSON 查询;没有 Path 或 Query 参数,不生成异步任务。

参数 位置 类型 必填 默认值 范围与说明
Authorization Header string 是 — Bearer YOUR_API_KEY
Content-Type Header string 是 application/json application/json
url JSON body string 可选或条件必填 — 完整 HTTPS 资源链接;优先于资源 ID; maxLength=4096
userId JSON body string 可选或条件必填 — Facebook 用户或主页 ID,也可提供主页链接; pattern=^[0-9]{1,25}$

条件必填规则(required 表示必须提供的字段,anyOf 至少满足一组,oneOf 仅满足一组,allOf 全部满足):

{
  "required": [],
  "anyOf": [
    {
      "required": [
        "url"
      ]
    },
    {
      "required": [
        "userId"
      ]
    }
  ]
}

请求示例

POST /api/v1/facebook/watch/playlist
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "url": "https://www.facebook.com/WhiteHouse"
}

输出字段

字段路径 类型 含义
code string 成功为 ok,失败为公开错误码
message string 请求状态说明
data.result object / null 业务结果;保留实际空值和字段缺失
data.creditsUsed integer 本次实际扣费;空结果与失败不扣费
data.remainingCredits number 结算后的账户积分余额
data.result.sections array sections:实际公开业务字段,可为空或缺失
data.result.sections[].type string type:实际公开业务字段,可为空或缺失
data.result.sections[].title string 标题
data.result.sections[].videos array videos:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].type string type:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].id string 记录标识
data.result.sections[].videos[].url string 公开资源链接
data.result.sections[].videos[].title string 标题
data.result.sections[].videos[].author object 公开作者资料
data.result.sections[].videos[].author.id string 记录标识
data.result.sections[].videos[].author.name string 显示名称
data.result.sections[].videos[].author.url string 公开资源链接
data.result.sections[].videos[].author.avatar string avatar:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].thumbnail string thumbnail:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].duration number duration:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].createdAt number createdAt:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].viewCount number viewCount:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].viewCountText string viewCountText:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].reactionCount number reactionCount:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].commentCount number commentCount:实际公开业务字段,可为空或缺失
data.result.sections[].videos[].commentCountText string commentCountText:实际公开业务字段,可为空或缺失
data.result.sections[].count integer 当前响应记录数,不是全部记录总数
data.result.count integer 当前响应记录数,不是全部记录总数
data.result.pagination_supported boolean 是否支持续页,false 表示不可翻页

真实响应示例

采集时间:2026-11-25T10:22:50Z。以下为真实公开响应的结构节选,仅省略 data.creditsUsed 和 data.remainingCredits,价格与余额以实际请求为准。

{
  "code": "ok",
  "message": "ok",
  "data": {
    "result": {
      "sections": [
        {
          "type": "WWW_PLAYLIST_VIDEO_LIST",
          "title": "All Videos",
          "videos": [
            {
              "type": "video",
              "id": "1053906641053625",
              "url": "https://www.facebook.com/WhiteHouse/videos/freedom-and-feathers-walked-free-the-2026-thanksgiving-turkey-pardon-ceremony-at/1053906641053625/",
              "title": "Freedom and Feathers walked free. \n\nThe 2026 Thanksgiving Turkey Pardon Ceremony at the White House: Postcard Edition 🦃🍂",
              "author": {
                "id": "61571700369424",
                "name": "The White House",
                "url": "https://www.facebook.com/61571700369424",
                "avatar": null
              },
              "thumbnail": "https://scontent-cdg4-1.xx.fbcdn.net/v/t15.5256-10/904366162_1810132450102939_113869004613005224_n.jpg?stp=dst-jpg_tt6&cstp=mx2048x1536&ctp=s480x480&_nc_cat=103&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=d2b52d&_nc_ohc=S8Ke7Zwz6wMQ7kNvwGB5pk9&_nc_oc=Adr4R4tZ8M88QAMa2fMzW59CETmHyyOMqgVv7Wc7kOSDXPKjfVggfl6y-eXlVjz8k3CldxamEIoIPgJH9JHhBNjp&_nc_zt=23&_nc_ht=scontent-cdg4-1.xx&_nc_gid=OMUOrLuf5ndvXYxZSiGdSw&_nc_ss=78389&oh=00_AQQtdDBcfElD5Vh2JJ3CHl9wSPjOLcBk-pBpAjoaZioO1g&oe=6B0C7C49",
              "duration": 43.988,
              "createdAt": null,
              "viewCount": 29292,
              "viewCountText": null,
              "reactionCount": 1677,
              "commentCount": null,
              "commentCountText": "963"
            },
            {
              "type": "video",
              "id": "1956537535326011",
              "url": "https://www.facebook.com/WhiteHouse/videos/just-days-ago-the-gov-of-california-gavin-newsom-granted-clemency-mercy-to-548-o/1956537535326011/",
              "title": "\"Just days ago, the Gov. of California, Gavin Newsom, granted clemency & mercy to 548 of the most EVIL monsters...\n\nIn the Trump Admin we believe in the exact opposite, we're fighting to uplift the law abiding & protect the most vulnerable.\" - President Donald J. Trump",
              "author": {
                "id": "61571700369424",
                "name": "The White House",
                "url": "https://www.facebook.com/61571700369424",
                "avatar": null
              },
              "thumbnail": "https://scontent-cdg4-3.xx.fbcdn.net/v/t15.5256-10/896390968_1728229262164039_4357439782308250837_n.jpg?stp=dst-jpg_tt6&cstp=mx1152x2048&ctp=p206x206&_nc_cat=107&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=d2b52d&_nc_ohc=BDduzz6hOjwQ7kNvwEoj1hI&_nc_oc=AdrXGE7YF0DiqIytG3Rm9LMAmb_Kii-97a5HddwicweoLSDNkAJ4kb-O-z-bIHmhTKCA5psGME_jfx6CtNyumF8r&_nc_zt=23&_nc_ht=scontent-cdg4-3.xx&_nc_gid=OMUOrLuf5ndvXYxZSiGdSw&_nc_ss=78389&oh=00_AQShj3a15zWYOoUj-C0yd-l1PCVL843aGSRIgS-PAjCf-Q&oe=6B0C7A27",
              "duration": 53.908,
              "createdAt": null,
              "viewCount": 45517,
              "viewCountText": null,
              "reactionCount": 3213,
              "commentCount": null,
              "commentCountText": "2.8K"
            },
            {
              "type": "video",
              "id": "1687798042993895",
              "url": "https://www.facebook.com/WhiteHouse/videos/congratulations-on-your-unconditional-pardon-freedom-feathers-happy-thanksgiving/1687798042993895/",
              "title": "Congratulations on your unconditional pardon, Freedom & Feathers! 🇺🇸\n\nHappy Thanksgiving, patriots. 🦃",
              "author": {
                "id": "61571700369424",
                "name": "The White House",
                "url": "https://www.facebook.com/61571700369424",
                "avatar": null
              },
              "thumbnail": "https://scontent-cdg4-2.xx.fbcdn.net/v/t15.5256-10/904778473_4712617582301325_8553422295169909709_n.jpg?stp=dst-jpg_tt6&cstp=mx1920x1080&ctp=s640x640&_nc_cat=108&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=d2b52d&_nc_ohc=bpdZZyQCaIQQ7kNvwH5BZqd&_nc_oc=Adr-bl3HmOicG6lykD9HRUzFsm48cEowKwetXWJVi2AnZkKvY_DAC5gJGDujwHi2aphMiQF7zvMWkIT9k-28yhXR&_nc_zt=23&_nc_ht=scontent-cdg4-2.xx&_nc_gid=OMUOrLuf5ndvXYxZSiGdSw&_nc_ss=78389&oh=00_AQRDWIwnx9zDeumJx6KmBoHSL1FTJ2CMIdSjgKFbMsFS3A&oe=6B0C9B80",
              "duration": 75.754,
              "createdAt": null,
              "viewCount": 102806,
              "viewCountText": null,
              "reactionCount": 6759,
              "commentCount": null,
              "commentCountText": "1.2K"
            },
            {
              "type": "video",
              "id": "1468562818722151",
              "url": "https://www.facebook.com/WhiteHouse/videos/president-trump-and-the-first-lady-host-the-2026-thanksgiving-turkey-pardoning/1468562818722151/",
              "title": "President Trump and the First Lady Host the 2026 Thanksgiving Turkey Pardoning",
              "author": {
                "id": "61571700369424",
                "name": "The White House",
                "url": "https://www.facebook.com/61571700369424",
                "avatar": null
              },
              "thumbnail": "https://scontent-cdg6-1.xx.fbcdn.net/v/t15.5256-10/896657103_1654452476425176_8167791991532569945_n.jpg?stp=dst-jpg_tt6&cstp=mx1920x1080&ctp=s640x640&_nc_cat=109&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=032300&_nc_ohc=QZ-s8F4mTCIQ7kNvwH5m7__&_nc_oc=AdpFdXD2azwUcL2MnjnDYnzMt5zWQphQW4TtKPbZvW4mUCbQ-O_ASSInPaCrBsUcZmZ50u1_n0X0lYhVNyDjgcyM&_nc_zt=23&_nc_ht=scontent-cdg6-1.xx&_nc_gid=OMUOrLuf5ndvXYxZSiGdSw&_nc_ss=78389&oh=00_AQQ3HN0EKkz5NO8RsxPjdJGhiFZjT95zV_OAhEo48sdwSA&oe=6B0C8871",
              "duration": 2498.529,
              "createdAt": null,
              "viewCount": 73570,
              "viewCountText": null,
              "reactionCount": 2855,
              "commentCount": null,
              "commentCountText": "1.8K"
            },
            {
              "type": "video",
              "id": "2403021053846839",
              "url": "https://www.facebook.com/WhiteHouse/videos/from-leading-the-fight-against-crime-to-transforming-new-york-city-demonstrating/2403021053846839/",
              "title": "From leading the fight against crime to transforming New York City & demonstrating unwavering leadership after 9/11, Rudy Giuliani has left an undeniable mark on American history.\n\nToday, President Donald J. Trump will honor Mayor Giuliani, America’s Mayor, with the Presidential Medal of Freedom.",
              "author": {
                "id": "61571700369424",
                "name": "The White House",
                "url": "https://www.facebook.com/61571700369424",
                "avatar": null
              },
              "thumbnail": "https://scontent-cdg6-1.xx.fbcdn.net/v/t15.5256-10/899617605_1003030119544583_3648950609860862537_n.jpg?stp=dst-jpg_tt6&cstp=mx1080x1920&ctp=p206x206&_nc_cat=108&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=d2b52d&_nc_ohc=yQr1b_m8fWsQ7kNvwEuG1Tr&_nc_oc=AdqfY-OK_EW_j4sezz_hFD_bSTTAYpkNb6z75_jJlaaNITyIHvl-MX714aFGs1Wv0fVdAJien6zOk7DktIRQaEpt&_nc_zt=23&_nc_ht=scontent-cdg6-1.xx&_nc_gid=OMUOrLuf5ndvXYxZSiGdSw&_nc_ss=78389&oh=00_AQSFZOkfGdDzKqnHQr93hNHEMRQZV2g9ERiley_55klUyw&oe=6B0C752D",
              "duration": 37.951,
              "createdAt": null,
              "viewCount": 49179,
              "viewCountText": null,
              "reactionCount": 4194,
              "commentCount": null,
              "commentCountText": "1.8K"
            },
            {
              "type": "video",
              "id": "1498097392184314",
              "url": "https://www.facebook.com/WhiteHouse/videos/we-come-together-to-stand-against-the-travesty-and-to-wrap-our-arms-around-the-f/1498097392184314/",
              "title": "\"We come together to stand against the travesty and to wrap our arms around the families of victims who were so cruelly betrayed by bad government and our political system.\"\n\nGod bless the victims of these evil monsters. You will never be forgotten.",
              "author": {
                "id": "61571700369424",
                "name": "The White House",
                "url": "https://www.facebook.com/61571700369424",
                "avatar": null
              },
              "thumbnail": "https://scontent-cdg4-1.xx.fbcdn.net/v/t15.5256-10/897383172_1540204247946796_8304406141434331195_n.jpg?stp=dst-jpg_tt6&cstp=mx1080x1920&ctp=p206x206&_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=d2b52d&_nc_ohc=Dc2XtIiabgQQ7kNvwE0L_TR&_nc_oc=AdpG7O-BJrdKF-gCWTN-FqEwFSI-ipB7uZFO2MpwsRAp5Ly4q79u2r5UJkSA9fP5eZRuxszEKNa0La940mOi3ZXb&_nc_zt=23&_nc_ht=scontent-cdg4-1.xx&_nc_gid=OMUOrLuf5ndvXYxZSiGdSw&_nc_ss=78389&oh=00_AQQmL4ifyMAjnkBhzOwnI8-axGRaj5oNSFXobWIOoLdOOg&oe=6B0C8282",
              "duration": 106.538,
              "createdAt": null,
              "viewCount": 187727,
              "viewCountText": null,
              "reactionCount": 7889,
              "commentCount": null,
              "commentCountText": "4K"
            }
          ],
          "count": 6
        }
      ],
      "count": 6,
      "pagination_supported": false
    }
  }
}

分页与计费

本接口不支持游标分页,不得自行构造下一页。

…

仅有有效业务数据的成功请求按数据库当前配置扣费。空结果与失败不扣费,每页独立结算。可选字段为空不代表整条结果为空;缺失、null、空字符串、空数组按实际返回。示例中的媒体链接和游标可能过期,正式使用时重新查询。

状态码

HTTP 含义
200 成功,结果可能为空
400 参数或 JSON 不合法
401 鉴权缺失或无效
402 积分不足
429 请求过于频繁
502 请求未能完成
503 接口或计费尚未配置