How to count the number of hashtags used by specific user


#1

how to count the total number of hashtags used by specific user.


#2

Hashtags entities in a Tweet response.
https://dev.twitter.com/overview/api/entities

Retrieve a list of Tweets for a given user with statuses/user_timeline.
https://dev.twitter.com/rest/reference/get/statuses/user_timeline


#3

Hi Sir,
i tried that but it gives me empty array


#4

What code did you try? Which user’s timeline did you try to retrieve?


#5

An example entities result from the current latest Tweet of user account HeForShe:

"entities": {
  "hashtags": [
    {
      "indices": [
        0,
        15
      ],
      "text": "Genderequality"
    },
    {
      "indices": [
        84,
        93
      ],
      "text": "HeForShe"
    }
  ],
  "symbols": [],
    "urls": [
      {
        "display_url": "twitter.com/HMAKarenPierce\u2026",
        "expanded_url": "https://twitter.com/HMAKarenPierce/status/631761950020628480",
        "indices": [
          96,
          119
        ],
        "url": "https://t.co/bQHC3WUudP"
      }
    ],
    "user_mentions": []
}