Skip to main content
GET
tiktok generate_webid
Generate web_id Pricing — billed per successful call; the final charge scales by your plan multiplier. Charged only when the upstream response body code is 200.

Example

Request contract

  • Method and path: GET /apis/v1/tikhub/tiktok/web/generate_webid
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/tikhub/tiktok/web/generate_webid
  • app_id: query; optional
  • cookie: query; optional
  • referer: query; optional
  • url: query; optional
  • user_agent: query; optional
  • user_unique_id: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Request pricing. Default request estimate: $0.001 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

app_id
integer
default:1988

Application ID, default 1988, represents TikTok Web app

Custom cookie (must contain odin_tt), uses default if not provided

referer
string
default:""

Referrer page

url
string
default:https://www.tiktok.com/explore

Request source URL

user_agent
string
default:Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:145.0) Gecko/20100101 Firefox/145.0

User agent string

user_unique_id
string
default:""

User unique ID (optional)

Response

Successful Response

Return

  • web_id: Generated web_id
  • e: Error code (0 means success)
  • ssid: Session ID
cache_message
string | null
default:This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.

Cache message (EN-US)

cache_message_zh
string | null
default:本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。

Cache message (ZH-CN)

cache_url
string | null

The URL to access the cached result

code
integer
default:200

HTTP status code

data
any

Endpoint-specific response payload. The official shared model does not declare a fixed type or field set. Use the operation's documented return fields or response example; an operation-specific schema, when present, describes the documented fields. Undocumented fields must be read from the actual response rather than assumed.

docs
string | null

Link to the API Swagger documentation for this endpoint

message
string
default:Request successful. This request will incur a charge.

Response message (EN-US)

message_zh
string
default:请求成功,本次请求将被计费。

Response message (ZH-CN)

params
any
default:{}

The parameters used in the request

request_id
string | null

Unique request identifier

router
string
default:""

The endpoint that generated this response

support
string
default:Discord: https://discord.gg/aMEAS8Xsvz

Support message

time
string

The time the response was generated

time_stamp
integer

The timestamp the response was generated

time_zone
string
default:America/Los_Angeles

The timezone of the response time