validationinstagramhashtag

Instagram hashtag validator


Is there any official library for validating Instagram hashtags?

Take Twitter for example, they provide https://github.com/twitter/twitter-text for validating hashtags.

The only official thing I can find is the user guide How do I use hashtags?, but it just vaguely describe the rules:

Numbers are allowed in hashtags. However, spaces and special characters, like $ or %, won't work.

As far as I know, the hashtag validation rules are different. For example, #123 is not a valid hashtag on Twitter, but it's valid on Instagram.

If there is no official library for validating Instagram hashtags, what is the next best thing?


Solution

  • It seems that nobody recommends a library, so I created one: https://github.com/johnlinp/instagram-validator. Any issue report or pull request is welcomed.