> 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 ドライブなど、一般公開されているプラットフォームに動画をアップロードし、そのリンクを埋め込みブロックに貼り付けてください。非公開 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" %}
```

### FAQ

<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.
