SuperAPI AI Directory

juejin-article-trends

Writing & research

View repository

Updated 10-16 09:52

About this skill

Juejin Popular Article Rankings

Feature Overview

This skill is used to obtain technical article ranking data from the Juejin (juejin.cn) website, including:

  • Article category list (frontend, backend, AI, mobile development, etc.)
  • Popular/latest article rankings for each category
  • Detailed article information (title, author, views, likes, etc.)

Output Format

Markdown output (default)

Output the article list in Markdown format, with each article containing the following information:

## 序号. 文章标题
- **作者**: 作者名
- **热度**: 热度值
- **阅读**: 阅读数 | **点赞**: 点赞数 | **收藏**: 收藏数 | **评论**: 评论数
- **摘要**: 文章内容概要
- **链接**: [查看详情](<https://juejin.cn/post/文章ID>)

Markdown Output Features:

  • Uses Markdown format, can be rendered directly in environments that support Markdown
  • Each article is separated by a blank line for easy reading
  • Links use the [查看详情](<链接>) format, which correctly handles special characters
  • Articles are sorted by popularity or publish time (according to the type parameter)

JSON output (using the json parameter)

node scripts/juejin.js articles <category_id> [type] [limit] json

Returns data in JSON format:

{
  "category_id": "6809637769959178254",
  "type": "hot",
  "total": 10,
  "articles": [
    {
      "title": "文章标题",
      "brief": "文章摘要",
      "author": "作者名",
      "authorId": "作者ID",
      "articleId": "文章ID",
      "popularity": 1000,
      "viewCount": 2000,
      "likeCount": 50,
      "collectCount": 30,
      "commentCount": 10,
      "interactCount": 60,
      "url": "https://juejin.cn/post/文章ID",
      "publishTime": 1699123456,
      "tags": ["标签1", "标签2"]
    }
  ]
}

JSON Field Descriptions:

  • title: Article title
  • brief: Article summary
  • author: Author name
  • authorId: Author ID
  • articleId: Article ID
  • popularity: Popularity value
  • viewCount: Number of views
  • likeCount: Number of likes
  • collectCount: Number of favorites
  • commentCount: Number of comments
  • interactCount: Number of interactions
  • url: Article link
  • publishTime: Publish timestamp
  • tags: Article tag array

Workflow

1. Get category list

When the user needs to learn about Juejin article categories:

node scripts/juejin.js categories

Example return:

[
  { "id": "6809637543259144", "name": "前端" },
  { "id": "6809637769959178254", "name": "后端" },
  { "id": "6809635626879549454", "name": "Android" },
  { "id": "6809635626661445640", "name": "iOS" },
  { "id": "6809637773935378440", "name": "人工智能" },
  { "id": "6809637769959178260", "name": "开发工具" },
  { "id": "6809637769959178261", "name": "代码人生" },
  { "id": "6809637769959178262", "name": "阅读" }
]

2. Get popular articles

When the user needs to get popular articles in a specific category:

node scripts/juejin.js articles <category_id> [type] [limit] [json]

Parameters:

  • category_id: Category ID (obtained from the category list)
  • type: Sort type, optional hot(popular) or new(latest), default hot
  • limit: Number of articles to return, default 20
  • json: Output data in JSON format (optional)

Note:type=new The parameter may be unavailable due to Juejin API limitations. If you encounter an HTTP 500 error, please use type=hot。

Common category IDs:

  • 6809637769959178254 - Backend
  • 6809637767543259144 - Frontend
  • 6809635626879549454 - Android
  • 6809635626661445640 - iOS
  • 6809637773935378440 - Artificial Intelligence

Usage Examples

View all categories

node scripts/juejin.js categories

Get popular backend articles (Markdown format)

node scripts/juejin.js articles 6809637769959178254 hot 10

Get latest backend articles (JSON format)

node scripts/juejin.js articles 6809637769959178254 new 10 json

Get popular articles in the Artificial Intelligence category (JSON format)

node scripts/juejin.js articles 6809637773935378440 hot 20 json

Author Introduction

  • The omnipresence of those who love pirates
  • My WeChat official account: 无处不在的技术