# Youtube KEY

To play Youtube video from app we need **API KEY** and you must generate your own **API KEY**. Here tutorial to get --> [**http://blog.dream-space.web.id/?p=178**](http://blog.dream-space.web.id/?p=178)​

Then you can put it in file **res/xml/remote\_config\_defaults.xml**\
Data from this file use as default value, anytime you want to change you can change it from firebase remote console.

{% code title="remote\_config\_defaults.xml" %}

```markup
<!--Youtube property -->
<entry>
    <key>youtube_api_key</key>
    <value>AIzaSyBZZNlXXXXXXXXXXXXXXXXXXXXXXXXXXX</value>
</entry>
```

{% endcode %}

### Set Remote Config <a href="#disable" id="disable"></a>

Parameter value must add for remote config must be same with value from file **res/xml/remote\_config\_defaults.xml**\
Here tutorial how to add update remote config <http://blog.dream-space.web.id/?p=220>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://vido.gitbook.io/docs/2.0/android/youtube-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
