---
title: "content.getSource()"
description: "Return the raw source backing the instance."
canonical_url: "https://content.comark.dev/reference/content/get-source"
---
# content.getSource()

> Return the raw source backing the instance.

## `content.getSource()`

Returns the raw [`Source`](https://content.comark.dev/reference/types/content#source) backing the instance, or `undefined` when it reads [parsed data](https://content.comark.dev/sources/snapshot) with no raw origin. Synchronous.

**Parameters:**

- `name?`: Optional instance-name filter. Omit it to return this instance's source. A different name returns `undefined`.

**Returns:** [`Source`](https://content.comark.dev/reference/types/content#source)` | undefined`

## Usage

```ts [usage.ts]
const source = content.getSource()
```


## Sitemap

See the full [sitemap](https://content.comark.dev/sitemap.md) for all pages.
