from hyperspell import Hyperspell

client = Hyperspell()
response = client.query.search(
    query="when did the wild west start?",
    sources=["reddit"],
    options={
        "reddit": {
            "subreddit": "askhistorians"
        }
    }
)

print(response.documents)

Overview

The Reddit integration allows you to search reddit posts. It only supports .

Authentication

The Notion integration requires an OAuth connection, and is availble in Hyperspell Connect without any additional setup:

This app uses Hyperspell to securely connect to your data.Please connect the following accounts to continue:RedditReturn to app

Hyperspell Connect lets your users easily connect their Reddit account.

Search Options

Following options are available for the options parameter of reddit:

subreddit
string

The subreddit to search. If not provided, the query will be searched for in all subreddits.

sort
string
default:"relevance"

The sort order of the posts. Defaults to ‘relevance’.

period
string
default:"month"

The time period to search. Defaults to ‘month’.

Resources

The Notion integration returns Document resources:

from hyperspell import Hyperspell

client = Hyperspell()
response = client.query.search(
    query="when did the wild west start?",
    sources=["reddit"],
    options={
        "reddit": {
            "subreddit": "askhistorians"
        }
    }
)

print(response.documents)