通过凤凰生活资讯早报获取每天的生活资讯早报,每天实时更新
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| type | string | 否 | 不填默认为json,可填text/json/text1 | json |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "type",
"type": "string",
"required": false,
"description": "不填默认为json,可填text/json/text1",
"example": "json"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "凤凰生活资讯早报",
"description": "通过凤凰生活资讯早报获取每天的生活资讯早报,每天实时更新",
"version": "1.0.0"
},
"paths": {
"/api/yljk/shzx/api.php": {
"get": {
"summary": "凤凰生活资讯早报",
"description": "通过凤凰生活资讯早报获取每天的生活资讯早报,每天实时更新",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "不填默认为json,可填text/json/text1"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "凤凰生活资讯早报",
"description": "通过凤凰生活资讯早报获取每天的生活资讯早报,每天实时更新",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "不填默认为json,可填text/json/text1"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api-v2.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"listenNumShow": "755",
"description": "",
"episode": "-9999",
"title": "0702先不用扔,无3C标识充电宝能上高铁!“无菌蛋”真的无菌吗?",
"operator": "cmpp上传",
"img194_194": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg@base@tag=imgScale&q=100&w=194&h=194",
"duration": "300",
"img370_370": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg@base@tag=imgScale&q=100&w=370&h=370",
"videoUrl": "",
"isFree": "1",
"programName": "凤凰生活资讯早报",
"sourceSort": "1779",
"controllNum": "0",
"id": "11773418",
"publishTime": "1751374887",
"img100_100": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg@base@tag=imgScale&q=100&w=100&h=100",
"isVideo": "2",
"updateTime": "1751374887",
"leadNumShow": "0",
"img297_194": "",
"commentNum": "0",
"downloadNumShow": "0",
"createTime": "1751358611",
"audiolist": [
{
"isDefault": "1",
"size": "2346",
"filePath": "https://p3.renbenzhihui.com/cmpp/2025070116300F939163006381754A7E1B3B142735AF_64.mp3?pf=fm&vid=11773418&tm=1751379552315&pid=1896502",
"audioStream": "1"
}
],
"img180_240": "",
"img640_640": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg",
"programId": "1896502"
}
凤凰生活资讯早报接口用于获取每日更新的生活资讯早报内容。
适用于需要接入生活资讯播报内容的应用或服务。
https://api-v2.317ak.com/api/yljk/shzx/api.php
GET、POST
接口调用需要进行鉴权,请在请求中通过 Query 参数传递密钥:
key=…
其中 key 为接口调用密钥。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥 |
| type | string | 否 | 返回数据格式类型,不填写时默认为 json,可填写 text、json、text1 |
参数取值说明:
json。可根据调用需求选择 text、json 或 text1。{
"listenNumShow": "755",
"description": "",
"episode": "-9999",
"title": "0702先不用扔,无3C标识充电宝能上高铁!“无菌蛋”真的无菌吗?",
"operator": "cmpp上传",
"img194_194": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg@base@tag=imgScale&q=100&w=194&h=194",
"duration": "300",
"img370_370": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg@base@tag=imgScale&q=100&w=370&h=370",
"videoUrl": "",
"isFree": "1",
"programName": "凤凰生活资讯早报",
"sourceSort": "1779",
"controllNum": "0",
"id": "11773418",
"publishTime": "1751374887",
"img100_100": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg@base@tag=imgScale&q=100&w=100&h=100",
"isVideo": "2",
"updateTime": "1751374887",
"leadNumShow": "0",
"img297_194": "",
"commentNum": "0",
"downloadNumShow": "0",
"createTime": "1751358611",
"audiolist": [
{
"isDefault": "1",
"size": "2346",
"filePath": "https://p3.renbenzhihui.com/cmpp/2025070116300F939163006381754A7E1B3B142735AF_64.mp3?pf=fm&vid=11773418&tm=1751379552315&pid=1896502",
"audioStream": "1"
}
],
"img180_240": "",
"img640_640": "https://p1.renbenzhihui.com/upload/2021_52/6aa8ba576d71705.jpg",
"programId": "1896502"
}
| 字段 | 类型 | 说明 |
|---|---|---|
| listenNumShow | string | 播放数量展示值 |
| description | string | 内容描述 |
| episode | string | 节目期数信息 |
| title | string | 资讯标题 |
| operator | string | 内容操作信息 |
| img194_194 | string | 194×194 尺寸图片地址 |
| duration | string | 音频时长 |
| img370_370 | string | 370×370 尺寸图片地址 |
| videoUrl | string | 视频地址 |
| isFree | string | 是否免费 |
| programName | string | 节目名称 |
| sourceSort | string | 来源排序信息 |
| controllNum | string | 控制数量信息 |
| id | string | 内容编号 |
| publishTime | string | 发布时间 |
| img100_100 | string | 100×100 尺寸图片地址 |
| isVideo | string | 是否为视频内容 |
| updateTime | string | 更新时间 |
| leadNumShow | string | 引导数量展示值 |
| img297_194 | string | 297×194 尺寸图片地址 |
| commentNum | string | 评论数量 |
| downloadNumShow | string | 下载数量展示值 |
| createTime | string | 创建时间 |
| audiolist | array | 音频列表 |
| audiolist[].isDefault | string | 是否为默认音频 |
| audiolist[].size | string | 音频大小 |
| audiolist[].filePath | string | 音频文件地址 |
| audiolist[].audioStream | string | 音频流信息 |
| img180_240 | string | 180×240 尺寸图片地址 |
| img640_640 | string | 640×640 尺寸图片地址 |
| programId | string | 节目编号 |
接口发生业务异常时,返回统一 JSON 错误结构:
{"code":0,"msg":"未提供调用密钥","errcode":11001}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | ***地址无效 |
| 11015 | ***地址不允许 |
| 11016 | ***请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用出口代理须提供有效密钥 |
| 11021 | 未配置可用出口代理 |
| 11022 | 出口代理不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
curl -G "https://api-v2.317ak.com/api/yljk/shzx/api.php" \
--data-urlencode "key=你的接口密钥" \
--data-urlencode "type=json"
## 注意事项
- 调用接口前需妥善保管接口密钥 `key`,避免泄露或公开传播。不要将密钥直接暴露在客户端页面、公开代码仓库或可被他人获取的位置。
- 请求时请确保 `key` 参数正确传递,否则可能无法正常获取凤凰生活资讯早报内容。
- 接口支持 `type` 参数控制返回格式,不填写时默认返回 JSON 格式;如需其他格式,请根据接口要求填写 `text`、`json` 或 `text1`。
- 建议使用 HTTPS 方式访问接口,保障请求过程中的数据安全。
- 接口内容每天实时更新,返回数据中的发布时间等字段可能随每日资讯更新而变化,请以接口实际返回结果为准。
- 请合理控制调用频率,避免短时间内大量重复请求影响正常使用。
- 使用返回内容时,请根据实际业务场景处理空字段情况,例如部分图片字段或视频字段可能为空。curl "https://api-v2.317ak.com/api/yljk/shzx/api.php?key=YOUR_API_KEY&type=json"