# 埋め込み URL

埋め込みURLを追加するには、埋め込みたいコンテンツのリンクを貼り付けて、最後に `Enter`.

{% hint style="info" %}
**注：** GitBook がファイルにアクセスできるように、埋め込みたいコンテンツは公開されている必要があります。たとえば、Google ドキュメントを埋め込む場合、共有設定は次のように設定する必要があります *リンクを知っている全員*.
{% endhint %}

### 動画

{% embed url="<https://www.youtube.com/watch?v=D_uLM5i0Z4c>" %}

{% hint style="info" %}
**注：** YouTube と Vimeo の埋め込みを自動再生してループ再生するには、次を追加することで `?autoplay=1&loop=1` 動画の URL の末尾に追加します。
{% endhint %}

### CodePen

{% embed url="<https://codepen.io/davidkpiano/pen/wMqXea>" %}

### Spotify

{% embed url="<https://open.spotify.com/track/4FmiciU3ZmfgABlbCSXcWw?si=65zMAhStT2ivTit-kZISWg>" %}

### Markdown での表現

```markdown
{% embed url="URL_HERE" %}
```


---

# 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://gitbook.com/docs/documentation/ja-gitbook-documentation/creating-content/blocks/embed-a-url.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.
