Replicating the Hashtag Search Widget with the API?



Is this possible with the API or another method?

We’re trying to have different hashtag search queries on different pages, without needing to manually create them one-by-one in Twitter’s settings.

Since the hashtag widget goes by an ID, it’s not something we can easily change in our code… but it seems like the Search API and GET search/tweets method would allow us to do this. Is this correct?