网站信息TDK获取
GET
无需 Key
运行中
接口简介
快速抓取指定网页的标题(Title)、描述(Description)、关键词(Keywords)基础信息,支持主流HTTP/HTTPS协议网页,返回结构化数据,适配各类信息采集、站点监控场景。
接口地址
https://api.lolimi.cn/API/tdk/api请求示例
测试访问https://api.lolimi.cn/API/tdk/api?url=https://baidu.com返回预览
JSON{
"title": "百度一下,你就知道",
"description": "全球领先的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。",
"keywords": "",
"iconUrl": "https:\/\/www.baidu.com\/favicon.ico"
}
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| url | string | Required | 需要获取的url链接 |
返回参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| code | int | 状态码 |
| title | string | 标题 |
| description | string | 简介 |
| keywords | string | 关键词 |
| iconUrl | string | 图标 |
参数配置
登录获取 KeyResponseWaiting...
<?php
$url = "https://api.lolimi.cn/API/tdk/api";
$params = array (
'url' => 'value',
);
$url .= '?' . http_build_query($params);
$res = file_get_contents($url);
echo $res;