> For the complete documentation index, see [llms.txt](https://help.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.contouron.com/api/source.md).

# Source

> For the complete documentation index, see [llms.txt](https://docs.contouron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.contouron.com/api/create-source.md).

## Source

Submit content for extraction and receive a source ID for polling.

### Endpoint

```
POST https://backend.contouron.com/v2/source-resolutions-v3
```

**Rate Limit:** 30 requests / minute

### Authentication

Include your Contouron API key in the request headers:

```
contouron-api-key: YOUR_API_KEY
```

### Source Types

| Value              | Requires | Description                                              |
| ------------------ | -------- | -------------------------------------------------------- |
| `youtube`          | `url`    | Extract YouTube transcript (English captions only)       |
| `tiktok`           | `url`    | Extract TikTok transcript (English captions only)        |
| `article`          | `url`    | Extract article text from a web page                     |
| `pdf`              | `url`    | Extract text from a PDF                                  |
| `audio`            | `url`    | Transcribe audio (mp3, wav, m4a, ogg, flac, aac)         |
| `twitter`          | `url`    | Extract tweet content                                    |
| `text`             | `text`   | Transform raw text content with optional AI instructions |
| `perplexity-query` | `text`   | AI-powered web research query                            |

### Parameters

| Parameter            | Type   | Required                                   | Description                                                                                   |
| -------------------- | ------ | ------------------------------------------ | --------------------------------------------------------------------------------------------- |
| `source.sourceType`  | string | Yes                                        | One of: `youtube`, `tiktok`, `article`, `pdf`, `audio`, `twitter`, `text`, `perplexity-query` |
| `source.url`         | string | Required for URL-based types               | The URL to extract content from                                                               |
| `source.text`        | string | Required for `text` and `perplexity-query` | Raw text or search query                                                                      |
| `customInstructions` | string | No                                         | AI instructions to transform extracted content                                                |

### Examples

#### Extract YouTube Transcript

```json
{
  "source": {
    "sourceType": "youtube",
    "url": "https://www.youtube.com/watch?v=VIDEO_ID"
  }
}
```

YouTube and TikTok transcript extraction reads **English captions only**. A non-English video, or a video with no captions, returns a `failed` status. For those videos, pass the transcript or a summary using `sourceType: "text"` instead.

#### Extract Article with Custom Instructions

```json
{
  "source": {
    "sourceType": "article",
    "url": "https://example.com/article"
  },
  "customInstructions": "Summarize in 5 bullet points"
}
```

#### AI Research Query

```json
{
  "source": {
    "sourceType": "perplexity-query",
    "text": "latest AI trends in social media marketing"
  }
}
```

#### Transform Raw Text

```json
{
  "source": {
    "sourceType": "text",
    "text": "Your raw content here..."
  },
  "customInstructions": "Rewrite as a Twitter thread"
}
```

### Response

```json
{
  "id": "123e4567-e89b-12d3-a456-426614174000"
}
```

Use this ID with the Get Source endpoint to retrieve the extracted content.

### n8n and Make.com

In the official Contouron nodes:

1. Add a Contouron node
2. Select "Source" > "Create"
3. Choose your source type
4. Pass the output source ID to a "Get Source" node to retrieve 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 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://help.contouron.com/api/source.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.
