女性新闻
女性周边新闻资讯动态

接口地址: 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": "a10761d7da1226bb87c75ed6d7c37d05",
"ctime": "2025-04-23 16:00",
"title": "防晒的目的与误区",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-23\/1520\/doc-ineuctzv9986445.shtml"
},
{
"id": "de243ddd2aceced7f06ee298e7cb825e",
"ctime": "2025-04-23 16:00",
"title": "物理防晒和化学防晒怎么选",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-23\/1524\/doc-ineuctzs6794144.shtml"
},
{
"id": "74513f120a5b42a192a668637e150d47",
"ctime": "2025-04-23 16:00",
"title": "护肤品中的植物提取物",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-23\/1529\/doc-ineuctzx4469297.shtml"
},
{
"id": "f6eef9db3d1d16bcc2f6799f3a671420",
"ctime": "2025-04-23 16:00",
"title": "护肤品成分中带个“酸”字,就都是真的酸吗?",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/sk\/2025-04-23\/1533\/doc-ineuctzx4470846.shtml"
},
{
"id": "7b7319ccfc8a0b76fe8d9b0d71070c1d",
"ctime": "2025-04-21 16:00",
"title": "Bella味十足的复古喇叭裤,适配各种样式的腿型",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-21\/1535\/doc-inetxfvy1908556.shtml"
},
{
"id": "1a7d30ad13665cba298a7a819f41f68b",
"ctime": "2025-04-21 16:00",
"title": "氧气感满满的经典魅力,一件条纹单品就能实现",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-21\/1538\/doc-inetxfvw5134971.shtml"
},
{
"id": "dc42dc35198d29b48bad510de4787bf6",
"ctime": "2025-04-21 16:00",
"title": "运动鞋解锁春季穿搭潮流密码,成为时尚主角团C位担当",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-21\/1541\/doc-inetxfvz6366111.shtml"
},
{
"id": "0a59e79c329e6c3c34d3faa55cf2eda2",
"ctime": "2025-04-21 16:00",
"title": "还卷不明白?看看SANA如何卷出复古浪漫氛围感",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-04-21\/1546\/doc-inetxfvu8695447.shtml"
},
{
"id": "a2a48dfea858180aa29174a729df7308",
"ctime": "2025-04-16 15:00",
"title": "欧若风狂卷,黑黄皮也要勇闯淡妆赛道",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/2025-04-16\/1423\/doc-inetiweu6899999.shtml"
},
{
"id": "09612f01a71d477c0fa1d8711d0a3de8",
"ctime": "2025-04-16 15:00",
"title": "以油养发,你“养”对了吗?",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/ha\/2025-04-16\/1431\/doc-inetiwez4575504.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);