Zalo OA icon

Zalo OA

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

Zalo OA → Lấy Danh Sách Tag

AI-generated

Summary

Retrieve a list of tags from the Zalo Official Account with pagination support by specifying the starting offset and the number of tags to fetch.

Inputs

  • offset — Starting position index to begin fetching tags (default is 0).
  • count — Number of tags to retrieve in the response (default is 10).

Output shape

a single JSON object containing an array of tag objects under 'data.tags', each with 'tag_id', 'tag_name', and 'display_info' fields, plus a 'usage_guide' field explaining how to use the tag identifiers.

The operation queries the Zalo OA API endpoint to fetch tags and maps fields to normalized identifiers. It includes a usage guide in the output. If the main API call fails, it retries with a fallback API version. Errors are included as JSON responses with error details and suggestions. Pagination is supported via 'offset' and 'count' parameters.

Examples

Example 1: Get first 10 tags

Set offset to 0 and count to 10 (defaults).

Example 2: Get 20 tags starting from the 5th tag

Set offset to 5 and count to 20.

Discussion