• Resolved duddy2007

    (@duddy2007)


    Dear developers.
    Please remove your YouTube API key from the plugin.
    It’s in your code now. In the file /modules/add-ons/youtube.php
    var $youtube_developer_key = ‘AIzaSyAyye_rE5jYd7VpwvcLNItXQCo5zxvvmfy’;
    server IP and each Has its own. Make a custom YouTube API key. This is the only correct solution.
    then everyone will be able to use their key in YouTube API
    otherwise “YouTube API option” does not work

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @duddy2007,

    I hope you’re doing well!

    Thank you for your suggestion. I’ve forwarded it to our developers so they could have a closer look.

    We will follow back n this thread once we will have an update!

    Have a good day and take care!

    Kind regards,
    Nastia

    I agree that the plugin needs to have an interface to add your own YouTube API Key, but until then you can find the plugin’s YouTube API Key and replace it with your own YouTube API key.

    To find Broken Link Checker’s YouTube API Key, go to the Plugin Editor, then edit the Broken Link Checker plugin, then use the drop down for Modules, then use the drop down for Extras and find youtube.php and open it. Around line 20 you will see

    var $youtube_developer_key = ‘AIzaSyAyye_rE5jYd7VpwvcLNItXQCo5zxVvMFY’;

    replace AIzaSyAyye_rE5jYd7VpwvcLNItXQCo5zxVvMFY with your own YouTube API Key.

    Hi @duddy2007 @dstamos
    We apologize for the inconvenience, we are working to fix this asap ( possibly on the next update ).
    The problem is there because the API key has expired and we’re adding a new one ( with out any API restrictions ) so you don’t have to use your own API key after the update. However, it would be a good idea to provide an interface for using personal API key with which users could apply usage restrictions and other settings via google’s Youtube API Settings. So, I’ll add this on our todo list and have a discussion with the team and possibly decide and ETA on this.

    Regards.

    So I’ve manually updated this file with my own YouTube API key, but there’s a 10,000 credit per day limit in this API now, and my site has over 35,000 videos in it – which is about 100,000 credits required to query for all of those. That said, is there any way to throttle the link checker to gradually check all of these over a longer period of time? I need to spread out the link checking over about 10 days to check them all.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @technabob

    On “Settings -> Link Checker -> Advanced” page there are some options that could be tweaked for that:

    – the “Run continuously white the Dashboard is open” could be disabled keeping only “run hourly in the background” enabled – that would limit all checks to short sessions every hours

    – then “max execution time” could be decreased to some low value like e.g. 30 seconds

    – and “server load limit” and “traget resource usage” could also be lowered a bit below default avlues.

    It won’t affect only YouTube links but would “slow down” the checkers all together and “spread out” link checking over longer “time window” than it is by default.

    Best regards,
    Adam

    Thanks for the tips, Adam. I’ll give these a whirl and see if it helps me get through all of these links eventually. At this point I’m only concerned with the YouTube embeds, and will probably set up a different pass down the road for HTML links.

    Thread Starter duddy2007

    (@duddy2007)

    you made the wrong decision and got an error message when checking the link (YouTube):

    403 Exceeded The Daily Limit. The quota will be reset at midnight Pacific time (PT).

    Oh, my God, when will you finally make the right decision?
    Just a custom field for your own youtube API?
    when?
    it’s so easy to do… It’s been 2 updates since I suggested it, but you’re doing it wrong again…
    Pls, make custom field for own youtube API…

    Hello @duddy2007 ,

    On this update we’ve provided a filter with which you can use your own API key for Youtube. Here’s how you can implement it.

    You can add this code on a child theme’s function.php or on a custom plugin that way your API key won’t be overridden on the updates.

    add_filter( 'blc_youtube_api_key', function( $api_key ) {
    	$api_key = 'enter_your_api_key_here';
    	return $api_key;
    } );
    • This reply was modified 4 years, 9 months ago by Biplav.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Youtube API Problem’ is closed to new replies.