在没有 instagram 的情况下通过 userid 检索用户名 api

Retrieve username by userid without instagram api

我正在使用以下 url 搜索带有标签的帖子,其中 returns 包含所有最新帖子的 Json,但仅 returns userid,不是用户名。

https://www.instagram.com/explore/tags/neymar/?__a=1

我想知道是否有一种方法可以在不使用官方 API 并通过用户 ID 的情况下检索 Instagram 个人资料的用户名。

刚刚发现,如果我在下面的 URL 中使用 post 代码,它将 return 一个带有 owner:username 的 JSON。

https://www.instagram.com/p/BVs_bQtjmov/?__a=1

"owner":{
"id":"-------",
"profile_pic_url":"-",
"username":"neymarjr",