Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way get count an Instagram Hashtag Count?

Tags:

instagram

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.

like image 755
BToll Avatar asked Jan 27 '14 23:01

BToll


1 Answers

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.

like image 59
Geoff Avatar answered Nov 19 '22 08:11

Geoff