Skip to main content

Installation

Install the SDK using pip:
Requirements: The SDK has no enforced Python version constraint and is plain requests-based code with no version-specific syntax, so it should work on any current Python 3 release.

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