search_posts
Returns the posts that socialdata holds whose caption, hashtags, or video match your words, filtered and sorted by any count or gain. Use it to find or rank posts, and lookup for one post you can name.
apiKeyx-api-key<token>application/json- body
q?stringWords to find in the title, caption, hashtags, spoken words, and on-screen words, up to 200 characters.
1 <= length <= 200filters?array<|||||>Up to 20 filters that a post must all pass.
items <= 20account?stringOnly the posts of this account, as a ref.
1 <= length <= 2048watchlist?stringOnly the posts of the accounts in this watchlist.
1 <= length <= 100sort?array<>Up to 3 sort keys in order, by default relevance with q and view_count without.
1 <= items <= 3include?array<>Add media to get the media links of each post, when your organization may read media.
1 <= items <= 1facets?array<>Fields to count the matching posts by. Each count ignores the filters on its own field.
1 <= items <= 3limit?integerItems per page, from 1 to 100.
1 <= value <= 10020cursor?stringnext_cursor of the previous page, left out for the first page.
Success
application/json- response
meta*Facts about this call, in every answer.
posts*array<>One page of posts, in sort order.
total_estimate*integerAbout how many posts match.
facets?The number of matching posts per value of each field in facets. Only when you send facets. A value with no posts is not listed.
next_cursor*|The cursor of the next page, or null on the last page.
curl -X POST 'https://api.socialdata.product.studio/v1/posts/search' \ -H 'Content-Type: application/json' \ -d '{}'{ "meta": { "as_of": "2026-11-26T14:00:00Z", "source": "store", "credits_spent": 0, "credits_left_today": 30, "trace_id": "dd4ea85c713694073f9ab127c28f2318", "warnings": [ { "code": "first_observation", "message": "The service saw this target for the first time in this call." } ] }, "posts": [ { "platform": "tiktok", "platform_post_id": "7431852096741258240", "platform_account_id": "6812345098765432101", "account_handle": "acme_studio", "account_avatar": { "url": "https://media.socialdata.example/images/7431852096741258240.webp?signature=abc123", "expires_at": "2026-11-26T14:00:00Z", "width": 512, "height": 512 }, "post_url": "https://www.tiktok.com/@acme_studio/video/7431852096741258240", "media_type": "short_video", "media_count": 1, "posted_at": "2026-11-26T14:00:00Z", "duration_ms": 31500, "is_paid_partnership": false, "title": null, "caption": "Unboxing the new Acme camera #unboxing #tech", "hashtags": [ "unboxing", "tech" ], "view_count": 184300, "like_count": 12650, "comment_count": 341, "share_count": 905, "save_count": 1210, "repost_count": null, "quote_count": null, "observed_at": "2026-11-26T14:00:00Z", "first_observed_at": "2026-11-26T14:00:00Z", "view_count_gained_1d": 1250, "view_count_gained_7d": 1250, "view_count_gained_30d": 1250, "views_first_24h": 48210, "outlier_score": 2.4, "text_spoken": "Today we are unboxing the new Acme camera.", "text_on_screen": "Acme camera unboxing", "matched_in": [ "caption", "text_spoken" ], "highlights": [ { "field": "title", "start": 10, "length": 8 } ], "thumbnail": { "url": "https://media.socialdata.example/images/7431852096741258240.webp?signature=abc123", "expires_at": "2026-11-26T14:00:00Z", "width": 512, "height": 512 }, "media_status": "stored", "media": [ { "item_index": 0, "kind": "video", "bytes": 4812044, "duration_ms": 31500, "width": 1080, "height": 1920, "url": "https://media.socialdata.example/tiktok/7431852096741258240/0.mp4?signature=abc123", "expires_at": "2026-11-26T14:00:00Z" } ], "synced_at": "2026-11-26T14:00:00Z", "windows_synced_at": "2026-11-26T14:00:00Z" } ], "total_estimate": 1840, "facets": { "platform": { "instagram": 31, "tiktok": 12 } }, "next_cursor": null}search_accounts POST
Returns the accounts that socialdata holds whose handle, name, or biography match your words, filtered and sorted by any count or growth. Use it to find or rank accounts, and lookup for one account you can name.
sql POST
Runs one SELECT over socialdata's data and returns up to 1,000 rows. Use it only when no other tool answers the question, such as an aggregate over many accounts.