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

Instagram媒体/订阅源API

  •  1
  • terry  · 技术社区  · 7 年前

    官方API包括: Instagram Graph API Instagram Platform API .

    https://www.instagram.com/instagram/media/ 因此, here here ,这似乎是一个非法文件(至少我没有在脸书/instagram文档中看到)。 它是公开的,你可以得到很多关于帖子的信息,包括喜欢和评论。

    所以我的问题是:

    • https://www.instagram.com/{username}/media/
    • 它在互联网上广泛使用吗?
    3 回复  |  直到 7 年前
        1
  •  1
  •   krisrak    7 年前

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

        2
  •  0
  •   Pablo Montepagano    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.
    

    https://www.instagram.com/developer/endpoints/users/#get_users_media_recent

        3
  •  0
  •   Alexey Istomin    5 年前

    我写道 small library

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