I am getting a 403 forbidden error when making an API call to the YouTube Data API.
I have tried to generate different types of keys (Web Browser, Server, etc.). The key is unrestricted. I have tried making the call from a server and from postman for Chrome. The request URL and response is below.
https://www.googleapis.com/youtube/v3/search?part=snippet&maxResults=1&q=surfing&key={api-key}
{"error": {"errors": [ {"domain": "global","reason": "forbidden","message": "Forbidden" } ],"code": 403,"message": "Forbidden" }}
Here are the headers:
alt-svc →quic=":443"; ma=2592000; v="43,42,41,39,35"cache-control →private, max-age=0content-encoding →gzipcontent-length →118content-type →application/json; charset=UTF-8date →Tue, 10 Jul 2018 15:00:27 GMTexpires →Tue, 10 Jul 2018 15:00:27 GMTserver →GSEstatus →403vary →Origin, X-Originx-content-type-options →nosniffx-frame-options →SAMEORIGINx-xss-protection →1; mode=block