I try to search using the Youtube API.
but, received this message 'ipRefererBlocked'
The following image is my API settings
please give me the way.
There is a per-IP
or per-Referer
restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from P or referer should be allowed. Your request was blocked because it came from an IP address that didn't match the IP restrictions for that key.
That implies you have created a server API key, while what you want is an ios client API key. Make sure you are requesting the YouTube scope as part of sign in as well.
Every request must either specify an API key or provide an OAuth 2.0 token. Your API key is available in the Developer Console's API Access pane for your project.
Here's a related SO ticket, you may use the work around offered by community: Youtube API permission 403 Forbidden error and YouTube Api - Could not search: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With