Skip to Content
socialdata

search_posts

POST
/v1/posts/search

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.

Authorization

apiKey
headerx-api-key<token>

Request Body

application/json
  1. body
q?string

Words to find in the title, caption, hashtags, spoken words, and on-screen words, up to 200 characters.

Length1 <= length <= 200
filters?array<|||||>

Up to 20 filters that a post must all pass.

Itemsitems <= 20
account?string

Only the posts of this account, as a ref.

Length1 <= length <= 2048
watchlist?string

Only the posts of the accounts in this watchlist.

Length1 <= length <= 100
sort?array<>

Up to 3 sort keys in order, by default relevance with q and view_count without.

Items1 <= items <= 3
include?array<>

Add media to get the media links of each post, when your organization may read media.

Items1 <= items <= 1
facets?array<>

Fields to count the matching posts by. Each count ignores the filters on its own field.

Items1 <= items <= 3
limit?integer

Items per page, from 1 to 100.

Range1 <= value <= 100
Default20
cursor?string

next_cursor of the previous page, left out for the first page.

Response Body

Success

application/json
  1. response
meta*

Facts about this call, in every answer.

posts*array<>

One page of posts, in sort order.

total_estimate*integer

About 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.

Example Request
curl -X POST 'https://api.socialdata.product.studio/v1/posts/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "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}