Skip to main content

Installation

Install the SDK using Go modules:
The SDK uses Go modules for dependency management, ensuring version compatibility and reproducible builds.

Initialization

Configure the SDK with your Read API token from the ButterCMS Settings.

Configuration options

API methods

All methods return Go structs with the response data and an error.

Pages

Retrieve and search pages created in the ButterCMS dashboard.

Collections

Fetch content from Collections (structured data tables).

Blog Posts

Access the built-in Blog Engine for posts, categories, tags, and authors.

Authors

Categories

Tags

Feeds

Retrieve RSS, Atom, and Sitemap feeds.

Query parameters reference

Complete example

Resources

GitHub Repository

View source code, report issues, and contribute

Go Packages

Package documentation and reference