Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8779823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:53:38+00:00 2026-06-13T19:53:38+00:00

So I am trying to pull out videos from Youtube for specific video games.

  • 0

So I am trying to pull out videos from Youtube for specific video games. This I have working almost fine, however on querying the video game title, some (mostly ones that share names with sports franchises, films, etc) are coming back with non video game related results.

I have looked in the documentation here and found the topicId filter, however I am struggling to use it.

If I try to put something in it comes back with:

$searchResponse = $youtube->search->list(array(
  'q' => $_GET['q'],
  'maxResults' => $_GET['maxResults'],
  'part' => 'id',
  'order' => 'relevance',
  'type' => 'video',
  'topicId' => '/m/0d6lp'
));

(list) unknown parameter: ‘topicId’

Also having trouble using the freebase API to return a topic I need.

All I want to do is filter videos only with the following:
Youtube video category as 'gaming'

So any ideas how I limit youtube searches to video games only with the search api?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:53:39+00:00Added an answer on June 13, 2026 at 7:53 pm

    That example looks a little off. The release of the PHP client might not be updated for the YouTube release, but the code is checked it. Head to https://code.google.com/p/google-api-php-client/ and checkout the source to get an up to date version after that this code should work fine.

    $searchResponse = $youtube->search->listSearch('id', array(
      'q' => $_GET['q'],
      'maxResults' => $_GET['maxResults'],
      'order' => 'relevance',
      'type' => 'video',
      'topicId' => '/m/0d6lp'
    ));
    

    Call listSearch instead of list, and put the part as the first argument instead of in the array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im having some difficulty trying to pull out a specific value from a cookie.
I'm trying to pull out information from a database with PHP and have the
I have been trying to pull out my SQLite database from my android application
I'm trying to pull out specific elements from results from the Data Science Toolkit
I am trying to pull out data from the table I had from the
I'm trying to pull out a list of table names from a MySQL database.
I am trying to pull data from a table I have imported into my
Im trying to write a method that will pull out the ID from a
I'm trying to pull out page source from a set of pages and run
I am trying to pull out a number from a string like so item_2445_205

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.