国际新闻

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

## 国际新闻 >[danger]### 会员接口,仅限会员使用,购买[API会员](https://market.topthink.com/product/210) ![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/17/02/170244173bd6de75ded432b4dda5e210_200x200.png) >国际新闻资讯API接口服务。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/news/world ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | 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->newsWorld() ->withNum(10) ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功", "data": [ { "ctime":"2019-03-20 10:52", "title":"巴西武装分子欲抢劫核燃料与警方激烈交火后逃跑", "description":"中华国际", "picUrl":"https://img2.utuku.china.com/162x110/news/20190320/39cc3959-6bd0-469d-921c-8c0e968593d6.jpg", "url":"https://news.china.com/international/1000/20190320/35470553.html" }, { "ctime":"2019-03-20 08:54", "title":"UFO降临?阿联酋上空现神秘“天空之洞”", "description":"中华国际", "picUrl":"https://img3.utuku.china.com/162x110/news/20190320/e7fbdc28-0e9f-4d63-82f5-ba81f6de0a58.jpg", "url":"https://news.china.com/international/1000/20190320/35467967.html" }, { "ctime":"2019-03-20 00:07", "title":"比利时首都受到炸弹威胁欧盟总部40余人撤出", "description":"中华国际", "picUrl":"https://img1.utuku.china.com/162x110/news/20190320/bdc67020-7cff-4028-852e-3698f243a8e2.jpg", "url":"https://news.china.com/international/1000/20190320/35466697.html" } ] } ~~~
';