Hashtag standard

api

#1

Hi I was wondering what the official hash tag standard is? I looked in the api docs but could not find it. If someone can link it that would be great. By standard I mean what the hashtag can consist of ie starts with #, can have letters, underscore and things. A link to the official doc thank you!


#2

Hi @chinmayhamin - great question! There’s no official doc on this. The canonical library that Twitter’s apps and websites use to parse hashtags is twitter-text, which is open source and on Github. Unfortunately at the moment if you want to know what patterns are valid in a hashtag on Twitter, you’ll need to take a look at the code in there.