Get started
Quickstart
Get a key and make your first call in about a minute.
1. Get a key
- A person: sign in at the dashboard with your email and create a key. You get 100 free credits, no card.
- An agent:
POST https://api.groundsocial.dev/v1/agent/signupreturns a key with no human involved. See Authentication.
Keys start with gs_live_ and are shown once. Keep yours in the GROUNDSOCIAL_API_KEY environment variable; every sample here reads it from there.
export GROUNDSOCIAL_API_KEY="gs_live_…"2. Make a call
Fetch one thread with its comment tree. The id can also be a t3_ fullname or the thread URL.
curl "https://api.groundsocial.dev/v1/reddit/posts/1y3k9qa" \
-H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"The response is { post, comments }: a t3 Thing and a Listing of t1 comments, with collapsed branches as more items. Two headers tell you what it cost: x-credits-charged and x-credits-remaining.
3. Install the SDK (optional)
npm i @groundsocial/sdkimport { createClient } from '@groundsocial/sdk'
const client = createClient({ apiKey: process.env.GROUNDSOCIAL_API_KEY })
// One page:
const page = await client.reddit.subredditPosts('typescript', { sort: 'new' })
// Or every post across pages, stopping at 250 (each page is one call):
for await (const post of client.reddit.subredditPosts('typescript').items({ maxItems: 250 })) {
console.log(post.data.title)
}4. Already on PRAW?
Change one URL. Point oauth_url and reddit_url at https://reddit.groundsocial.dev and pass your key as the client secret. Your reads work unchanged. See PRAW & snoowrap.
reddit = praw.Reddit(
client_id="groundsocial",
client_secret=os.environ["GROUNDSOCIAL_API_KEY"],
user_agent="my-app/1.0",
oauth_url="https://reddit.groundsocial.dev",
reddit_url="https://reddit.groundsocial.dev",
)Next
- Every endpoint with parameters and response fields.
- Errors: every code, and whether to retry.
- MCP server for Claude, Cursor and ChatGPT.