> ## Documentation Index
> Fetch the complete documentation index at: https://stars-components.js.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Function: fetchRedditPost()

> **fetchRedditPost**(`subreddit`, `key`): `Promise`\<`Ok`\<[`CacheHit`](/documentation/api/reddit-helpers/interfaces/CacheHit), `any`> | `Result`\<[`CacheHit`](/documentation/api/reddit-helpers/interfaces/CacheHit), [`RedditParseException`](/documentation/api/reddit-helpers/classes/RedditParseException), `false`> | `Result`\<[`CacheHit`](/documentation/api/reddit-helpers/interfaces/CacheHit), `FetchError`, `false`>>

Defined in: [packages/reddit-helpers/src/lib/reddit.ts:61](https://github.com/wolfstar-project/stars-components/blob/5aefd164bc5fc41e5a35d3abf908c288163dd354/packages/reddit-helpers/src/lib/reddit.ts#L61)

Fetches a Reddit post from a specified subreddit.

## Parameters

### subreddit

`string`

The name of the subreddit this post belongs to.

### key

`string`

The key of the post to fetch.

## Returns

`Promise`\<`Ok`\<[`CacheHit`](/documentation/api/reddit-helpers/interfaces/CacheHit), `any`> | `Result`\<[`CacheHit`](/documentation/api/reddit-helpers/interfaces/CacheHit), [`RedditParseException`](/documentation/api/reddit-helpers/classes/RedditParseException), `false`> | `Result`\<[`CacheHit`](/documentation/api/reddit-helpers/interfaces/CacheHit), `FetchError`, `false`>>

A promise that resolves to the RedditResponse object contained the fetched post.
