klaviyo-api
Klaviyo Python SDK
Decision gist · record as of 2026-08-14
Yes. The SDK is actively maintained, has no known vulnerabilities, and low install friction. It is the canonical way to integrate Klaviyo's API into Python applications. Use it if you are building Klaviyo integrations, automating marketing workflows, or syncing customer data. The permissive MIT license poses no compliance risk.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a valid Klaviyo API key; SDK retries on rate limits and server errors with configurable max_delay and max_retries.
- Low friction installation with stable maintenance.
- Released 30 days ago with active repository status and no known vulnerabilities.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.
last release 2026-07-15 (30 days) · last repo commit 2026-07-15 · 48 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 284,536 downloads/mo, #8,062 on PyPI
Alternatives
Verify before relying
pip install klaviyo-api
from klaviyo_api import KlaviyoAPI
klaviyo = KlaviyoAPI("YOUR_API_KEY_HERE", max_delay=60, max_retries=3)
klaviyo.Metrics.get_metrics()- Whether the SDK's automatic revision header injection matches all current Klaviyo API versions
- Performance characteristics under high-volume event tracking or large profile queries
- Completeness of typed response support across all resource endpoints
What it is and what it does
This is the official Python SDK for Klaviyo's marketing API, providing a thin wrapper around Klaviyo's REST endpoints. It mirrors the API's resource organization (Accounts, Campaigns, Catalogs, Events, Flows, Profiles, Segments, Tags, Templates, and others) and handles common concerns like automatic retries on rate limits and server errors, pagination via cursor-based navigation, and filtering/sorting via JSON API conventions.
The SDK is designed for developers integrating Klaviyo into Python applications—sending events, managing customer profiles, querying metrics, creating campaigns, and accessing related resources. It supports advanced features like datetime filtering, sparse fieldsets, relationship endpoints, and image uploads. Error handling is explicit via ApiException, which exposes status, reason, body, and headers for debugging.
Use it for
- Track customer events (purchases, page views, form submissions) to Klaviyo for segmentation and campaign targeting.
- Query and update customer profiles in bulk, including predictive analytics fields and list memberships.
- Retrieve campaign performance metrics and reporting data for analytics dashboards.
- Build segments based on filtered profile data and datetime ranges, then manage associated tags and campaigns.
- Upload images and manage marketing assets programmatically within Klaviyo.
- Automate flow and template management, including creating and publishing campaigns at scale.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The SDK is actively maintained, has no known vulnerabilities, and low install friction. It is the canonical way to integrate Klaviyo's API into Python applications. Use it if you are building Klaviyo integrations, automating marketing workflows, or syncing customer data. The permissive MIT license poses no compliance risk.
Install
klaviyo-api on PyPI
Before you install
Low friction installation with stable maintenance. Released 30 days ago with active repository status and no known vulnerabilities. Depends on common, well-maintained packages: python_dateutil, urllib3, pydantic, and aenum.
Requires a valid Klaviyo API key; SDK retries on rate limits and server errors with configurable max_delay and max_retries.
License in practice
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.
Quickstart
pip install klaviyo-api
from klaviyo_api import KlaviyoAPI
klaviyo = KlaviyoAPI("YOUR_API_KEY_HERE", max_delay=60, max_retries=3)
klaviyo.Metrics.get_metrics()
Verify before relying
- Whether the SDK's automatic revision header injection matches all current Klaviyo API versions
- Performance characteristics under high-volume event tracking or large profile queries
- Completeness of typed response support across all resource endpoints
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagespython_dateutilsetuptoolsurllib3pydanticaenum |
| Maintenance | Actively maintained 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 284,536 / month, #8,062 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: klaviyo_api-24.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “profile and segment management”
- klaviyo-apiPython client library for the Klaviyo marketing API, providing access…
- analytics-pythonA Python client library that sends analytics events to the Segment…
- segmentsSegments provides Unicode-aware tokenization and orthography-based…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also klaviyo · facebook-business · pinterest-api-sdk · mailchimp3 · sib-api-v3-sdk · advertools · Pinterest-Generated-Client · sailthru-client · linkedin-api · cybrid-api-organization-python