Access is not configured. Use the Google Developers Console to activate the API for your project for the youtube search list.

i implements youtube search list from Youtube search list

but coming to this error

Access is not configured. Use the Google Developers Console to activate the API for your project.

The code: -

youtube = new YouTube.Builder(transport,jsonFactory, new HttpRequestInitializer() 
{
    @Override
    public void initialize(HttpRequest request) throws IOException {
    }
}).setApplicationName("youtube-cmdline-search-sample").build();


String queryTerm = getInputQuery();

// Define the API request for retrieving search results.
YouTube.Search.List search = youtube.search().list("id,snippet");

// Set your developer key from the Google Developers Console for

String apiKey = ""; //i have server key and browser key
search.setKey(apiKey);
search.setQ(queryTerm);

search.setType("video");

search.setFields("items(id/kind,id/videoId,snippet/title,snippet/thumbnails/default/url)");
search.setMaxResults(NUMBER_OF_VIDEOS_RETURNED);

enter image description here

+3
source share
6 answers

Decision: -

I created a project from here the old site of the developer console.

I used the browser key from the old site of the developer console.

+10
source

I had the same problem. I turned off the API and then turned it back on and then it worked.

+1
source

google YouTube. Google Developers. API google api, , apt youtube api, .

// Set your developer key from the Google Developers Console for

String apiKey = ""; //i have server key and browser key
search.setKey(apiKey);
search.setQ(queryTerm)
-1

, ?

-1

, " ", IP- IP- ( ).

-1

! , . , , , . New Developers Console . , ! .

-2
source

All Articles