> 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/creating-content/blocks/embed-a-url.md).

# 埋め込みURL

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

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

{% hint style="info" %}
GitBookでは、HTMLを使った外部コンテンツの埋め込みはサポートしていません `<iframe>`。これはコンテンツセキュリティポリシーによるものです。コンテンツが公開されている場合は、代わりに埋め込みブロックを使用してください。
{% endhint %}

### 動画

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


---

# 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
