List every endpoint
Every callable endpoint with price and inputs, narrowed by platform, method or words, with a fingerprint to skip unchanged reloads.
GET /v1/utility/endpointsBeta0 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/utility/endpoints?platform=reddit",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 0 credits{ "fingerprint": "8c0e0cdf", "unchanged": false, "count": 31, "platforms": 1, "endpoints": [ { "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*" ] }, { "id": "reddit.subreddit.posts", "tool": "reddit_subreddit_posts", "platform": "reddit", "method": "GET", "path": "/v1/reddit/subreddits/{name}/posts", "title": "List posts in a subreddit", "summary": "Posts in a subreddit, by hot, new, top, rising or controversial.", "credits": 1, "metered": false, "keyless_usd": "0.010000", "paginated": true, "inputs": [ "name*", "sort", "… 3 more" ] }, "… 29 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
platformquery | string | A platform id (reddit, x, tiktok…) to narrow to. Example: reddit. |
searchquery | string | Words to rank endpoints by. Example: tiktok comments. |
methodquery | "GET" | "POST" | "get" | "post" | Only GET or only POST endpoints. One of GET, POST, get, post. |
fingerprintquery | string | The fingerprint from an earlier answer. |
Status codes
| Status | Meaning |
|---|---|
200 | The endpoints, their count and the catalogue fingerprint. |
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.