Hello!
In short, you can do the search you want.
But the best thing is that I will help you to do it, but to achieve it I need more details, do you want to do it in Python? What social networks do you want to do it for? How do you want the data output?
The most common ones that use hashtags are Instagram and Twitter, and it can be done through the native APIs of the apps.
I am interested and available.
Thank you