2
我試圖僅使用api過濾音樂視頻。youtube api僅限音樂過濾器
我看了YouTube上的api(v3)網站,但無法找到它。
try {
// Call the search.list method to retrieve results matching the specified
// query term.
$searchResponse = $youtube->search->listSearch('id,snippet', array(
'q' => $_GET['q'],
'maxResults' => $_GET['maxResults'],
'type' => 'video',
**'videoCategoryId' => 'Music',**
));