> For the complete documentation index, see [llms.txt](https://knowlg.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowlg.sunbird.org/use/additional-reading/import-external-content.md).

# Import External Content

The Sunbird platform allows users with Content Creator role permissions to create content and upload content from external sources to the Sunbird content library. You can upload content from external websites such as YouTube, Dailymotion, etc. This section explains the procedure to enable a Sunbird instance to host content from external sources.

### Intended Audience <a href="#intended-audience" id="intended-audience"></a>

Instance administrator

### Prerequisite <a href="#prerequisite" id="prerequisite"></a>

Ensure that the following is enabled for Sunbird instance to host content from external domains:

* You are logged in as the organization administrator
* You have access to set the environment variables

### Whitelisting a Domain <a href="#whitelisting-a-domain" id="whitelisting-a-domain"></a>

There are legal considerations to be taken care of before whitelisting any domain on Sunbird. Such information will be updated soon.

### Configuring the Domain <a href="#configuring-the-domain" id="configuring-the-domain"></a>

To enable a Sunbird instance to host content from external source:

1. Set the **sunbird\_extcont\_whitelisted\_domains** variable in the **Player Service** to whitelist an external website. Add the variable into the config file.

> Example: To allow an instance to host content from an external source such as **Wordpress**, configure the environment variable in the following format: SUNBIRD\_EXTCONT\_WHITELISTED\_DOMAINS: env.sunbird\_extcont\_whitelisted\_domains ||’wordpress.com’

On successful configuration of the external domain, the content creators of the organization can upload content from external sources.

For details on uploading Sunbird Content.


---

# 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://knowlg.sunbird.org/use/additional-reading/import-external-content.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.
