Instagram媒体/订阅源API

Instagram媒体/订阅源API,instagram,instagram-api,Instagram,Instagram Api,我目前正在考虑将Instagram feed集成到一个web应用程序中。 官方API包括:和 然后我发现了一个端点,如https://www.instagram.com/instagram/media/等等,而且,这似乎是一个未记录的文件(至少我在facebook/instagram文档中没有看到)。 它是公开的,你可以得到很多关于帖子的信息,包括喜欢和评论 因此,我的问题是: 是https://www.instagram.com/{username}/media/在哪里记录了一些 它在互联网

我目前正在考虑将Instagram feed集成到一个web应用程序中。 官方API包括:和

然后我发现了一个端点,如
https://www.instagram.com/instagram/media/
等等,而且,这似乎是一个未记录的文件(至少我在facebook/instagram文档中没有看到)。 它是公开的,你可以得到很多关于帖子的信息,包括喜欢和评论

因此,我的问题是:

  • https://www.instagram.com/{username}/media/
    在哪里记录了一些
  • 它在互联网上广泛使用吗

    • 它不是官方API,它可能随时停止工作,在应用程序中使用不是一个好主意。其他Instagram未记录的API在过去已经停止工作,它可以用于一次性项目,但我不会在应用程序/网站中使用。

      此端点已于2017年11月7日停止工作。但您可以使用另一个端点来获得相同的结果:

      GET /users/user-id/media/recent
      https://api.instagram.com/v1/users/{user-id}/media/recent/?access_token=ACCESS-TOKEN
      
      Get the most recent media published by a user.
      The public_content scope is required if the user is not the owner of the access_token.
      
      REQUIREMENTS
      Scope: public_content
      
      PARAMETERS
      ACCESS_TOKEN    A valid access token.
      MAX_ID  Return media earlier than this max_id.
      MIN_ID  Return media later than this min_id.
      COUNT   Count of media to return.
      

      我是用打字机写的。它不需要访问令牌或客户端id。库在后台使用RegExp。您可以获得如下照片:

      import Nanogram from 'nanogram.js';
      
      const instagramParser = new Nanogram();
      
      instagramParser.getMediaByUsername('instagram').then((media) => {
        console.log(media);
       });
      

      你说得对,我们不应该使用未记录的api。我想人们一定已经看到了这一点,也许可以提供更多的细节:)你可以使用它,我有时也会使用它,但我不依赖它或用它编写应用程序。请问你使用它的目的是什么?要在Bulk中获取图像链接,现在这并不像这里所说的那样有效:在2020年,你可以使用: