如何为某个帐户的公共帐户提取Instagram帖子?

时间:2019-11-11 19:48:25

标签: api instagram instagram-api

如何为某个帐户的公共帐户提取Instagram帖子,但是该帐户不是我的帐户,但我需要提取其供稿和最近的媒体。

我看到有一种使用user_id的方法,但是如何从用户名获取user_id?还是直接使用用户名进行操作?

1 个答案:

答案 0 :(得分:1)

https://www.instagram.com/katyperry/?__a=1发送// This function assumes that the array inside the array has single value and the object inside array has only one key called var function filterInputData(notCleanedData) { return notCleanedData.reduce((acc, item) => { if (item.length) acc.push(item[0]); if (item.var) acc.push(item.var); return acc; }, []) } 请求将返回一个JSON,其中包含帐户信息,包括用户ID,近期媒体,供稿等。

GET

您可以用任何公共用户名替换user_id = responseAsJSON.graphql.user.id

相关问题