Files
wehub-resource-sync 9b395f5cc3
E2E Headed Chrome / e2e-headed (macos-15) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (ubuntu-latest) (push) Has been cancelled
E2E Headed Chrome / e2e-headed (windows-latest) (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / unit-test (push) Has been cancelled
CI / bun-test (push) Has been cancelled
CI / adapter-test (push) Has been cancelled
CI / smoke-test (macos-latest) (push) Has been cancelled
CI / smoke-test (ubuntu-latest) (push) Has been cancelled
Security Audit / audit (push) Has been cancelled
Build Chrome Extension / build (push) Has been cancelled
Trigger Website Rebuild (Docs Updated) / dispatch (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:39:48 +08:00

56 lines
1.8 KiB
Markdown

# Juejin
**Mode**: 🌐 Public · **Domain**: `api.juejin.cn`
## Commands
| Command | Description |
|---------|-------------|
| `opencli juejin recommend` | Juejin (掘金) homepage recommended article feed |
| `opencli juejin hot` | Juejin (掘金) hot article ranking, optionally scoped to a category |
## Usage Examples
```bash
# Front-page recommendation feed
opencli juejin recommend --limit 10
# Paginate the feed with the next-page cursor returned in the previous batch
opencli juejin recommend --cursor "1718900000000000000" --limit 10
# Hot ranking, default backend category
opencli juejin hot --limit 20
# Hot ranking scoped to AI / frontend
opencli juejin hot --category ai --limit 10
opencli juejin hot --category frontend --limit 10
# Hot ranking by raw category id (the API returned id)
opencli juejin hot --category 6809637773935378440 --limit 5
# JSON output
opencli juejin hot -f json
```
### `recommend` Options
| Option | Description |
|--------|-------------|
| `--limit` | Max articles (1-100, default 20) |
| `--cursor` | Pagination cursor; pass back the previous response's cursor to keep scrolling (default "0") |
Returns rows with `rank, article_id, title, brief, views, likes, comments, author, tags, url, next_cursor, has_more`. The `article_id` round-trips into `https://juejin.cn/post/<id>`. Use `next_cursor` as the next `--cursor` value when `has_more` is `true`.
### `hot` Options
| Option | Description |
|--------|-------------|
| `--category` | Category slug or numeric id. Slugs: `backend`, `frontend`, `android`, `ios`, `ai` (default backend) |
| `--limit` | Max articles (1-50, default 20) |
Returns rows with `rank, article_id, title, brief, views, likes, comments, hot_rank, author, url`.
## Prerequisites
- No browser required; uses public Juejin API endpoints.