Zalo OA icon

Zalo OA

Tương tác với Zalo Official Account API

Zalo OA → Lấy Danh Sách Bài Viết

AI-generated

Summary

Retrieve a list of articles from a Zalo Official Account with pagination and filter by article type.

Inputs

  • offset — The starting position (offset) from which to retrieve articles, default is 0.
  • limit — The number of articles to retrieve, default is 10, maximum 50.
  • type — The type of articles to retrieve: 'normal' for standard articles or 'video' for video articles, default is 'normal'.

Output shape

a JSON object containing an article list with metadata about articles under a 'data' property, paired with the input item index for traceability.

The API call returns articles in a paginated form based on 'offset' and 'limit'. The maximum 'limit' enforced is 50. The returned data includes article details and a usage guide indicating to use article 'id' as a token for further article detail retrieval.

Examples

Example 1: Get first 10 normal articles starting from position 0.

offset=0, limit=10, type='normal'

Discussion