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

接口地址: 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": "ce9bf1df5349d50207f4bba502e9265b",
"ctime": "2024-11-18 14:00",
"title": "“过气”的牛角扣大衣,居然还这么流行吗?!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-18\/1322\/doc-incwnfyr0414483.shtml"
},
{
"id": "79eacb3659c9f334a992e148a5402002",
"ctime": "2024-11-18 14:00",
"title": "5G入冬!时尚又保暖,羽绒服ootd直接抄作业!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-18\/1327\/doc-incwnfyp3638922.shtml"
},
{
"id": "1a0e46b100a29a1b6d0e22cb685e4cd9",
"ctime": "2024-11-18 14:00",
"title": "“奶奶牌”针织毛背心“翻红”,不做时尚绝缘体!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-18\/1333\/doc-incwnfyp3640592.shtml"
},
{
"id": "e591e26e2ea8e9aabbf18f06a51bf566",
"ctime": "2024-11-18 14:00",
"title": "找到了留住深秋的办法!女明星的恋“棕”穿搭",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-18\/1338\/doc-incwnfyr0419462.shtml"
},
{
"id": "7ccc78f3ad53919d92f1976256694448",
"ctime": "2024-11-11 14:00",
"title": "冬季开衫到底怎么穿?让穿搭有更多的可能性!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-11\/1320\/doc-incvskcp7490387.shtml"
},
{
"id": "066d80a3ed6111d17d5fd7148c3dda98",
"ctime": "2024-11-11 14:00",
"title": "保暖又足够时髦!这一票,我投给毛毛外套!",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-11\/1330\/doc-incvskck5519452.shtml"
},
{
"id": "f9b7b9103fb4779deff467154ee74d5a",
"ctime": "2024-11-11 14:00",
"title": "贴身又贴心的打底衫,这个冬季给足你安全感~",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-11\/1333\/doc-incvskch8742928.shtml"
},
{
"id": "53cbf4db862f088df6ab0bb818c6de2d",
"ctime": "2024-11-04 19:00",
"title": "保持风度与温度,少不了温暖又时髦的针织单品",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-04\/1800\/doc-incuwwwc2142854.shtml"
},
{
"id": "bb889c37d35dbda9ab19ad338f7db400",
"ctime": "2024-11-04 19:00",
"title": "松弛感拉满!冬季来袭,解锁摇粒绒穿搭秘籍~",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-04\/1818\/doc-incuwwvu3113950.shtml"
},
{
"id": "da5b447886574ce360e34b12d8f5173d",
"ctime": "2024-11-04 19:00",
"title": "时髦密码!没人能抗拒的超时尚total black穿搭",
"description": "",
"source": "新浪女性",
"picUrl": "",
"url": "https:\/\/fashion.sina.com.cn\/s\/2024-11-04\/1825\/doc-incuxccx5241765.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);