# Create from a YouTube Video

Summarize or react to a YouTube video by sending its watch URL as a `youtube` resource.

```bash
curl -X POST "https://api.autocontentapi.com/content/Create" \
  -H "accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "outputType": "video",
    "resources": [
      { "type": "youtube", "content": "https://www.youtube.com/watch?v=VIDEO_ID" }
    ],
    "text": "Share the top lessons and include relevant quotes."
  }'
```

**Tips**

* Use playlists or multiple video URLs for panel-style recaps.
* Provide timestamps in your `text` instructions to spotlight specific moments.

## Try it in code

* [C#](/code-samples/explainer-videos/csharp/from-youtube.md)
* [Node.js](/code-samples/explainer-videos/nodejs/from-youtube.md)
* [Java](/code-samples/explainer-videos/java/from-youtube.md)
* [PHP](/code-samples/explainer-videos/php/from-youtube.md)
* [Python](/code-samples/explainer-videos/python/from-youtube.md)


---

# 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.autocontentapi.com/quick-start/explainer-videos/from-youtube.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.
