我目前正在研究Instagram提要在一个web应用程序中的集成。官方的API是:Instagram图API和Instagram平台API。
然后我在SO上找到了一个端点,如https://www.instagram.com/instagram/media/,这里和这里,这似乎是一个没有文档的端点(至少我还没有在facebook/instagram文档中看到)。它是可公开访问的,你可以获得很多关于这些帖子的信息,包括赞和评论。
所以我的问题是:
https://www.instagram.com/{username}/media/是在哪里记录的吗?发布于 2017-09-27 02:44:15
它不是官方的API,它可能会在任何时候停止工作,在应用程序中使用它不是一个好主意。其他Instagram无文档的app在过去已经停止工作,这是好的使用一次性项目,但我不会使用它在一个应用程序/网站。
发布于 2017-11-13 13:23:32
这个端点已于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.发布于 2020-04-22 06:10:27
我在打字稿上写了小型图书馆。它不需要访问令牌或客户端id.The库在幕后使用RegExp。你可以得到这样的照片:
import Nanogram from 'nanogram.js';
const instagramParser = new Nanogram();
instagramParser.getMediaByUsername('instagram').then((media) => {
console.log(media);
});https://stackoverflow.com/questions/46437911
复制相似问题