gpt4 book ai didi

Instagram api thumb_url 给出 5xx 服务器错误

转载 作者:行者123 更新时间:2023-12-03 21:04:31 28 4
gpt4 key购买 nike

thumbnail_url 链接只为幻灯片放映帖子提供 5xx Server Error。适用于仅视频和图像的帖子。

失败案例:https://www.instagram.com/p/BvEv0AVlgGb

API调用:

https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BvEv0AVlgGb

回复:
{   
"version": "1.0",
"title": "Higher. Further. Faster. Complete your #CaptainMarvel look with these Carol Danvers-approved glasses from @diffeyewear! Shop now at diffeyewear.com #ad",
"author_name": "marvel",
"author_url": "https://www.instagram.com/marvel",
"author_id": 204633036,
"media_id": "2000934416420307355_204633036",
"provider_name": "Instagram",
"provider_url": "https://www.instagram.com",
"type": "rich",
"width": 658,
"height": null,
"html": "<blockquote ......>",
"thumbnail_url": "https://scontent-sin2-2.cdninstagram.com/vp/d49a6c1ebb809f2a678807c6c668dc20/5D4E7C9B/t51.2885-15/e35/s612x612/51757368_424979878262102_7818160988900314568_n.jpg?_nc_ht=scontent-sin2-2.cdninstagram.com",
"thumbnail_width": 612,
"thumbnail_height": 611
}

此图片发布效果很好: https://www.instagram.com/p/BvE6t9fA3BE

为什么缩略图 url 仅在图像堆栈中被破坏?

最佳答案

跟踪此信息的最佳方法是添加 __a=1 param 和 value 到原始 url。这将返回一个 GraphQL 响应,其中包含所有必需的信息。
对于上面发布的失败案例:https://www.instagram.com/p/BvEv0AVlgGb , 只需将 url 更改为 https://www.instagram.com/p/BvEv0AVlgGb?__a=1

关于Instagram api thumb_url 给出 5xx 服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55240261/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com