跳至主要內容

链接解析服务

小于 1 分钟

链接解析服务

POST 获取链接解析内容

Request Method

⚠️ 只支持 post 请求

Request Url

POST https://api.xygeng.cn/openapi/url/info

Body Parameters

{
  "url": "https://xygeng.cn/post/200"
}

Request Code

// js演示
var axios = require('axios');
var data = JSON.stringify({
  url: 'https://xygeng.cn/post/200'
});

// 注意只支持post请求
var config = {
  method: 'post',
  url: 'https://api.xygeng.cn/openapi/url/info',
  headers: {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36',
    'Content-Type': 'application/json',
    Accept: '*/*',
    Connection: 'keep-alive'
  },
  data: data
};

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data));
  })
  .catch(function (error) {
    console.log(error);
  });

Response Examples

成功

{
    "code": 200,
    "data": {
        "url": "https://xygeng.cn/post/200",
        "title": "XY笔记 - 在这里,用代码串起一段一段故事",
        "intro": "在这里,用代码串起一段一段故事",
        "icon": "https://xygeng.cn/favicon.ico"
    },
    "error": null,
    "updateTime": 1732526725355
}
上次编辑于:
贡献者: xygengcn