Skip to main content
Xpoz provides 10 TikTok tools across three categories: users, posts, and comments. TikTok is unique in having hashtag-specific search tools.

Available Fields

User Fields

These fields are available on all user tools (getTiktokUser, searchTiktokUsers, getTiktokUsersByKeywords, getTiktokUsersByHashtags). Default: id, username, nickname
CategoryFields
Identityid, username, nickname, signature, secUid, avatar
StatusisPrivate, isVerified
MetricsfollowerCount, followingCount, likeCount, postCount
Localelanguage, region
TimestampscreatedAt, usernameModifyTime
getTiktokUsersByKeywords and getTiktokUsersByHashtags also return aggregation fields: aggRelevance, relevantPostsCount, relevantPostsLikesSum, relevantPostsCommentsSum, relevantPostsPlaysSum, relevantPostsForwardsSum.

Post Fields

These fields are available on all post tools (getTiktokPostsByIds, getTiktokPostsByUser, getTiktokPostsByKeywords, getTiktokPostsByHashtags). Default: id, description, username, createdAtDate
CategoryFields
Coreid, postType, isPrivate, userId, username, nickname, description, descriptionLanguage, createdAt, createdAtTimestamp, createdAtDate
EngagementcollectCount, commentCount, likeCount, downloadCount, forwardCount, playCount
MediavideoThumbnail, videoUrl (array of video URLs), duration (video length in seconds)
Contenthashtags (array of hashtag strings), transcriptsJson

Comment Fields

These fields are available on getTiktokCommentsByPostId. Default: id, text, username, createdAtDate
CategoryFields
Allid, postId, userId, username, text, likeCount, createdAt, createdAtTimestamp, createdAtDate
Always specify only the fields you need using the fields parameter. For example, ["id", "description", "playCount", "likeCount", "hashtags"] for content analysis. See Field Selection for details.

User Tools

getTiktokUser

Get a single TikTok user profile by ID or username.
ParameterTypeRequiredDescription
identifierstringYesUser ID (numeric) or username.
identifierTypestringYes"id" or "username".
fieldsstring[]NoFields to return.
forceLatestbooleanNoForce fresh data from API, bypassing cache. Default: false.
For exact username lookups, use getTiktokUser. For name-based or fuzzy searches, use searchTiktokUsers instead.

searchTiktokUsers

Search TikTok users by name or username with real-time results.
ParameterTypeRequiredDescription
namestringYesSearch query (name, partial username, or keywords).
limitnumberNoMax results. Default: 10, max: 10.
fieldsstring[]NoFields to return.
This tool performs a real-time search. For exact username lookups, use getTiktokUser instead.

getTiktokUsersByKeywords

Search for users who authored TikTok posts matching keywords. Returns unique, deduplicated user profiles.
ParameterTypeRequiredDescription
querystringYesFull-text search of post descriptions. Max 250 characters. Supports exact phrases, boolean operators (AND, OR), and parentheses.
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return. Includes user fields plus aggregation fields.
pageNumberintegerNoPage to fetch (1-indexed). Requires tableName for pages > 1.
pageNumberEndintegerNoEnd page for bulk fetching. Must be >= pageNumber.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Supports server-side pagination with 100 users per page. See Pagination and Query Syntax for details.

getTiktokUsersByHashtags

Search for users who posted content tagged with specific hashtags. Returns unique, deduplicated user profiles.
ParameterTypeRequiredDescription
hashtagsstring[]YesArray of hashtags (1-5). Bare alphanumeric/underscore only — do not include #. OR semantics: matches users who posted with any of the listed hashtags.
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return. Includes user fields plus aggregation fields.
pageNumberintegerNoPage to fetch (1-indexed). Requires tableName for pages > 1.
pageNumberEndintegerNoEnd page for bulk fetching. Must be >= pageNumber.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Example hashtags values: ["dance", "fyp"], ["cooking"], ["sustainable_fashion"]
Pass bare alphanumeric tags only — no leading #. Each hashtag must match the pattern [A-Za-z0-9_] with a max length of 500 characters.

Post Tools

getTiktokPostsByIds

Get one or more TikTok posts by IDs (1-100 per request).
ParameterTypeRequiredDescription
postIdsstring[]YesArray of numeric post IDs (1-100). Each must be digits only.
fieldsstring[]NoFields to return.
forceLatestbooleanNoForce fresh data from API. Default: false.
Returns only found posts, omitting not-found IDs. Returns the most up-to-date data available.
Data older than 3 days is automatically refreshed.

getTiktokPostsByUser

Get posts from a TikTok user by ID or username.
ParameterTypeRequiredDescription
identifierstringYesUser ID (numeric) or username.
identifierTypestringYes"id" or "username".
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Data older than 1 week is automatically refreshed.
Supports server-side pagination with 100 posts per page. See Pagination for details.

getTiktokPostsByKeywords

Search TikTok posts by keywords in descriptions and video transcripts.
ParameterTypeRequiredDescription
querystringYesFull-text search of post descriptions. Max 250 characters. Supports exact phrases, boolean operators (AND, OR), and parentheses.
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Supports server-side pagination with 100 posts per page. See Query Syntax for details on search operators.
For hashtag-based search, use getTiktokPostsByHashtags instead — it searches the indexed hashtags column directly, which is more precise than keyword search in descriptions.

getTiktokPostsByHashtags

Search TikTok posts by hashtags. Searches the indexed hashtags column directly (not post descriptions).
ParameterTypeRequiredDescription
hashtagsstring[]YesArray of hashtags (1-5). Bare alphanumeric/underscore only — do not include #. OR semantics: matches posts containing any of the listed hashtags.
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Example hashtags values: ["dance", "fyp", "viral"], ["cooking"], ["sustainable_fashion"]
Pass bare alphanumeric tags only — no leading #. Each hashtag must match the pattern [A-Za-z0-9_] with a max length of 500 characters.
Use getTiktokPostsByHashtags for precise hashtag matching. Use getTiktokPostsByKeywords when searching for terms in post descriptions and transcripts.

Comment Tools

getTiktokCommentsByPostId

Get comments for a TikTok post.
ParameterTypeRequiredDescription
postIdstringYesTikTok post ID.
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Data older than 1 week is automatically refreshed.
Supports server-side pagination with 100 comments per page.