API quickstart in one call
How to authenticate or pay, a first call to make, and every platform with its endpoint count, in one free call.
GET /v1/utility/quickstartBeta0 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/utility/quickstart",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 0 credits{ "api": "Groundsocial", "base_url": "https://api.groundsocial.dev", "auth": { "header": "Authorization: Bearer <key>", "env": "GROUNDSOCIAL_API_KEY", "get_a_key": { "method": "POST", "path": "/v1/agent/signup", "free_credits": 100, "human_needed": false }, "keyless": "No key: call any paid endpoint, answer the 402 challenge (MPP or x402) and retry. $0.01 per credit." }, "mcp": "https://api.groundsocial.dev/mcp", "pricing": { "failed_calls_are_charged": false, "packs": [ { "id": "starter", "credits": 10000, "usd": 10 }, { "id": "builder", "credits": 60000, "usd": 49 }, "… 2 more" ] }, "first_call": { "id": "reddit.subreddit.get", "tool": "reddit_subreddit_get", "platform": "reddit", "method": "GET", "path": "/v1/reddit/subreddits/{name}", "title": "Get a subreddit", "summary": "A subreddit: description, rules, member count, flags.", "credits": 1, "metered": false, "keyless_usd": "0.010000", "paginated": false, "inputs": [ { "name": "name", "in": "path", "required": true, "type": "string", "description": "Subreddit name, with or without \"r/\". \"all\" and \"popular\" also work for posts.", "enum": null, "default": null, "examples": [ "typescript" ] } ], "platform_name": "Reddit", "status": "live", "guidance": "Use it to check that a community exists, how big it is (subscribers, active users) and what it is about before reading i…", "example": { "method": "GET", "url": "https://api.groundsocial.dev/v1/reddit/subreddits/typescript" }, "curl": "curl \"https://api.groundsocial.dev/v1/reddit/subreddits/typescript\" -H \"Authorization: Bearer $GROUNDSOCIAL_API_KEY\"", "cost": "1 credit per call (or $0.010000 keyless). Never charged if the call fails." }, "platforms": [ { "id": "reddit", "name": "Reddit", "status": "live", "description": "Public subreddits, posts with their comment trees, users and search, in Reddit’s own Thing and Listing JSON. Not affilia…", "endpoints": 31 }, { "id": "x", "name": "X", "status": "live", "description": "Public posts (tweets) with view counts and top replies, profiles and recent timelines, in the shape of X’s own v2 Tweet …", "endpoints": 14 }, "… 80 more" ], "next": [ "GET /v1/utility/find?task=<what you want> to pick an endpoint", "GET /v1/utility/plan?task=<what you want> for a priced chain of calls", "… 1 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
platformquery | string | A platform id (reddit, x, tiktok…) to narrow to. Example: reddit. |
Status codes
| Status | Meaning |
|---|---|
200 | How to start: auth, payment, a first call and the platforms. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No such endpoint, recipe or platform. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Utility is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Does it cost anything?
No. Discovery endpoints are free and need no API key, so an agent can look around before it signs up.
Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.