Reputation: 307
I am using YouTube API to search for videos and it's working just fine. I am wondering what changes I will have to make to search for intitle text.
Thanks
Upvotes: 1
Views: 893
Reputation: 7751
If you check the YouTube API documentation, you cannot find any key word about this [intitle:"search term"
]. So, it seems that this way of searching or filtering the results is not yet supported in the YouTube API.
As of now, the only way to filter the results of the API, is by using the q
parameter of Search: list
.
The q parameter specifies the query term to search for.
Your request can also use the Boolean NOT (-) and OR (|) operators to exclude videos or to find videos that are associated with one of several search terms. For example, to search for videos matching either "boating" or "sailing", set the q parameter value to boating|sailing. Similarly, to search for videos matching either "boating" or "sailing" but not "fishing", set the q parameter value to boating|sailing -fishing. Note that the pipe character must be URL-escaped when it is sent in your API request. The URL-escaped value for the pipe character is %7C.
If you want to support this intitle text in the API, then I recommend you to create a feature request about this.
Hope this information helps you.
Upvotes: 1