抖音巨量

抖音巨量


ttwid参数获取

<p><strong>简要描述:</strong> ttwid参数获取,此参数巨量会去校验 <strong>请求URL:</strong> </p> <ul> <li><code>https://ttwid.bytedance.com/ttwid/union/register/?_signature=_02B4Z6wo00f01IXVj-wAAIDABdd1rL3nTCiF1YtAAEDq0f</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST</li> </ul> <p><strong>请求数据</strong></p> <pre><code>{"aid":1574,"service":"buyin-sso.jinritemai.com","unionHost":"//ttwid.bytedance.com","needFid":false,"union":true,"fid":""} </code></pre> <p><strong>请求cookie</strong> 带上Cookie请求</p> <p><strong>参数说明:</strong> </p> <p>参数固定死</p> <p><strong>请求协议头</strong></p> <pre><code>accept: application/json, text/plain, */* content-type: application/x-www-form-urlencoded referer: https://buyin.jinritemai.com/ user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36</code></pre> <p><strong>返回例子</strong></p> <pre><code>{ "status_code": 0, "message": "union register success", "redirect_url": "https://buyin-sso.jinritemai.com/ttwid/union/register/callback/?aid=1574&amp;ticket=16tJt2NllhVlPAxvTbA-imHvcapMkbmLlS2_7xpoU9j-KG9ghJvjDcsbMYLia7ivx" }</code></pre> <p><strong>返回的cookie</strong></p> <pre><code>uid_tt=104407a70734012ec0cd3447f7a58cd8; uid_tt_ss=104407a70734012ec0cd3447f7a58cd8; sid_tt=af384b0b476e871ebb3a5234ba811179; sessionid=af384b0b476e871ebb3a5234ba811179; sessionid_ss=af384b0b476e871ebb3a5234ba811179; sid_guard=af384b0b476e871ebb3a5234ba811179%7C1635587219%7C5183819%7CWed%2C+29-Dec-2021+09%3A43%3A58+GMT; </code></pre> <table> <thead> <tr> <th style="text-align: left;">返回参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">redirect_url</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>重定向网址,需要请求</td> </tr> </tbody> </table> <p><strong>返回参数说明</strong></p> <p>返回的参数取redirect_url网址,并请求,带上协议头,详情请看redirect_url请求更新cookie</p>

页面列表

ITEM_HTML