Find the endpoint for a task
Endpoints ranked against plain words, with synonyms (tweet means X, captions means transcript).
GET /v1/utility/findBeta0 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/utility/find?task=tiktok%20video%20comments",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 0 credits{ "task": "tiktok video comments", "results": [ { "score": 18.9, "id": "tiktok.video.comments", "tool": "tiktok_video_comments", "platform": "tiktok", "method": "GET", "path": "/v1/tiktok/videos/{id}/comments", "title": "Comments on a TikTok video", "summary": "Comments on a TikTok video, 20 a page.", "credits": 1, "metered": false, "keyless_usd": "0.010000", "paginated": true, "inputs": [ "id*", "cursor" ], "guidance": "Top-level comments in TikTok’s order, 20 a page: text, create_time, digg_count (likes), reply_comment_total, author pin …" }, { "score": 18.6, "id": "tiktok.comment.replies", "tool": "tiktok_comment_replies", "platform": "tiktok", "method": "GET", "path": "/v1/tiktok/videos/{id}/comments/{comment_id}/replies", "title": "Replies to a TikTok comment", "summary": "Replies to a TikTok comment, 20 a page.", "credits": 1, "metered": false, "keyless_usd": "0.010000", "paginated": true, "inputs": [ "id*", "comment_id*", "… 1 more" ], "guidance": "Replies under one comment (its `cid` from tiktok_video_comments), 20 a page, in the comment shape. Pass `cursor` for the…" }, "… 8 more" ], "note": null}Parameters
| Name | Type | Description |
|---|---|---|
taskquery | string | What you want, in plain words. Example: tiktok video comments. |
queryquery | string | Same as task. |
platformquery | string | A platform id (reddit, x, tiktok…) to narrow to. Example: reddit. |
Status codes
| Status | Meaning |
|---|---|
200 | Ranked endpoints. |
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.