体育新闻

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

## 体育新闻 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/82/f7/82f7688336710d754077bd7fd820da7b_200x200.png) >体育新闻资讯,体育明星动态等。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/news/sport ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string| 是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | num | int | 是 | 返回数量1-50,默认10 | | page | int | 否 | 翻页 | | word | string | 否 | 检索关键词 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | ctime | string | 时间 | | title | string | 标题 | | description | string | 描述 | | picUrl | string | 封面 | | url | string | 链接 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->newsSport() ->withNum(10) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "ctime":"2019-03-20 16:01", "title":"丁宁樊振东领跑国乒包揽前三!张本智和与小胖克星改变乒坛格局", "description":"凤凰体育", "picUrl":"http://d.ifengimg.com/w145_h103/e0.ifengimg.com/12/2019/0320/64E48EB8D05890338789B4EA431148FC43FB4226_size43_w548_h366.jpeg", "url":"http://sports.ifeng.com/a/20190320/60530407_0.shtml" }, { "ctime":"2019-03-20 16:01", "title":"花滑世锦赛隋文静/韩聪破纪录!葱桶满血归来,偷偷一吻太甜了", "description":"凤凰体育", "picUrl":"http://d.ifengimg.com/w145_h103/e0.ifengimg.com/04/2019/0320/E7C9EC958B6ADD26FCECFDE51DFAD564FE35BDFD_size2475_w337_h199.gif", "url":"http://sports.ifeng.com/a/20190320/60560461_0.shtml" }, { "ctime":"2019-03-20 13:53", "title":"中国女乒三大主力领跑!8将出征围剿伊藤,可击败日本复仇雪耻?", "description":"凤凰体育", "picUrl":"http://d.ifengimg.com/w145_h103/e0.ifengimg.com/05/2019/0320/277C8FE35D207EE3B5FEC765F53007170C5BC134_size47_w639_h428.jpeg", "url":"http://sports.ifeng.com/a/20190320/60530406_0.shtml" } ] } ~~~
';