## 获取新闻网页正文内容 ![](https://img.kancloud.cn/1e/e5/1ee5be1ab7deb3699d3563af2201691c_200x200.png) > 该接口可用于实时获取网页文章/新闻全文内容,支持互联网上绝大部分网页正文(包含图片等富媒体)。由于网页结构错综复杂,且经常会有变动,所以无法保证所有网站永久有效 ## 接口费用( [点击购买](https://market.topthink.com/product/347)) > 最低 0.005元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/website/htmltext ``` ### 请求参数 | 名称 | 类型 | 必填 | 说明 | | --- | --- | --- | --- | | appCode| string| 是|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | url | string | 是 | 网页url地址 如果包含特殊字符应该对值urlencode编码下 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | title | string | 标题 | | content | text | 网页内容 | | picture | string | 网页中的第一张图片 | | ctime | Date | 网页时间 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->websiteHtmltext() ->withUrl('https://new.qq.com/omn/AUT20201/AUT2020121701525400.html') ->request(); dump($result); ``` JSON返回示例: ~~~ { code: 0, message: "成功", data: [ { "title": "新闻标题", "content": "新闻内容html", "picture": "第一张图片地址", "ctime": "2020-12-17 20:12:01" } ] } ~~~