Is there a way get count an Instagram Hashtag Count?

后端 未结 1 684
抹茶落季
抹茶落季 2021-02-06 16:06

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 prov

相关标签:
1条回答
  • 2021-02-06 16:18

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

    Get information about a tag object.

    Here's their example:

    Query: https://api.instagram.com/v1/tags/nofilter?access_token=ACCESS-TOKEN

    Response:

    {
        "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"
        }
    }
    

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

    0 讨论(0)
提交回复
热议问题