开源中国 API
  1. 软件
开源中国 API
  • OSCHINA 开放平台Beta
  • 认证接口
    • oauth2_authorize
      GET
    • oauth2_token
      POST
  • 个人信息
    • openapi_user
      POST
    • user_information
      POST
    • my_information
      POST
    • portrait_update
      POST
    • friends_list
      POST
    • active_list
      POST
    • update_user_relation
      POST
  • 新闻
    • news_list
      POST
    • /action/openapi/news_detail
      POST
  • 帖子
    • post_list
      POST
    • post_pub
      POST
    • post_detail
      POST
  • 动弹
    • tweet_list
      POST
    • tweet_detail
      POST
    • tweet_pub
      POST
    • tweet_delete
      POST
  • 博客
    • blog_pub
      POST
    • blog_list
      POST
    • blog_recommend_list
      POST
    • blog_detail
      POST
    • user_blog_list
      POST
    • blog_catalog_list
      POST
  • 评论
    • blog_comment_list
    • blog_comment_pub
    • blog_comment_reply
    • user_blog_delete
    • comment_list
    • comment_pub
    • comment_reply
    • comment_delete
  • 收藏
    • favorite_list
    • favorite_add
    • favorite_remove
  • 软件
    • project_detail
      POST
    • project_catalog_list
      POST
    • project_list
      POST
    • project_tag_list
      POST
  • 私信
    • message_list
    • message_delete
  • 搜索
    • search_list
  • 通知
    • user_notice
    • clear_notice
  1. 软件

project_detail

POST
/action/openapi/project_detail
获取软件详情
是否需要登录
否
访问授权限制
暂无
授权范围(scope)
访问软件资讯
请求参数
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.oschina.net/action/openapi/project_detail' \
--header 'Content-Type: application/json' \
--data-raw '{
    "ident": "string",
    "access_token": "string",
    "dataType": "string"
}'
响应示例响应示例
{
  "body": "Android SDK 是 Android 的开发工具包。.......",
  "logo": "http://oschina.org/img/logo/android.png",
  "os": "Android",
  "download": "http://oschina.org/action/project/go?id=1089&p=download",
  "favorite": 0,
  "url": "http://oschina.org/p/android",
  "homepage": "http://oschina.org/action/project/go?id=1089&p=home",
  "id": 1089,
  "languages": "Java",
  "title": "Android SDK",
  "extensionTitle": "Android开发工具包",
  "document": "http://oschina.org/action/project/go?id=1089&p=doc",
  "recordtime": "2009-11-22 12:23:17.0",
  "license": "Apache"
}

请求参数

Body 参数application/json
ident
string 
软件Ident
必需
access_token
string 
必需
oauth2_token获取的access_token 传则显示是否收藏
dataType
string 
可选
返回数据类型 ['json'|'jsonp'|'xml']
示例

返回响应

🟢200成功
application/json
Body
body
string 
软件详情内容
必需
logo
string 
软件logo地址
必需
os
string 
软件操作系统
必需
download
string 
软件下载链接
必需
favorite
integer 
必需
是否收藏 1-收藏 0-未收藏
url
string 
软件详情地址
必需
homepage
string 
软件主页链接
必需
id
integer 
软件编号
必需
languages
string 
软件语言类型
必需
title
string 
软件名称
必需
extensionTitle
string 
软件详情页标题
必需
document
string 
软件文档链接
必需
recordtime
string 
登记时间
必需
license
string 
软件类型
必需
修改于 2022-08-22 05:46:26
上一页
favorite_remove
下一页
project_catalog_list
Built with