Hive API Docs

Tags

Retrieve tags with the hive-cms SDK

Use tags to build filter chips, tag pages, and post discovery UI.

SDK usage

import { Hive } from 'hive-cms';

const hive = new Hive();
const tags = await hive.tags.list();

Example

for (const tag of tags) {
  console.log(tag.slug, tag.name);
}

Error handling

hive.tags.list() throws HiveApiError for invalid key, invalid response shape, or network/API failures.

Technical notes

  • Tag response shape is validated by the SDK before returning.
  • Use these values with hive.posts.list({ tags: [...] }).

Full API details

See API Reference: Tags.

On this page