综合新闻

最后更新于:2022-04-02 08:20:10

## 综合新闻 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/65/5d/655d4b7b061a3ed4db168e7ee17a4a9b_200x200.png) > 按每个新闻来源的更新时间,混合输出包括社会、体育、娱乐、科技、财经等三十多个频道的新闻数据。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/news/general ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string| 是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | num | int | 是 | 返回数量1-50,默认10 | | page | int | 否 | 翻页 | | word | string | 否 | 检索关键词 | |source|string|否|指定来源| ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | ctime | string | 时间 | | title | string | 标题 | | description | string | 描述 | | picUrl | string | 封面 | | url | string | 链接 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->newsGeneral() ->withNum(10) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "ctime":"2019-05-14 23:00", "title":"黄金空头千三关口刷存在感,但好景料不长久,美联储准备好迎接不定时炸弹", "description":"龙讯财经", "picUrl":"https://img.longaa.com/article/20190514/image_1557843146049.png!195x130", "url":"https://www.longau.com/article/2019-5-14/1557843195671.html" }, { "ctime":"2019-05-14 22:56", "title": "因嫌疑仍存在争论 法院驳回胜利拘留令", "description":"网易明星", "picUrl":"http://imgsize.ph.126.net/?imgurl=http://cms-bucket.ws.126.net/2019/05/14/288964d27fcb4622b3f68fee897daaae.png_130x90x1x85.jpg", "url":"https://ent.163.com/19/0514/22/EF61T92T00038FO9.html" }, { "ctime":"2019-05-14 16:50", "title":"美官员称伊朗应为船只遇袭负责 但未提供任何证据", "description":"中华国际", "picUrl":"https://img2.utuku.china.com/200x112/news/20190514/6e800949-f52e-49e7-96f9-982a6b78e229.png", "url":"https://news.china.com/international/1000/20190514/35897083.html" } ] } ~~~
';