Skip to main content

Installation

Install the SDK using pip:
Requirements: Python 3.8 through 3.12 officially supported. Other Python 3.x versions may work but aren’t guaranteed.

Initialization

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

API methods

All methods return Python dictionaries that can be accessed via standard dictionary syntax.

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

PyPI Package

Package details and version history