Platforms · TikTok

TikTok User Live Scraper API

Returns the current live-stream state for a TikTok user: is_live, and when the account is or has recently been live, the room (title, cover, start time, viewer stats).

GET /api/v1/data/tiktok/user-live · 1 credit per call · The same call repeated within 1 minute may get the same answer, so data can be up to 1 minute old.

Inputs

  • handle (required): TikTok username without the @ symbol

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.is_live (boolean): Whether the account is live now.
  • source_data.liveRoom (object): The live room. Absent for an account that has never streamed, and kept after a stream ends with its last state.
  • source_data.liveRoom.coverUrl (string): A link to the stream's cover image.
  • source_data.liveRoom.gameTagId (number): The id of the game tag, or 0 when the stream has none.
  • source_data.liveRoom.hevcStreamData (object): How to play the stream in the HEVC codec.
  • source_data.liveRoom.hevcStreamData.pull_data (object): What a viewer plays.
  • source_data.liveRoom.hevcStreamData.pull_data.options (object): The qualities and player settings of the stream.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_preview_quality (object): The quality used for previews.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_preview_quality.icon_type (integer): The icon shown beside the quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_preview_quality.level (integer): The quality level. A higher number is a higher quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_preview_quality.name (string): The quality's name, such as `720p` or `Original`.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_preview_quality.resolution (string): The resolution. Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_preview_quality.sdk_key (string): The key the player uses for this quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_preview_quality.v_codec (string): The video codec. Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_quality (object): The quality used when the viewer picks none.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_quality.icon_type (integer): The icon shown beside the quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_quality.level (integer): The quality level. A higher number is a higher quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_quality.name (string): The quality's name, such as `720p` or `Original`.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_quality.resolution (string): The resolution. Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_quality.sdk_key (string): The key the player uses for this quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.default_quality.v_codec (string): The video codec. Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.forced_low_latency (boolean): Whether low latency is forced.
  • source_data.liveRoom.hevcStreamData.pull_data.options.max_drm_lenient_size (string): The largest size played without strict copy protection. Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.max_drm_lenient_size_backup (string): Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.qualities (array): Every quality the stream is offered in.
  • source_data.liveRoom.hevcStreamData.pull_data.options.qualities.icon_type (integer): The icon shown beside the quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.qualities.level (integer): The quality level. A higher number is a higher quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.qualities.name (string): The quality's name, such as `720p` or `Original`.
  • source_data.liveRoom.hevcStreamData.pull_data.options.qualities.resolution (string): The resolution. Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.qualities.sdk_key (string): The key the player uses for this quality.
  • source_data.liveRoom.hevcStreamData.pull_data.options.qualities.v_codec (string): The video codec. Often empty.
  • source_data.liveRoom.hevcStreamData.pull_data.options.show_quality_button (boolean): Whether the player shows a quality picker.
  • source_data.liveRoom.hevcStreamData.pull_data.options.support_low_latency (boolean): Whether the stream supports low latency.
  • source_data.liveRoom.hevcStreamData.pull_data.stream_data (string): The stream addresses for each quality, as a JSON string.
  • source_data.liveRoom.hevcStreamData.push_data (object): The broadcaster's side of the stream.
  • source_data.liveRoom.hevcStreamData.push_data.push_stream_level (integer): The level of the broadcaster's stream.
  • source_data.liveRoom.hevcStreamData.push_data.resolution_params (any): Resolution settings of the broadcaster's stream.
  • source_data.liveRoom.hevcStreamData.push_data.stream_data (string): The broadcaster's stream addresses, as a JSON string. Usually empty.
  • source_data.liveRoom.liveRoomMode (integer): The room's mode code.
  • source_data.liveRoom.liveRoomStats (object): The room's viewer figures.
  • source_data.liveRoom.liveRoomStats.enterCount (number): How many viewers have joined.
  • source_data.liveRoom.liveRoomStats.userCount (number): How many viewers are watching now.
  • source_data.liveRoom.liveSubOnly (integer): 1 when only subscribers can watch, otherwise 0.
  • source_data.liveRoom.multiStreamScene (integer): The multi-guest scene code.
  • source_data.liveRoom.multiStreamSource (integer)
  • source_data.liveRoom.paidEvent (object): Whether the stream is a paid event.
  • source_data.liveRoom.paidEvent.event_id (number): The paid event's id. 0 when there is none.
  • source_data.liveRoom.paidEvent.paid_type (integer): The kind of paid event. 0 when there is none.
  • source_data.liveRoom.squareCoverImg (string): A link to a square version of the cover image. Often empty.
  • source_data.liveRoom.startTime (number): When the stream started, as Unix seconds.
  • source_data.liveRoom.status (integer): The room's status code. 2 is live and 4 is ended.
  • source_data.liveRoom.streamData (object): How to play the stream.
  • source_data.liveRoom.streamData.pull_data (object): What a viewer plays.
  • source_data.liveRoom.streamData.pull_data.options (object): The qualities and player settings of the stream.
  • source_data.liveRoom.streamData.pull_data.options.default_preview_quality (object): The quality used for previews.
  • source_data.liveRoom.streamData.pull_data.options.default_preview_quality.icon_type (integer): The icon shown beside the quality.
  • source_data.liveRoom.streamData.pull_data.options.default_preview_quality.level (integer): The quality level. A higher number is a higher quality.
  • source_data.liveRoom.streamData.pull_data.options.default_preview_quality.name (string): The quality's name, such as `720p` or `Original`.
  • source_data.liveRoom.streamData.pull_data.options.default_preview_quality.resolution (string): The resolution. Often empty.
  • source_data.liveRoom.streamData.pull_data.options.default_preview_quality.sdk_key (string): The key the player uses for this quality.
  • source_data.liveRoom.streamData.pull_data.options.default_preview_quality.v_codec (string): The video codec. Often empty.
  • source_data.liveRoom.streamData.pull_data.options.default_quality (object): The quality used when the viewer picks none.
  • source_data.liveRoom.streamData.pull_data.options.default_quality.icon_type (integer): The icon shown beside the quality.
  • source_data.liveRoom.streamData.pull_data.options.default_quality.level (integer): The quality level. A higher number is a higher quality.
  • source_data.liveRoom.streamData.pull_data.options.default_quality.name (string): The quality's name, such as `720p` or `Original`.
  • source_data.liveRoom.streamData.pull_data.options.default_quality.resolution (string): The resolution. Often empty.
  • source_data.liveRoom.streamData.pull_data.options.default_quality.sdk_key (string): The key the player uses for this quality.
  • source_data.liveRoom.streamData.pull_data.options.default_quality.v_codec (string): The video codec. Often empty.
  • source_data.liveRoom.streamData.pull_data.options.forced_low_latency (boolean): Whether low latency is forced.
  • source_data.liveRoom.streamData.pull_data.options.max_drm_lenient_size (string): The largest size played without strict copy protection. Often empty.
  • source_data.liveRoom.streamData.pull_data.options.max_drm_lenient_size_backup (string): Often empty.
  • source_data.liveRoom.streamData.pull_data.options.qualities (array): Every quality the stream is offered in.
  • source_data.liveRoom.streamData.pull_data.options.qualities.icon_type (integer): The icon shown beside the quality.
  • source_data.liveRoom.streamData.pull_data.options.qualities.level (integer): The quality level. A higher number is a higher quality.
  • source_data.liveRoom.streamData.pull_data.options.qualities.name (string): The quality's name, such as `720p` or `Original`.
  • source_data.liveRoom.streamData.pull_data.options.qualities.resolution (string): The resolution. Often empty.
  • source_data.liveRoom.streamData.pull_data.options.qualities.sdk_key (string): The key the player uses for this quality.
  • source_data.liveRoom.streamData.pull_data.options.qualities.v_codec (string): The video codec. Often empty.
  • source_data.liveRoom.streamData.pull_data.options.show_quality_button (boolean): Whether the player shows a quality picker.
  • source_data.liveRoom.streamData.pull_data.options.support_low_latency (boolean): Whether the stream supports low latency.
  • source_data.liveRoom.streamData.pull_data.stream_data (string): The stream addresses for each quality, as a JSON string.
  • source_data.liveRoom.streamData.push_data (object): The broadcaster's side of the stream.
  • source_data.liveRoom.streamData.push_data.push_stream_level (integer): The level of the broadcaster's stream.
  • source_data.liveRoom.streamData.push_data.resolution_params (any): Resolution settings of the broadcaster's stream.
  • source_data.liveRoom.streamData.push_data.stream_data (string): The broadcaster's stream addresses, as a JSON string. Usually empty.
  • source_data.liveRoom.streamId (string): The id of the stream.
  • source_data.liveRoom.title (string): The live stream's title. Empty when it has none.
  • source_data.liveRoomUserInfo (object): The account that owns the room. Empty for an account that has never streamed.
  • source_data.liveRoomUserInfo.avatarLarger (string): A link to the large profile picture.
  • source_data.liveRoomUserInfo.avatarMedium (string): A link to the medium profile picture.
  • source_data.liveRoomUserInfo.avatarThumb (string): A link to the small profile picture.
  • source_data.liveRoomUserInfo.followStatus (integer): How the viewing account follows this account. 0 is not following.
  • source_data.liveRoomUserInfo.followerCount (number): The account's follower count.
  • source_data.liveRoomUserInfo.followingCount (number): How many accounts the account follows.
  • source_data.liveRoomUserInfo.id (string): The account's numeric id.
  • source_data.liveRoomUserInfo.nickname (string): The account's display name.
  • source_data.liveRoomUserInfo.roomId (string): The id of the account's live room.
  • source_data.liveRoomUserInfo.secUid (string): The account's secure id, which TikTok uses in links.
  • source_data.liveRoomUserInfo.secret (boolean): Whether the account is private.
  • source_data.liveRoomUserInfo.signature (string): The account's bio.
  • source_data.liveRoomUserInfo.status (integer): The account's live status code. 2 is live and 4 is not live.
  • source_data.liveRoomUserInfo.uniqueId (string): The account's handle, without the @.
  • source_data.liveRoomUserInfo.verified (boolean): Whether the account is verified.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • The same call repeated within 1 minute may get the same answer, so data can be up to 1 minute old.

Example call

GET /api/v1/data/tiktok/user-live?handle=charlidamelio

Questions

How much does the TikTok User Live API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send handle. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 1 minute may get the same answer, so data can be up to 1 minute old.

Do I need a TikTok account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related TikTok endpoints

  • User Audience: Get TikTok user audience demographics. 5 credits a call
  • User Followers: List TikTok user followers. 1 credit a page
  • User Following: List TikTok user following. 1 credit a page
  • User Liked: List the videos a TikTok account has liked. 1 credit a page

More TikTok scraper APIs