代码之家  ›  专栏  ›  技术社区  ›  sisanared

Instagram api缩略图\u url显示5xx服务器错误

  •  0
  • sisanared  · 技术社区  · 7 年前

    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只针对图像堆栈被破坏?

    0 回复  |  直到 7 年前
        1
  •  0
  •   sisanared    5 年前

    跟踪此信息的最佳方法是添加 __a=1

    对于上面公布的失败案例: https://www.instagram.com/p/BvEv0AVlgGb ,只需将url更改为 https://www.instagram.com/p/BvEv0AVlgGb?__a=1