Describe any endpoint
One endpoint’s inputs with types, allowed values and defaults, an example call and a curl line. Takes an id, a tool name, an API URL or a platform link.
GET /v1/utility/endpointBeta0 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/utility/endpoint?id=reddit.post.get",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 0 credits{ "endpoint": { "id": "reddit.post.get", "tool": "reddit_post_get", "platform": "reddit", "method": "GET", "path": "/v1/reddit/posts/{id}", "title": "Get a post and its comments", "summary": "One post with its full comment tree.", "credits": 1, "metered": false, "keyless_usd": "0.010000", "paginated": false, "inputs": [ { "name": "id", "in": "path", "required": true, "type": "string", "description": "A post id (1y1u285), fullname (t3_1y1u285) or post URL.", "enum": null, "default": null, "examples": [ "1y1u285" ] }, { "name": "sort", "in": "query", "required": false, "type": "string", "description": "Comment order. Default confidence (\"best\").", "enum": [ "confidence", "top", "… 4 more" ], "default": null, "examples": null }, "… 1 more" ], "platform_name": "Reddit", "status": "live", "guidance": "Takes a post id, a t3_ fullname or a full post URL. Returns the post and its comment tree (Reddit Listing JSON). Collaps…", "example": { "method": "GET", "url": "https://api.groundsocial.dev/v1/reddit/posts/1y1u285" }, "curl": "curl \"https://api.groundsocial.dev/v1/reddit/posts/1y1u285\" -H \"Authorization: Bearer $GROUNDSOCIAL_API_KEY\"", "cost": "1 credit per call (or $0.010000 keyless). Never charged if the call fails." }, "resolved_from": null}Parameters
| Name | Type | Description |
|---|---|---|
idquery | string | Endpoint id or MCP tool name. Example: reddit.post.get. |
urlquery | string | An API URL or a platform link. Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ. |
methodquery | "GET" | "POST" | "get" | "post" | Disambiguates an API path served by GET and POST. One of GET, POST, get, post. |
Status codes
| Status | Meaning |
|---|---|
200 | The endpoint, its inputs and an example. |
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.