Identify a social media URL or handle
What a link, @handle or id is: the platform, what it points at, and the endpoint and inputs that read it, for up to 50 inputs, offline.
GET /v1/utility/resolveBeta0 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/utility/resolve?input=https%3A%2F%2Fx.com%2Fnasa%2Fstatus%2F1234567890123456789",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 0 credits{ "count": 1, "resolved": 1, "results": [ { "input": "https://x.com/nasa/status/1234567890123456789", "type": "url", "resolution": { "platform": "x", "kind": "post", "endpoint": "x.tweet.get", "params": { "id": "1234567890123456789" }, "related": [ { "endpoint": "x.tweet.replies", "params": { "…": "1 fields" } }, { "endpoint": "x.tweet.transcript", "params": { "…": "1 fields" } } ] }, "candidates": [] } ]}Parameters
| Name | Type | Description |
|---|---|---|
inputquery | string | A URL, @handle or id. Example: https://x.com/nasa/status/1234567890123456789. |
inputsquery | string | string[] | Several, comma-separated or repeated (max 50). |
Status codes
| Status | Meaning |
|---|---|
200 | One resolution per input. |
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.