Bootstrap

使用Pycharm,IDEAL,PHPSTORM 编程IDE,http客户端请求功能比POSTMAN更简单

POST https://capi.tianyancha.com/cloud-tempest/search/suggest/v5?_=1732108911611
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate, br
Accept-Language:zh-CN,zh;q=0.9
Content-Type:application/json
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36

{"keyword":"长沙"}



#POST https://capi.tianyancha.com/cloud-company-background/companyV2/dim/holder/latest/announcement?_=1732117140270
#Accept:application/json, text/plain, */*
#Accept-Encoding:gzip, deflate, br
#Accept-Language:zh-CN,zh;q=0.9
#Content-Type:application/json
#User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.95 Safari/537.36
#{"gid":"629290381","pageSize":50,"pageNum":1,"historyType":null,"benefitSharesType":1,"_unUseParam":0,"percentLevel":"-100","keyword":""}
#

响应结果

POST https://capi.tianyancha.com/cloud-tempest/search/suggest/v5?_=1732108911611

HTTP/1.1 200 OK
Server: CloudWAF
Date: Wed, 20 Nov 2024 16:02:31 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
traceId: traceId=05f02bedb72fabe2&sampled=0
Content-Encoding: gzip

{
  "state": "ok",
  "message": "",
  "special": "",
  "vipMessage": "",
  "isLogin": 0,
  "errorCode": 0,
  "data": [
    {
      "id": 402234520,
      "graphId": "402234520",
      "type": 0,
      "matchType": "公司名称匹配",
      "comName": "长沙银行股份有限公司",
      "name": "<em>长沙</em>银行股份有限公司",
      "alias": "银行股份",
      "logo": "https://img5.tianyancha.com/logo/lll/99623fdeb07658d3d6a76e0a7138063c.png@!f_200x200",
      "claimLevel": null,
      "regStatus": 0,
      "taxCode": "91430000183807033W",
      "promptContent": null,
      "sourceName": null,
      "sourceUrl": null
    },
;