有没有一种方法可以计数Instagram Hashtag计数? [英] Is there a way get count an Instagram Hashtag Count?

查看:43
本文介绍了有没有一种方法可以计数Instagram Hashtag计数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

寻找一种简单的方法,要么作为具有API的Web服务/站点,要么直接通过Instagram API计算Hashtag的出现次数.我知道有2个网站提供Instagram搜索结果,但它们没有API.

Looking for a simple way either as web service/site with an API, or directly via the Instagram API to count the number of occurances of a Hashtag. I know of 2 websites that provided Instagram search results but they do not have APIs.

推荐答案

它看起来像/标签/标签名端点将为您提供所需的内容:

It looks like the /tags/tag-name endpoint will give you what you want:

获取有关标签对象的信息.

Get information about a tag object.

这是他们的例子:

查询: https://api.instagram.com/v1/标签/nofilter?access_token =访问令牌

响应:

{
    "data": {
        "media_count": 472,
        "name": "nofilter",
    }
}


刚刚用一个相当通用的标签(牛仔")对其进行了测试,这就是响应:

[edit]
Just tested it with a fairly generic tag ("cowboys"), and this was the response:

{
    "meta": {
        "code": 200
    },
    "data": {
        "media_count": 1195735,
        "name": "cowboys"
    }
}

〜120万在我看来是一个相当合理的数字.

~1.2 million looks like a fairly reasonable number to me.

这篇关于有没有一种方法可以计数Instagram Hashtag计数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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