Look up any social media link
Any post, video, profile, product or app link → the right detail endpoint, at that endpoint’s own price.
GET /v1/prism/lookupBeta5 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/prism/lookup?url=https%3A%2F%2Fyoutu.be%2FdQw4w9WgXcQ",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 5 credits{ "url": "https://youtu.be/dQw4w9WgXcQ", "platform": "youtube", "kind": "video", "endpoint": "youtube.video.get", "params": { "id": "dQw4w9WgXcQ" }, "data": { "kind": "youtube#video", "id": "dQw4w9WgXcQ", "snippet": { "publishedAt": "2009-10-25T06:57:33.000Z", "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw", "channelTitle": "Rick Astley", "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)", "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Au…", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" }, "standard": { "…": "3 fields" }, "maxres": { "…": "3 fields" } }, "tags": [ "rick astley", "… 26 more" ], "category": "Music", "categoryId": "10", "liveBroadcastContent": "none", "…": "1 more fields" }, "contentDetails": { "duration": "PT3M33S", "durationSeconds": 213, "caption": "true" }, "statistics": { "viewCount": "1840617441", "likeCount": "19517793", "commentCount": "2462543" }, "status": { "privacyStatus": "public", "embeddable": true, "isFamilySafe": true }, "paidProductPlacementDetails": { "hasPaidProductPlacement": false }, "isShort": false, "channel": { "id": "UCuAXFkgsw1L7xaCfnd5JJOw", "title": "Rick Astley", "handle": "@RickAstleyYT", "url": "https://www.youtube.com/@RickAstleyYT", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" } }, "subscriberCount": "4560000", "isVerified": true, "isArtist": true }, "captionTracks": [ { "languageCode": "en", "name": "English", "isAutoGenerated": false, "isTranslatable": true }, "… 5 more" ], "…": "2 more fields" }, "comments": null, "legs": [ { "key": "youtube", "platform": "youtube", "endpoint": "youtube.video.get", "status": "ok", "credits": 1, "ms": 0, "error": null } ], "credits_used": 1, "failed": []}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | Any supported link. Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ. |
includequery | string | comments: also the first page of comments. |
Status codes
| Status | Meaning |
|---|---|
200 | What the link is, and the platform’s own answer. |
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 | Nothing was found for that input on any platform. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Prism composites is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
How is it charged?
Per platform that answers, at that platform’s own price, up to the ceiling shown. A platform that fails is listed in legs and not charged; if none answers, nothing is.
Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.