## 微信文章搜索 ![](https://img.kancloud.cn/37/eb/37eb44a8b060b5157d8884fddba3301d_128x128.png) > 根据搜索关键词检索微信全网文章 ## 接口费用( [点击购买](https://market.topthink.com/product/167)) > 最低 0.08元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/wechat/search ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是| string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | word| 是 | string | 搜索关键词| | page| 否 | int | 分页| ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | ctime | string | 发布时间 | | title | string | 标题 | | description | string | 描述简介 | | picUrl | string | 封面图片 | | url | string | 文章链接 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->wechatSearch() ->withWord('thinkphp') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": [ { "ctime": "2020-06-25 11:11:02", "title": "ThinkPHPV6.0.3版本发布——端午安康", "description": "ThinkPHP开发者扶持计划主要更新:异常提取session数据时先判断是否使用了session修正文件上传类取消Event类withEvent方法...", "picUrl": "http://mmbiz.qpic.cn/mmbiz_jpg/cly07o0kUKemARP6CibpcXNMeibgibrjBd27GBVIAc4cIOomFtRe2BVSibZca0pSZUAXQB1TUkezTeXZ1ibcrDGc9nw/0?wx_fmt=jpeg", "url": "https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS9kv-iO-xz9Ht3BEo4U6fXB3f6ahVh2ozlqXa8Fplpd9MCxhUKJTenR6OOQQVTNp1vJ8qu7cpB9FWRucB2pn69DLJJUWWL03M3MiUFhTt4xYj7fHoGAEf8b6qdF3OR7BjHU-atU9XhjVaaPTcosRlEkq_lSe__8z1aDq8TBtGEYPStDCq1rwoEOp1OF8btsjpPiiTcNCfbEdzHBMAUi71w_1AfaFW2DefQ..&type=2&query=thinkphp&token=empty" }, { "ctime": "2019-07-10 14:17:33", "title": "ThinkPHP6.0发布计划公告", "description": "ThinkPHP6.0版本从去年年底左右已经陆续开发了8个多月了,期间还经历了一次5.2版本到6.0版本的变更,由于大家对6.0版本的热情...", "picUrl": "http://mmbiz.qpic.cn/mmbiz_jpg/cly07o0kUKfTkPib0vBnuic2FDPr98aDwszS1DPuW2lmDc8FNgsHumYmiahtbqy7vtPxiawnO3dxOMg5qU0PyLNCBA/0?wx_fmt=jpeg", "url": "https://weixin.sogou.com/link?url=dn9a_-gY295K0Rci_xozVXfdMkSQTLW6cwJThYulHEtVjXrGTiVgS9kv-iO-xz9Ht3BEo4U6fXB3f6ahVh2ozlqXa8Fplpd9MCxhUKJTenR6OOQQVTNp1vJ8qu7cpB9FWRucB2pn69DLJJUWWL03M87uUU77xrRqjbwmFUjzR7h34PcEsb1FHpVH6aqluo1iaAsNovkVveVnP5P9-nYFd-H7Amv90MIaWXBv8l3aMpP9EW79VKf37yUU7PQ8EALcOJKQCIS6EYp6VKrzu_4XKA..&type=2&query=thinkphp&token=empty" }, ] } ~~~