Support » Plugin: Related YouTube Videos » more than 4 keywords result in no results

  • Hi i am using this piece of code:

    $data = $RytvAPI->validateConfiguration(
    array(
    ‘relation’ => ‘keywords’,
    ‘max’ => ‘6’,
    ‘width’ => 120,
    ‘height’ => 67,
    ‘lang’ => ‘es’,
    ‘class’ => ‘left inline ‘,
    ‘preview’ => true,
    ‘terms’ => $objetivo_keywords,
    )
    );

    /* Search YouTube. */
    $results = $RytvAPI->searchYouTube( $data );

    The variable $objetivo_keywords works fine to 4 keywords if I want to search more keywords there is no results.

    Really i want to receive videos like just searching on youtube, the same query on youtube search box returns a lot of videos, do you know whats happening? please help really thanks.

    https://wordpress.org/plugins/related-youtube-videos/

Viewing 1 replies (of 1 total)
  • Plugin Author Chris

    (@zenation)

    Hi,
    generally speaking there is no limit of terms or keywords you can use.
    But the API is also more restricted for us than for YouTube itself.

    You can run some tests on https://developers.google.com/youtube/v3/docs/search/list#try-it if you like. Just enter “snippet” in the “part” field, and your list of keywords into the “q” field. You can then see what the API results are.

    If there are no results for your keywords then I’m afraid I can’t do anything. If you DO get results on this demo site but not with the plugin I will have to take a closer look at my code and check if there’s something wrong.

Viewing 1 replies (of 1 total)
  • The topic ‘more than 4 keywords result in no results’ is closed to new replies.