The Webflow Python Library provides convenient access to the Webflow Data API from applications written in Python. It includes type definitions for all request and response fields, and offers both synchronous and asynchronous clients powered by `httpx`. The library is actively maintained, with regular updates through Fern regeneration, and is currently at version 2.0.0.
pip install webflowVerified import paths — ran on the pinned version, not inferred.
Initializes the synchronous Webflow client using an API access token and demonstrates fetching a list of sites. For asynchronous operations, use `AsyncWebflow` and `await` calls.
Consult the official Webflow API documentation and SDK changelog to adapt your code to new method signatures or data structures. Re-generate types if you are relying on code generation.
Update your code to expect an object (e.g., `client.assets.list().items` if the object contains a list under an 'items' key) instead of directly iterating over the return value of `assets.list()`.
Keep `webflow` library updated to the latest stable version to benefit from security patches, or ensure `httpx` and `httpcore` dependencies are updated to secure versions manually if managing them directly.
Thoroughly review the OAuth documentation in the Webflow Developer Docs and ensure all parameters (e.g., `client_id`, `client_secret`, `redirect_uri`, `scope`) are correctly configured in both your Webflow App settings and your Python application. Pay attention to authorization URL generation and access token retrieval steps.
Run `pip install webflow` to install the library.
Verify that your `WEBFLOW_ACCESS_TOKEN` environment variable or hardcoded token is correct and active. Check the permissions associated with your API token in the Webflow dashboard. Some endpoints require Workspace Tokens, while others require Site Tokens.
Consult the latest Webflow Python SDK documentation or API reference to ensure you are using the correct method names and object structures, especially after upgrading the library. Refer to the `webflow-python` GitHub README for current usage patterns.