For the complete documentation index, see llms.txt. This page is also available as Markdown.

Payload

This page shows once the full possible request payload against the shared library, with all default values.

Basic Request Input

{
  "catchPanics": false,
  "certificatePinningHosts": null,
  "customTlsClient": null,
  "transportOptions": null,
  "followRedirects": false,
  "forceHttp1": false,
  "disableHttp3": false,
  "disableSessionTickets": false,
  "withProtocolRacing": false,
  "headerOrder": null,
  "headers": null,
  "insecureSkipVerify": false,
  "isByteRequest": false,
  "isByteResponse": false,
  "isRotatingProxy": false,
  "proxyUrl": null,
  "requestBody": null,
  "requestCookies": null,
  "requestHostOverride": null,
  "defaultHeaders": null,
  "connectHeaders": null,
  "requestMethod": "",
  "requestUrl": "",
  "disableIPV6": false,
  "disableIPV4": false,
  "localAddress": null,
  "sessionId": null,
  "serverNameOverwrite": "",
  "streamOutputBlockSize": null,
  "streamOutputEOFSymbol": null,
  "streamOutputPath": null,
  "timeoutMilliseconds": 0,
  "timeoutSeconds": 0,
  "tlsClientIdentifier": "",
  "withDebug": false,
  "withCustomCookieJar": false,
  "withoutCookieJar": false,
  "withRandomTLSExtensionOrder": false
}
Field
Type
Description

headers

Map<string, string>

Headers to attach on the current request. defaultHeaders will be used when empty.

defaultHeaders

Map<string, Array<string>>

Default Headers to be used when no request headers are specified. The default header order can be specified with the Key "Header-Order:"

connectHeaders

Map<string,Array<string>>

Headers to be used during the CONNECT request. Set User-Agent to an empty string or an empty list to send no User-Agent.

serverNameOverwrite

string

Lookup Client Option "WithServerNameOverwrite"

  • sessionId is optional. When not provided the API does not create a Session. On every forwarded request with a given sessionId you will receive the sessionId in the response to be able to reuse sessions (cookies).

  • Be aware that insecureSkipVerify and the timeoutSeconds can not be changed during a session.

  • followRedirects and proxyUrl can be changed within a session.

  • If you do not want to set requestBody or proxyUrl use null instead of empty string

  • When you set isByteResponse to true the response body will be a base64 encoded string. Useful when you want to download images for example.

  • When you set isByteRequest to true the request body needs to be a base64 encoded string. Useful when you want to upload images for example.

  • When you set withProtocolRacing to true the client will race HTTP/3 (QUIC) and HTTP/2 (TCP) connections in parallel, similar to Chrome's "Happy Eyeballs" approach. Cannot be used together with forceHttp1 or disableHttp3. If you also set a proxyUrl it has to be a socks5:// or socks5h:// proxy that supports UDP ASSOCIATE, since only SOCKS5 can tunnel the UDP traffic HTTP/3 needs. Any other proxy scheme is rejected with an error.

  • When you set disableSessionTickets to true the client does not cache TLS session tickets and never resumes a TLS session, so every connection performs a full handshake. Only profiles that support session resumption (those sending a PSK extension) are affected.

  • When you set withCustomCookieJar to true a custom TLS-Client cookie jar will be used which is more suited for certain use cases. Otherwise the default Go cookie jar is used.

The supportedSignatureAlgorithms list of a custom TLS client additionally accepts MLDSA44, MLDSA65, MLDSA87 and GREASE, which the Chrome 150 and Chrome 152 profiles use. GREASE is replaced with a value drawn from the connection's seed, so it changes per connection just like the built in profiles.

trustAnchorsPayload

Chrome 144 and later send the trust_anchors extension (51764). A ja3 string lists extension IDs but carries no extension data, so if your ja3String contains 51764 you have to supply its payload separately in trustAnchorsPayload, as a hex string. Leaving it empty while the ja3 string asks for the extension fails the request with an error naming this field.

To get the value, open your fingerprint source in the browser you want to imitate, find the entry named Unknown extension 51764 in the tls.extensions array and copy its data field whole. It already starts at the 16-bit list length.

Pass "0000" for an empty anchor list, which is what the Chrome 144 and Chrome 146 profiles send.

The anchor IDs are put in a fresh order once per client, because Chromium writes them in hash set iteration order, which stays the same for the life of a browser process and differs between processes. So the bytes on the wire are a reordering of what you supply, not a copy of it.

Custom TLS-Client

Field
Type
Description

certCompressionAlgos

Array<string>

See possible values at the end of this page

connectionFlow

integer

h2Settings

Map<string, int>

See possible values for the Map keys at the end of this page.

h2SettingsOrder

Array<string>

Array of string keys which are used in the h2Settings property but ordered.

h3Settings

Map<string, int>

HTTP/3 settings. See possible values for the Map keys at the end of this page.

h3SettingsOrder

Array<string>

Array of string keys which are used in the h3Settings property but ordered.

h3PseudoHeaderOrder

Array<string>

Pseudo header order for HTTP/3 requests.

h3PriorityParam

integer

HTTP/3 priority parameter.

h3SendGreaseFrames

boolean

Whether to send GREASE frames in HTTP/3.

headerPriority

PriorityParam

See type definition below in next section

ja3String

string

trustAnchorsPayload

string

Hex payload for the trust_anchors extension (51764). Required if your ja3String lists that extension, since a ja3 string carries extension IDs but no extension data. See the note below.

keyShareCurves

Array<string>

See possible values at the end of this page

priorityFrames

Array<PriorityFrames>

See type definition below in next section

alpnProtocols

Array<string>

List of supported protocols for the ALPN Extension

alpsProtocols

Array<string>

List of supported protocols for the ALPS Extension

ECHCandidatePayloads

Array<uint16>

List of ECH Candidate Payloads

ECHCandidateCipherSuites

Array<CandidateCipherSuite>

See type definition below in next section

pseudoHeaderOrder

Array<string>

See possible values at the end of this page

supportedDelegatedCredentialsAlgorithms

Array<string>

See possible values at the end of this page

supportedSignatureAlgorithms

Array<string>

See possible values at the end of this page

supportedVersions

Array<string>

See possible values at the end of this page

recordSizeLimit

integer

TLS record size limit extension value

streamId

integer

Initial HTTP/2 stream ID

allowHttp

boolean

Allow plaintext HTTP connections

TransportOptions

Field
Type
Description

disableKeepAlives

boolean

disableCompression

boolean

disables (automatic) decompression behavor as documented here

maxIdleConns

integer

maxIdleConnsPerHost

integer

maxConnsPerHost

integer

maxResponseHeaderBytes

integer

If zero, a default is used

writeBufferSize

integer

If zero, a default (currently 4KB) is used

readBufferSize

integer

If zero, a default (currently 4KB) is used

idleConnTimeout

integer

Duration in Nano Seconds

readIdleTimeout

integer

Duration in Nano Seconds. HTTP/2 sends a health check PING when no frame was received for this long. Zero disables it

pingTimeout

integer

Duration in Nano Seconds. Closes the HTTP/2 connection when the PING is not acknowledged in time. Zero means 15 seconds

responseHeaderTimeout

integer

Duration in Nano Seconds. Time to wait for the response headers after the request has been written, over HTTP/1.1 and HTTP/2. Zero means no timeout

CandidateCipherSuite

Field
Type
Description

kdfId

string

See possible values at the end of this page

aeadId

string

See possible values at the end of this page

PriorityParam

Field
Type
Description

streamDep

integer

exclusive

boolean

weight

integer

PriorityFrames

Field
Type
Description

streamId

integer

priorityParam

PriorityParam

See type in the section above

Field
Type
Description

domain

string

expires

integer

Unix Timestamp

maxAge

integer

Number of seconds the cookie is valid.

name

string

path

string

value

string

secure

boolean

Whether the cookie should only be sent over HTTPS.

httpOnly

boolean

Whether the cookie is inaccessible to client-side scripts.

If both Expires and Max-Age are set, Max-Age has precedence.

Values

Here you can find the allowed possible string values to supply for fields like supportedDelegatedCredentialsAlgorithms, supportedSignatureAlgorithms, supportedVersions and much more.

H2Settings

H3Settings

Supported Versions

Supported Signature Algorithms

MLDSA44, MLDSA65 and MLDSA87 are the post quantum codepoints Chrome 150 and later advertise. GREASE is replaced with a value drawn from the connection's seed, so it differs per connection, the way Chrome 152 sends it. Both are only available for supportedSignatureAlgorithms, not for supportedDelegatedCredentialsAlgorithms.

certCompressionAlgorithm

Supported delegated credentials

KeyShareCurves

kdfIds

aeadIds

Last updated