--- id: shopifyapi version: "12.7.0" license: MIT License license_treatment: permissive maintenance: active --- # ShopifyAPI — Shopify API for Python License: permissive · Maintenance: active · Downloads: 752.9K/mo ## What it is and what it does ShopifyAPI is the official Python client for Shopify's Admin API, enabling developers to programmatically interact with Shopify shops. It provides object-oriented wrappers around Shopify's REST and GraphQL endpoints, allowing you to create, read, update, and delete resources like products, orders, customers, and fulfillments. The library handles OAuth authentication for public and custom apps, as well as direct access for private apps, and includes session management to scope API calls to specific shops. The package relies on pyactiveresource, PyJWT, PyYAML, and six as runtime dependencies. However, Shopify has deprecated the REST API as of October 1, 2024, with public apps required to migrate to GraphQL by February 2025 and custom apps by April 2025. New projects should plan for GraphQL-first development. Use it for: - Build Shopify apps that sync product catalogs, inventory, or order data to external systems. - Automate billing and subscription management by creating and activating application charges. - Implement custom fulfillment workflows that retrieve orders and create fulfillments. - Develop private apps for Shopify merchants that need direct API access without OAuth. - Migrate existing REST-based integrations to GraphQL before the February–April 2025 deadline. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Python client library for the Shopify Admin API, supporting both REST and GraphQL endpoints for managing shop data, products, orders, and other Shopify resources. Yes, with conditions. ShopifyAPI is actively maintained and production-stable for existing REST integrations, but new projects should commit to GraphQL from the start given the REST API deprecation timeline (February 2025 for public apps, April 2025 for custom apps). The high install friction is manageable for Shopify-focused work. ## Install pip install shopifyapi uv add shopifyapi poetry add shopifyapi ## Installing ShopifyAPI Before you install: High install friction due to four runtime dependencies. Maintenance is active with recent commits and 1433 repository stars, though REST API examples are deprecated as of October 1, 2024 and will be removed by early 2025, requiring migration to GraphQL. License in practice: MIT License (permissive) allows commercial and private use with minimal restrictions, suitable for both open-source and proprietary applications. Quickstart: pip install ShopifyAPI from shopify import Session, ShopifyResource, Shop Session.setup(api_key='YOUR_KEY', secret='YOUR_SECRET') session = Session('shop.myshopify.com', '2024-07', access_token='TOKEN') ShopifyResource.activate_session(session) shop = Shop.current() Requires Shopify Partner account to create applications and obtain API credentials; REST API is legacy and will be removed by early 2025, requiring GraphQL migration. Verify before relying: - Whether pyactiveresource, PyJWT, PyYAML, and six have known vulnerabilities or maintenance issues. - Current state of REST API removal and whether existing code will break before the stated deadline. - Whether the experimental shopifyapp package is recommended as a replacement for new projects. ## Package facts - License: MIT License (permissive) - Python support: unspecified - Install friction: high - Maintenance: active - Downloads: 752.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags shopify admin api client, shopify python library, shopify rest graphql, shopify app development, shopify api integration, shopify resource management, shopify oauth authentication, shopify-integration, rest-graphql, oauth-auth [View on SkillFed](https://skillfed.io/packages/shopifyapi) · [View on PyPI](https://pypi.org/project/shopifyapi/)