---
title: "Zhihu Danh sách bài viết cột API (V1)"
description: "Lấy thông tin về các bài viết từ cột của Zhihu với chức năng định dạng trang. Sử dụng để xem lịch sử xuất bản của cột và chọn các bài viết để xem chi tiết."
lastUpdated: false
aiUsagePrompt: true
---

# Zhihu Danh sách bài viết cột API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/zhihu/get-column-article-list/v1\"")'
  :summary='JSON.parse("\"Danh sách bài viết cột (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/zhihu/column-article-list-v1-vi.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"TOKEN\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"columnId\",\"in\":\"query\",\"description\":\"ID cột\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"offset\",\"in\":\"query\",\"description\":\"Khoảng mở đầu, bắt đầu từ 0.\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":0}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"description\":\"Bài viết được trả về cho cột Zhihu được yêu cầu.\",\"items\":{\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Thông tin nhận dạng bài viết Zhihu được biểu diễn dưới dạng văn bản.\"},\"type\":{\"type\":\"string\",\"description\":\"Loại nội dung được báo cáo cho mục này.\"},\"article_type\":{\"type\":\"string\",\"description\":\"Mã phân loại bài viết được Zhihu báo cáo.\"},\"title\":{\"type\":\"string\",\"description\":\"Tiêu đề của bài viết.\"},\"excerpt\":{\"type\":\"string\",\"description\":\"Đoạn trích được trả về cho bài viết.\"},\"excerpt_title\":{\"type\":\"string\",\"description\":\"Tiêu đề đoạn trích được trả về cho bài viết.\"},\"content\":{\"type\":\"string\",\"description\":\"Nội dung bài viết như được trả về trong danh sách. Văn bản có thể chứa mã HTML.\"},\"content_need_truncated\":{\"type\":\"boolean\",\"description\":\"Thẻ chỉ ra liệu nội dung bài viết được trả về có nên bị cắt ngắn để hiển thị hay không.\"},\"url\":{\"type\":\"string\",\"description\":\"URL được báo cáo cho bài viết.\"},\"image_url\":{\"type\":\"string\",\"description\":\"URL hình ảnh được báo cáo cho bài viết.\"},\"title_image\":{\"type\":\"string\",\"description\":\"URL hình nền cho bài viết.\"},\"created\":{\"type\":\"integer\",\"description\":\"Thời gian tạo bài viết dưới dạng thời gian Unix tính bằng giây.\"},\"updated\":{\"type\":\"integer\",\"description\":\"Thời gian cập nhật bài viết dưới dạng thời gian Unix tính bằng giây.\"},\"voteup_count\":{\"type\":\"integer\",\"description\":\"Số lượt like được báo cáo cho bài viết.\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"Số lượt bình luận được báo cáo cho bài viết.\"},\"can_comment\":{\"type\":\"object\",\"properties\":{\"status\":{\"type\":\"boolean\",\"description\":\"Liệu có cho phép bình luận trong ngữ cảnh bài viết được ghi lại hay không.\"},\"reason\":{\"type\":\"string\",\"description\":\"Lý do được trả về liên quan đến trạng thái bình luận.\"}}},\"comment_permission\":{\"type\":\"string\",\"description\":\"Thẻ quyền bình luận được Zhihu trả về.\"},\"author\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Thông tin nhận dạng tác giả bài viết của Zhihu.\"},\"name\":{\"type\":\"string\",\"description\":\"Tên công khai của tác giả bài viết.\"},\"headline\":{\"type\":\"string\",\"description\":\"Tiêu đề thông tin cá nhân công khai của tác giả bài viết.\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"URL hình ảnh cá nhân của tác giả bài viết.\"},\"url_token\":{\"type\":\"string\",\"description\":\"Định danh tài khoản công cộng được sử dụng trong URL cá nhân của tác giả.\"},\"url\":{\"type\":\"string\",\"description\":\"URL cá nhân được trả về cho tác giả.\"},\"user_type\":{\"type\":\"string\",\"description\":\"Loại người dùng được báo cáo cho tài khoản tác giả.\"},\"is_org\":{\"type\":\"boolean\",\"description\":\"Liệu tài khoản tác giả có được đánh dấu là tổ chức hay không.\"}}}}}},\"paging\":{\"type\":\"object\",\"properties\":{\"is_start\":{\"type\":\"boolean\",\"description\":\"Liệu trang được trả về có phải là trang đầu tiên hay không.\"},\"is_end\":{\"type\":\"boolean\",\"description\":\"Liệu Zhihu có đánh dấu đây là trang cuối cùng hay không. Nếu đúng, dừng lại.\"},\"next\":{\"type\":\"string\",\"description\":\"Liên kết được báo cáo cho trang tiếp theo. Nếu is_end là false, lấy offset từ liên kết này để yêu cầu tiếp theo.\"},\"previous\":{\"type\":\"string\",\"description\":\"Liên kết được báo cáo cho trang trước.\"},\"totals\":{\"type\":\"integer\",\"description\":\"Số lượng bài viết tổng cộng cho cột được báo cáo.\"}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"Các tham số hoặc nội dung yêu cầu không hợp lệ.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"Tài khoản truy cập không hợp lệ hoặc không hoạt động.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"Quyền truy cập bị từ chối.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"Tốc độ yêu cầu hoặc giới hạn hàng ngày đã vượt quá.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"Lỗi máy chủ nội bộ.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"Dịch vụ tạm thời không khả dụng.\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"API sản xuất toàn cục (mặc định)\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/zhihu/get-column-article-list/v1\"")' />

<p>Lấy thông tin về các bài viết từ cột của Zhihu với chức năng định dạng trang. Sử dụng để xem lịch sử xuất bản của cột và chọn các bài viết để xem chi tiết.</p>

## Tham số

<div class="api-doc-table api-doc-table--params">

| Tên | Vị trí | Kiểu dữ liệu | Bắt buộc | Mặc định | Mô tả |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | Đúng | - | TOKEN |
| <code>columnId</code> | query | <code>string</code> | Đúng | - | ID cột |
| <code>offset</code> | query | <code>integer</code> | Không | <code>0</code> | Khoảng mở đầu, bắt đầu từ 0. |

</div>

## Ví dụ mã hóa

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE'
```

```text [🤖 Lời hướng dẫn AI]
Tôi muốn sử dụng API "Danh sách bài viết cột (V1)" từ JustOneAPI.
URL cơ sở: https://api.justoneapi.com.
Đường dẫn API: /api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE
Điểm cuối API: BASE_URL + /api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE
Phương thức HTTP: GET
Xác thực: Thêm tham số "token" vào URL.
Định nghĩa OpenAPI: https://docs.justoneapi.com/openapi/zhihu/column-article-list-v1-vi.json

Tham số:
- token (query): TOKEN (Bắt buộc)
- columnId (query): ID cột (Bắt buộc)
- offset (query): Khoảng mở đầu, bắt đầu từ 0.

Định dạng trả về: Xử lý an toàn phản hồi JSON hoặc văn bản dựa trên Content-Type thực tế.

Xử lý phản hồi và mã lỗi:
1. Đọc kết quả xử lý từ trường "code" trong nội dung phản hồi (mã 0 là thành công).
2. Thời gian chờ đề xuất: 120 giây. Nếu 120 giây quá dài, hãy dành ít nhất 60 giây. Một số yêu cầu có thể hết thời gian chờ trước khi có kết quả.
3. Mã kết quả:
   - 0: Thành công
   - 100: Token không hợp lệ hoặc đã bị vô hiệu hóa
   - 301: Không lấy được dữ liệu. Hãy thử lại.
   - 302: Vượt giới hạn tần suất gọi
   - 303: Vượt hạn mức trong ngày
   - 400: Tham số không hợp lệ
   - 500: Lỗi nội bộ máy chủ
   - 600: Không có quyền truy cập
   - 601: Không đủ số dư
   - 602: Đã chạm giới hạn ngân sách token
4. Mã 601 nghĩa là số dư dùng chung của tài khoản không đủ. Mã 602 nghĩa là token API đã chạm giới hạn ngân sách tích lũy riêng. Việc đặt ngân sách cho token không chuyển tiền khỏi số dư dùng chung.

Xin hãy giúp tôi viết một script bằng ngôn ngữ lập trình yêu thích để gọi API này và xử lý phản hồi.
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # Được cung cấp bởi các server OpenAPI

url = BASE_URL + "/api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // Được cung cấp bởi các server OpenAPI
const url = BASE_URL + "/api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Được cung cấp bởi các server OpenAPI
        final String url = BASE_URL + "/api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Được cung cấp bởi các server OpenAPI

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Được cung cấp bởi các server OpenAPI
$url = $BASE_URL . '/api/zhihu/get-column-article-list/v1?token=YOUR_API_KEY&columnId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/zhihu/column-article-list-v1-vi.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[Định nghĩa OpenAPI (JSON)]</a>
</div>

## Các trường trong phản hồi

Các trường chính trong phản hồi thành công (`code = 0`).

<div class="api-doc-table api-doc-table--response">

| Đường dẫn trường | Kiểu dữ liệu | Mô tả |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | - |
| <code>data.data</code> | <code>array</code> | Bài viết được trả về cho cột Zhihu được yêu cầu. |
| <code>data.data[].id</code> | <code>string</code> | Thông tin nhận dạng bài viết Zhihu được biểu diễn dưới dạng văn bản. |
| <code>data.data[].type</code> | <code>string</code> | Loại nội dung được báo cáo cho mục này. |
| <code>data.data[].article_type</code> | <code>string</code> | Mã phân loại bài viết được Zhihu báo cáo. |
| <code>data.data[].title</code> | <code>string</code> | Tiêu đề của bài viết. |
| <code>data.data[].excerpt</code> | <code>string</code> | Đoạn trích được trả về cho bài viết. |
| <code>data.data[].excerpt_title</code> | <code>string</code> | Tiêu đề đoạn trích được trả về cho bài viết. |
| <code>data.data[].content</code> | <code>string</code> | Nội dung bài viết như được trả về trong danh sách. Văn bản có thể chứa mã HTML. |
| <code>data.data[].content_need_truncated</code> | <code>boolean</code> | Thẻ chỉ ra liệu nội dung bài viết được trả về có nên bị cắt ngắn để hiển thị hay không. |
| <code>data.data[].url</code> | <code>string</code> | URL được báo cáo cho bài viết. |
| <code>data.data[].image_url</code> | <code>string</code> | URL hình ảnh được báo cáo cho bài viết. |
| <code>data.data[].title_image</code> | <code>string</code> | URL hình nền cho bài viết. |
| <code>data.data[].created</code> | <code>integer</code> | Thời gian tạo bài viết dưới dạng thời gian Unix tính bằng giây. |
| <code>data.data[].updated</code> | <code>integer</code> | Thời gian cập nhật bài viết dưới dạng thời gian Unix tính bằng giây. |
| <code>data.data[].voteup_count</code> | <code>integer</code> | Số lượt like được báo cáo cho bài viết. |
| <code>data.data[].comment_count</code> | <code>integer</code> | Số lượt bình luận được báo cáo cho bài viết. |
| <code>data.data[].can_comment</code> | <code>object</code> | - |
| <code>data.data[].can_comment.status</code> | <code>boolean</code> | Liệu có cho phép bình luận trong ngữ cảnh bài viết được ghi lại hay không. |
| <code>data.data[].can_comment.reason</code> | <code>string</code> | Lý do được trả về liên quan đến trạng thái bình luận. |
| <code>data.data[].comment_permission</code> | <code>string</code> | Thẻ quyền bình luận được Zhihu trả về. |
| <code>data.data[].author</code> | <code>object</code> | - |
| <code>data.data[].author.id</code> | <code>string</code> | Thông tin nhận dạng tác giả bài viết của Zhihu. |
| <code>data.data[].author.name</code> | <code>string</code> | Tên công khai của tác giả bài viết. |
| <code>data.data[].author.headline</code> | <code>string</code> | Tiêu đề thông tin cá nhân công khai của tác giả bài viết. |
| <code>data.data[].author.avatar_url</code> | <code>string</code> | URL hình ảnh cá nhân của tác giả bài viết. |
| <code>data.data[].author.url_token</code> | <code>string</code> | Định danh tài khoản công cộng được sử dụng trong URL cá nhân của tác giả. |
| <code>data.data[].author.url</code> | <code>string</code> | URL cá nhân được trả về cho tác giả. |
| <code>data.data[].author.user_type</code> | <code>string</code> | Loại người dùng được báo cáo cho tài khoản tác giả. |
| <code>data.data[].author.is_org</code> | <code>boolean</code> | Liệu tài khoản tác giả có được đánh dấu là tổ chức hay không. |
| <code>data.paging</code> | <code>object</code> | - |
| <code>data.paging.is_start</code> | <code>boolean</code> | Liệu trang được trả về có phải là trang đầu tiên hay không. |
| <code>data.paging.is_end</code> | <code>boolean</code> | Liệu Zhihu có đánh dấu đây là trang cuối cùng hay không. Nếu đúng, dừng lại. |
| <code>data.paging.next</code> | <code>string</code> | Liên kết được báo cáo cho trang tiếp theo. Nếu is_end là false, lấy offset từ liên kết này để yêu cầu tiếp theo. |
| <code>data.paging.previous</code> | <code>string</code> | Liên kết được báo cáo cho trang trước. |
| <code>data.paging.totals</code> | <code>integer</code> | Số lượng bài viết tổng cộng cho cột được báo cáo. |

</div>

## Ví dụ phản hồi

<ApiExampleSection :api='JSON.parse("\"/api/zhihu/get-column-article-list/v1\"")' />

