开源中国 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
    • project_catalog_list
    • project_list
    • project_tag_list
  • 私信
    • message_list
    • message_delete
  • 搜索
    • search_list
      POST
  • 通知
    • user_notice
    • clear_notice
  1. 搜索

search_list

POST
/action/openapi/search_list
获取搜索列表
是否需要登录
否
访问授权限制
授权范围(scope)
访问搜索功能

请求参数

Body 参数application/json

示例

返回响应

🟢200成功
application/json
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.oschina.net/action/openapi/search_list' \
--header 'Content-Type: application/json' \
--data-raw '{
    "access_token": "string",
    "catalog": "string",
    "q": "string",
    "pageSize": "string",
    "page/pageIndex": "string",
    "dataType": "string"
}'
响应示例响应示例
{
    "searchlist": [
        {
            "id": 32171,
            "author": "viwii",
            "pubDate": "2011-09-15 07:32:51",
            "title": "硬盘安装linux mint 11(win7)",
            "name": "硬盘安装linux mint 11(win7)",
            "type": "blog",
            "url": "http://home.oschina.net/wxwHome/blog/32171"
        },
        {
            "id": 28647,
            "author": "jingshishengxu",
            "pubDate": "2011-07-23 15:39:01",
            "title": "mint 下安装google拼音输入法",
            "name": "mint 下安装google拼音输入法",
            "type": "blog",
            "url": "http://home.oschina.net/jingshishengxu/blog/28647"
        }
    ]
}
修改于 2022-08-22 06:03:09
上一页
message_delete
下一页
user_notice
Built with