v.douyin.com是抖音官方的接口,可以制作头条,火山,抖音短视频等官方域名的任意生成接口,可以推广抖音号,第三方网址,头条文章等,效果非常号,这里记录下api接口,纯技术php生成,具体规则可以去抖音的开放平台去申请对应接口 。这里用我php模拟抓包获取方式,
GET json方式调用

GET http://www.tzijieimg.com/?i=www.douyin.com HTTP/1.1
Host: www.douyin.com
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: zh-CN,zh;q=0.8
Cookie: _ba=BA0.2-20190724-5199e-eYmonG3XHx15O5lNJOa3; ttwid=6823359101650863623; gr_user_id=4a85f421-a665-4b93-ba09-3a6cb3625fb9; grwng_uid=051956d7-c720-44de-9183-3c4caf190856; SLARDAR_WEB_ID=b4aa8308-c503-402e-a79d-238f3dd7d029; sid_guard=d568eac749e1075600336a683c0441c4%7C1590125973%7C5184000%7CTue%2C+21-Jul-2020+05%3A39%3A33+GMT; uid_tt=6efa329c0f43810313592283c39c0c78; sid_tt=d568eac749e1075600336a683c0441c4; sessionid=d568eac749e1075600336a683c0441c4; _ga=GA1.2.2030908690.1563943834

中间过滤一层验证,:

GET https://analytics.snssdk.com/collect?t=pageview&tid=fe557d1f75199e&cid=BA0.2-20190724-5199e-eYmonG3XHx15O5lNJOa3&gid=TPWfJ9DIlpduYJ0uyffP&v=0.2&cav=0.2.1&ds=web&sr=1920x1080&sd=24&vp=1920x921&de=UTF-8&ul=zh-CN&dl=https%3A%2F%2Fwww.douyin.com%2F&dh=www.douyin.com&dp=%2F&dt=%E3%80%90%E6%8A%96%E9%9F%B3%E7%9F%AD%E8%A7%86%E9%A2%91%E3%80%91%E8%AE%B0%E5%BD%95%E7%BE%8E%E5%A5%BD%E7%94%9F%E6%B4%BB-Douyin.com&z=1591755890061 HTTP/1.1
Host: analytics.snssdk.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Accept: image/webp,image/*,*/*;q=0.8
Referer: https://www.douyin.com/
Accept-Encoding: gzip, deflate, sdch, br
Accept-Language: zh-CN,zh;q=0.8
Cookie: sid_guard=1434e67ece61f0b93b1593b94004b382%7C1588991632%7C5184000%7CWed%2C+08-Jul-2020+02%3A33%3A52+GMT; uid_tt=5890486cd058006d5868fb0ae93c9dcd; sid_tt=1434e67ece61f0b93b1593b94004b382; sessionid=1434e67ece61f0b93b1593b94004b382; UM_distinctid=1723ba9d21c535-05470643959491-6b1b1279-1fa400-1723ba9d21d3d9; odin_tt=5bd8854064611639b18a8654b882ac742b357f106ef6f95180144f7ac7af1d82dcd055c7d889aa8450d05c103741b4f6b33c9fcee9933a7e8212367a43672997; ccid=1434e67ece61f0b93b1593b94004b382

最后抓包得出如下结果:

HTTP/1.1 200 OK
Server: nginx/1.14.2
Date: Wed, 10 Jun 2020 02:20:31 GMT
Content-Type: application/octet-stream
Content-Length: 0
Connection: keep-alive
x-tt-trace-host: 01d65cb42690d2ea77070484916bd957f8043b3e679df10dfabb0df56f629b72aca976fab9ab477fbf98a344ae423c0918
x-tt-trace-tag: id=00;cdn-cache=miss
X-TT-TIMESTAMP: 1591755631.202
http://v.douyin.com/xxxx