List social posts
list_social_postsRetrieve social posts from supported platforms by account, search, hashtag, community, sound, company, playlist, related posts, or trending feed; paginate with cursors.
Instructions
Posts from a social platform. What you pass in params picks the source: an account's (username), a search (query), a hashtag, community, sound, company, playlist, posts related to one (relatedTo) — or nothing for the trending feed.
Platforms and the params each accepts (* = required):
instagram [1 unit]: username, type, hashtag, location, cursor
linkedin [1 unit]: username, company, limit
reddit [1 unit]: username, community, query, ids, sort, period, country, limit, cursor
threads [1 unit]: username, type, query, hashtag, sort, cursor
tiktok [1–2 units]: username, userId, type, hashtag, sound, playlist, category, limit, cursor
x [1–2 units]: username, userId, limit, cursor
youtube [1–2 units]: username, userId, query, hashtag, relatedTo, type, country, cursor
For the next page call again with params = { cursor } alone, using the cursor of the previous answer.
Costs are in units of $0.001 at list price; a call that fails is not billed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | The platform's other parameters, by the names listed above. | |
| platform | Yes | Which platform to read. |