足球新闻
最后更新于:2022-04-02 08:21:16
## 足球新闻
>[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210)
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/4c/ee/4cee9bc511a291e049e5f9072e91b7e9_200x200.png)
>国足新闻资讯,国足明星动态等。
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
### 请求地址
```
GET https://api.topthink.com/news/football
```
### 请求参数
| 名称 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| 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->newsFootball()
->withNum(10)
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功",
"data": [
{
"ctime":"2019-03-20 15:01",
"title":"武磊无缘首发战梅西?前西班牙国脚将复出!他曾是球队主力左边锋",
"description":"凤凰足球",
"picUrl":"http://d.ifengimg.com/w145_h103/e0.ifengimg.com/12/2019/0320/1D66E82AF2F8AB9007A6C679432F6D9333C67C8F_size32_w532_h355.jpeg",
"url":"http://sports.ifeng.com/a/20190320/60470379_0.shtml"
},
{
"ctime":"2019-03-20 15:01",
"title":"武磊时隔91天低调回国!这3月他做了3件大事,创4大历史",
"description":"凤凰足球",
"picUrl":"http://d.ifengimg.com/w145_h103/e0.ifengimg.com/06/2019/0320/2D766DC6747CAEBC10CCA56A465A56BE9E7B35A9_size313_w677_h462.png",
"url":"http://sports.ifeng.com/a/20190320/60470359_0.shtml"
},
{
"ctime":"2019-03-20 14:00",
"title":"反转?曝傅明仍获亚足联重用足协网开一面:只是业务能力问题",
"description":"凤凰足球",
"picUrl":"http://d.ifengimg.com/w145_h103/e0.ifengimg.com/01/2019/0320/928C7CA16545C3EE9D8157411BC39692914282F1_size389_w646_h441.png",
"url":"http://sports.ifeng.com/a/20190320/60560475_0.shtml"
}
]
}
~~~
';