We're trying to create a website that gives a list of all upcoming live streams by multiple channels that have agreed to use the same hashtag in their description.
I don't seem to be able to cobble together the right API calls to make this happen.
First when using the YouTube /v3/search API, there does not seem to be a way to query by tags. You can do a raw query of a word, but what we need to do is to find all live streams with an actual #tag in their description.
Second, when searching for upcoming videos, what you get back is the publish date, not the scheduled date for the stream itself.
I've taken a search, and then done a subsequent search of all videos matching the ids from the first search and gotten their information.
But it seems as though the upcoming search is returning some old videos.
For example, here's a snippet from a result from a query run on 12/27/2021
{"channelTitle": "EZ Craps Nation","liveBroadcastContent": "upcoming","publishTime": "2020-05-23T00:51:23Z"}How can a video published in May be seen as "upcoming" in December?
Here's a sample call to the search API:
/youtube/v3/search?part=snippet&eventType=upcoming&type=video&maxResults=25&order=Date&q=%23crapsnation&key=[my key here]
Notice the old dates
If you query those results individually by video ID, you'll see that these have all appeared in the past, and many of them are no longer available.
Is there a way to achieve this seemingly simple report that I'm not seeing?
Thanks in advance.