> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/blocks/embed-a-url.md).

# 埋め込み URL

URL を使って、動画や音楽などをページに直接埋め込めます

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

### 動画

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

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

#### 動画ファイル

アップロードした動画ファイル（MP4 など）はインラインでは再生されず、訪問者がクリックして開いたりダウンロードしたりできるリンクとして表示されます。ページ上で再生可能な動画を表示するには、YouTube や Google Drive などの公開アクセス可能なプラットフォームに動画をアップロードし、そのリンクを埋め込みブロックに貼り付けてください。非公開 URL はページに表示されません。

### 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" %}
```

### よくある質問

<details>

<summary>URL が機能しないのはなぜですか？</summary>

コンテンツは公開されている必要があります。Google ドキュメントの場合は、 *リンクを知っている全員* の共有設定を選択してください。

GitBook は URL を次の方法で埋め込みます [Iframely](https://iframely.com/domains)。Iframely が提供元をサポートしていることを確認してから、 [Iframely で URL をテストしてください](https://iframely.com/try).

GitBook は外部 HTML を埋め込めません `<iframe>` タグは、コンテンツ セキュリティ ポリシーのため使用できません。代わりに埋め込みブロックを使用してください。

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/documentation/ja-gitbook-documentation/kontentsuwosuru/blocks/embed-a-url.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
