Instagram新API,按标签获取项目 [英] Instagram new API, get items by tag

查看:67
本文介绍了Instagram新API,按标签获取项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上个月Instagram API已更新,我无法理解如何使用它。

Last month Instagram API was updated and I can't understand how work with it.

例如我想通过标签获取图像nexus5x

我要求 https://api.instagram.com/v1/tags/nexus5x?access_token=access_token

并且回复是


200
'{meta :{code:200},data:{media_count:5066,name:nexus5x}}'

200 '{"meta":{"code":200},"data":{"media_count":5066,"name":"nexus5x"}}'

你能解释一下下一步该做什么吗?

Can you explain me what to do next?

我也尝试过最近的项目

https://api.instagram.com/v1/tags/nexus5x/media/recent?access_token=access_token

但是得到这个回复


200'{pagination:{deprecation_warning:next_max_id和min_id是
为此不赞成端点;使用min_tag_id和max_tag_id
而不是},meta:{code:200},data:[]}'

200 '{"pagination":{"deprecation_warning":"next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead"},"meta":{"code":200},"data":[]}'

PS沙盒中的应用程序。

P.S. App in sandbox.

推荐答案

您处于沙盒模式,因此它只返回沙箱授权用户的媒体,这里是信息关于这个:

You are in Sandbox mode, so it will return only media from your sandbox authorized user, here is information about this:


作为另一个例子,让我们考虑一个返回
媒体列表的端点:/ tags / {tag-名} /媒体/近。此
端点返回的响应将仅包含具有给定标记的媒体,如预期的那样。但是
而不是从任何公共Instagram用户返回媒体,它只会返回属于您的沙盒用户的媒体,限制为每个用户的最后20个

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

因此,如果您在Instagram中添加带有主题标签的帖子,那么它将显示在api响应中,这是沙盒模式中的限制

So if u add a post in instagram with the hashtag then it will show up in api response, this is restriction in sandbox mode

以下是有关沙盒模式的更多详细信息的链接: https:// www .instagram.com / developer / sandbox /

Here is the link to more details about Sandbox mode: https://www.instagram.com/developer/sandbox/

这篇关于Instagram新API,按标签获取项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆