# Collect end-user consent before embedded video

Since third-party video vendors (like Youtube, Vimeo, etc...) will have access to an end-user's personal data, it is recommended that your organization collect the end-user's consent before launching any embedded video on your website.&#x20;

[Click here](https://github.com/didomi/samples/blob/main/how-to-embed-youtube/readme.md) for instructions for how to condition an embedded video from a third-party vendor.

{% hint style="info" %}
A working example for the instructions linked above can be accessed [here](https://didomi.github.io/samples/how-to-embed-youtube/).
{% endhint %}


---

# 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://docs.didomi.io/consent-management-platform-cmp/introduction/collect-end-user-consent-before-embedded-video.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.
