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

接口地址: 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": "741c134eaf8a0b81649405706063ad44",
"ctime": "2025-01-13 22:00",
"title": "贵气皮草?质感羊绒?轻松解锁新年贵气穿搭!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-01-13\/2111\/doc-ineevvkt9393691.shtml"
},
{
"id": "d45de11ff1b2f55b6a73437b8b7b8a4b",
"ctime": "2025-01-13 22:00",
"title": "撞色搭配太时髦!这个冬天试试“安可雷”穿搭",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-01-13\/2113\/doc-ineevvks2619994.shtml"
},
{
"id": "85e254ee052c4179c1346365d1015aae",
"ctime": "2025-01-06 17:00",
"title": "章若楠的衣橱里,你找到自己新年挚爱单品了吗?",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-01-06\/1604\/doc-inecznxx2479725.shtml"
},
{
"id": "397ae5be5fd46d74ee2e415073411859",
"ctime": "2025-01-06 17:00",
"title": "新年到来,快来安排一件毛绒绒的冬日“战袍”",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-01-06\/1609\/doc-inecznxv3046127.shtml"
},
{
"id": "5f0dab363367bd4ee112b0916b3e4fd6",
"ctime": "2025-01-06 17:00",
"title": "保暖和时髦不能同时拥有?试试解锁费尔岛毛衣",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-01-06\/1614\/doc-inecznxv3047942.shtml"
},
{
"id": "a668ccedba5a6ac577f1c20571985e7e",
"ctime": "2025-01-06 17:00",
"title": "穿搭的松弛感,这个冬天成为一个chill girl吧",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2025-01-06\/1620\/doc-inecznxz8880385.shtml"
},
{
"id": "96fcd99b87b67ecf9365e4bd43a1a691",
"ctime": "2025-01-02 19:00",
"title": "新年新气象,与Penhaligon’s潘海利根共同欢庆农历蛇年的到来!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/b\/2025-01-02\/1802\/doc-inecqsvr0245056.shtml"
},
{
"id": "486df0d06dede0073fbb2774c38d0f73",
"ctime": "2024-12-23 15:00",
"title": "圣诞节拿捏红色系,给自己加一个好运buff吧~",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-12-23\/1432\/doc-ineamtfs9355299.shtml"
},
{
"id": "ee34e46f8c7fa75d47c04820eb0eff69",
"ctime": "2024-12-23 15:00",
"title": "在黑灰棕基础色里,穿出各种不同的时髦氛围!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-12-23\/1436\/doc-ineamtfs9356148.shtml"
},
{
"id": "befaba1fe9e3df8e42fca9840fb84b2d",
"ctime": "2024-12-23 15:00",
"title": "兼顾保暖和实穿,在冬季维持第一眼美女氛围~",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-12-23\/1439\/doc-ineamtfr2579734.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);