AI agent context payload
An llms.txt-style briefing for an agent’s context: auth, payment, free discovery and every endpoint with price and inputs.
GET /v1/utility/llmsBeta0 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/utility/llms?platform=reddit",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 0 credits{ "format": "text", "bytes": 6105, "content": "# Groundsocial API\n\n> Public social data for agents and developers: 1 platform, one key, one credit balance. Responses u…"}Parameters
| Name | Type | Description |
|---|---|---|
platformquery | string | A platform id (reddit, x, tiktok…) to narrow to. Example: reddit. |
formatquery | "text" | "json" | "markdown" | text (default), markdown (the same) or json. One of text, json, markdown. |
Status codes
| Status | Meaning |
|---|---|
200 | The context payload. |
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.