TikTok for Developers

Developer Docs

Last updated October 1, 2026

Device Network

Identifies the network type of the user's device.

TTMinis.game.getNetworkType(opts)

Gets the network type.

Parameters

Field

Type

Description

Required

success

function

The callback function called when the API call succeeds

No

fail

function

The callback function called when the API call fails

No

complete

function

The callback function called when the API call ends. Called whether the call succeeds or fails.

No

Response object (success callback)

Field

Type

Description

networkType

string

The network type

signalStrength

int32

The signal strength in dBm

hasSystemProxy

Boolean

Whether the device uses a network proxy

weakNet

Boolean

Whether the device is in a weak network environment

Example

TTMinis.game.getNetworkType({
  success(res) {
    const networkType = res.networkType;
    const weakNet = res.weakNet;
    console.log("Network type:", networkType);
    console.log("Weak network:", weakNet);
  }
});
TikTok for Developers