稳定、快速、免费的 API 接口服务
女性周边新闻资讯动态
接口地址: https://58.linkpc.net/doc/woman.html
返回格式: JSON
请求方式: GET
请求示例: https://58.linkpc.net/api/woman?num=10
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
num | 是 | int | 返回数量1-50,默认10 |
page | 否 | int | 翻页 |
rand | 否 | int | 随机获取 |
word | 否 | String | 检索关键词 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
curpage | int | 当前页 |
allnum | int | 结果数 |
id | String | 新闻唯一ID |
ctime | Date | 发布时间 |
title | String | 文章标题 |
description | String | 文章描述 |
source | String | 文章来源 |
picUrl | String | 封面图片 |
url | String | 文章地址 |
返回示例:
{
"code": 200,
"msg": "success",
"data": {
"curpage": 1,
"allnum": 10,
"newslist": [
{
"id": "fa9e75919b4656df85a9107276b61b8e",
"ctime": "2025-04-28 18:00",
"title": "纠正洗脸方式,如何正确去除“氧化皮脂”?",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-28\/1706\/doc-ineutiyq8870519.shtml"
},
{
"id": "9fbab6a9b6755034764a92ffe17370d9",
"ctime": "2025-04-28 18:00",
"title": "B5是万能护肤成分吗?",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-28\/1711\/doc-ineutiyu1904981.shtml"
},
{
"id": "b6fb7e9d097a54066a803f29ddb02650",
"ctime": "2025-04-28 18:00",
"title": "以油养肤-春日大干皮自救",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-28\/1716\/doc-ineutiys5132250.shtml"
},
{
"id": "0914784a6cacfa9d93915ceeecff51cf",
"ctime": "2025-04-28 18:00",
"title": "三大抗老成分,读懂抗老小秘诀",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-28\/1719\/doc-ineutiys5133512.shtml"
},
{
"id": "cad0d3f6fef69f0080f7955da1202019",
"ctime": "2025-04-28 18:00",
"title": "润色防晒-一种特别的防晒",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-28\/1739\/doc-ineutiys5140810.shtml"
},
{
"id": "03072d4b713454637fb0f5c82ec1d7d4",
"ctime": "2025-04-28 18:00",
"title": "不同防晒怎么选?",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-28\/1753\/doc-ineutiys5146250.shtml"
},
{
"id": "2a7cad42fadce05c39148d71baf84613",
"ctime": "2025-04-28 17:00",
"title": "五一出行,还在纠结怎么行李打包?MBTI给你最新答案!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-28\/1648\/doc-ineutiyq8858525.shtml"
},
{
"id": "b76e001e87333e824cbdfeb97fdd4554",
"ctime": "2025-04-28 17:00",
"title": "10年前的古早发型、穿着、滤镜,在今天焕发时尚新魅力",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-28\/1651\/doc-ineutiyv6534337.shtml"
},
{
"id": "86c75aebafc1eb45a282f79a32f3388e",
"ctime": "2025-04-28 17:00",
"title": "Sporty Chic教你如何穿得时髦又有运动的力量感",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-28\/1654\/doc-ineutiyu1898472.shtml"
},
{
"id": "df2b30ccafa94544dfe986188f8800d8",
"ctime": "2025-04-28 17:00",
"title": "王菲的“大包宣言”掀起时尚风暴,玩出新花样",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-28\/1658\/doc-ineutiyv6538439.shtml"
}
]
}
}
错误码格式说明:
名称 | 类型 | 说明 |
---|
代码示例:
<?php
header('Content-type: application/json; charset=utf-8');
date_default_timezone_set('PRC');
$url = 'https://58.linkpc.net/api/woman';
$type = isset($_GET['type']) ? $_GET['type'] : '';
if ($type == 'json' || $type == 'JSON') {
$result = file_get_contents($url . '?type=json');
echo htmlspecialchars($result);
} else {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$contentType = curl_getinfo($ch, CURLINFO_CONTENT_TYPE);
curl_close($ch);