Instagram empty string for every bio in user object

ぃ、小莉子 提交于 2021-02-08 13:34:13

问题


I've tried, both via an API library in Python and the API console that Instagram and apigee.com provide.

I use the request: GET /tags/tag-name/media/recent. I tried ferrari tag.

All results populate perfectly, except the bio field of the user for each media result from the tag request.

Here are a couple of result snippets:

"full_name": "AвтоСпаСтудия",
"bio": "",
"id": "435889630"
...

"full_name": "jacky_mitchell",
"bio": "",
"id": "1527609678"

They all have blank bio fields. The website fields are also blank for the record.

Someone else had the same issue in the old Instagram group.

I might have to ditch this half-working API and sniff the TCP/IP traffic and do some raw requests.


回答1:


The endpoints to get the bio and website fields are /users/<user-id> and /users/self.

There was a bug where some endpoints containing the user node would have empty bio and website fields. Those endpoints don't return those fields anymore. The sample responses in the docs have also been updated to reflect the change.

Source: http://developers.instagram.com/post/112826291271/api-bug-fixes




回答2:


As per the examples in Instagram API's Docs, this is expected:

"user": {
    "username": "emohatch",
    "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1242695_75sq_1293915800.jpg",
    "id": "1242695",
    "full_name": "Dave"
}

The only workaround might be actually getting the full info for each user (that you actually need the bio for), and try to cache results in order to avoid going over their rate limits.



来源:https://stackoverflow.com/questions/27662588/instagram-empty-string-for-every-bio-in-user-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!