Giter Club home page Giter Club logo

juejin-api's Introduction

juejin-api

掘金 API,仅供学习使用!

说明

接口根地址:http://localhost:8000/api/v1

已开启 cors 跨域

文章

获取首页文章列表

接口地址:/articles/index_list

请求方式:POST

请求体参数:

  • cate_id - 分类 id

  • cursor - 分页标识

  • limit - 限制条数

  • sort_type - 排序类型, 0:全部 3:三天内 7:7天内 30:30天内 200:热门 300:最新

  • feed_type - all:推荐,cate:分类

获取文章详情

接口地址:/articles/detail

请求方式:GET

查询参数:

  • article_id - 文章 id

例如:/articles/detail?article_id=7033585766752223240

获取相关文章

接口地址:/related_entry

请求方式:POST

请求体参数:

  • item_id - 文章 id

  • user_id - 用户 id

  • tag_ids - 标签 id,可传多个,数组字符串形式传入,例如:"tag_ids":["6809640399544516616", "6809640501776482317"]

根据标签 id 获取相关推荐文章

请求地址:/articles/recommend_entry_by_tag_ids

请求方式:POST

请求体参数:

  • cursor - 分页标识

  • item_id - 文章 id

  • sort_type - 排序类型,0:全部 3:三天内 7:7天内 30:30天内 200:热门 300:最新

  • tag_ids - 标签 id,可传多个,数组字符串形式传入,例如:"tag_ids":["6809640399544516616", "6809640501776482317"]

搜索文章

接口地址:/articles/search

请求方式:GET

查询参数:

  • id_type - 0:综合 1:用户 2:文章 9:标签

  • key_word - 关键词

  • limit - 限制条数

  • search_type - 0:全部 1:一天内 2:一周内 3:三个月内

例如:/search?key_word=前端

标签

获取标签列表

接口地址:/tags/list

请求方式:POST

请求体参数:

  • cursor: 分页标识

  • limit: 限制条数,默认 20 条

  • sort_type: 排序类型,0:全部 3:三天内 7:7天内 30:30天内 200:热门 300:最新

获取标签详情

接口地址:/tags/detail

请求方式:POST

请求体参数:

  • key_word - 关键词

分类

获取分类列表

接口地址:/categories/list

请求方式:GET

查询参数:

  • show_type - 0:首页 1:作者排行榜 2:小册

例如:/categories/entry?show_type=0

获取某个分类下的标签

接口地址:/categories/tags

请求方式:POST

请求体参数:

  • cate_id - 分类 id

作者榜单

获取作者榜单列表

接口地址:/author/recommend

请求方式:GET

查询参数:

  • category_id - 分类 id,默认获取推荐作者榜单,传入分类 id,可获取对应分类下作者榜单

  • cursor - 分页标识

  • limit - 限制条数,默认 20

资讯

获取资讯文章列表

接口地址:/news/list

请求方式:POST

请求体参数:

  • cursor - 分页标识

  • limit - 限制条数,默认 20 条

  • recommend_mode - 推荐类别,1:全部 2:行业动态 3:软件更新 4:编程语言,默认全部

  • sort_type - 排序类型,默认 600

juejin-api's People

Stargazers

happy_code71 avatar 斯卡蒂x歌蕾蒂娅 avatar Roman avatar 贝利亚 avatar

Watchers

Evan avatar

Forkers

lygaries

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.