Skip to content

fetchWebcastSignatureFromEulerRoute

const fetchWebcastSignatureFromEulerRoute: HttpRoute<FetchWebcastSignatureFromEulerRouteParams, SignTikTokUrlResponse>

Defined in: src/lib/web/routes/euler/fetch-webcast-signature-euler.ts:35

Signs an arbitrary TikTok webcast URL through the Euler Stream sign server, returning the signed URL and token bundle the caller needs to make the request.

Strips known signature parameters (X-Bogus, X-Gnarly, msToken) from the input URL before signing. If webClient.cookieJar already holds a sessionid and tt-target-idc pair, both are forwarded to the sign server so the resulting signature is bound to that session.

apiClient

The Euler Stream API client used to issue the sign request.

webClient

The HTTP client whose cookie jar provides any optional session bundle.

url

The original TikTok URL (string or URL) to sign.

method

HTTP method the signed URL will be used with.

userAgent

User-Agent string the signed request will use.

options

Optional axios request overrides forwarded to the SDK call.