This release is a pre-release and may not be stable for production use.
Unofficial Python client for the Etsy Open API v3. Not affiliated with Etsy.
pip install etsy-seller Copy PIP instructions
The term 'Etsy' is a trademark of Etsy, Inc. This Application uses Etsy's API, but is not endorsed or certified by Etsy.
Alpha. It is tested only against a mock built from the public spec, never against the live API. If you use it for real, please report what you find, working or not, as a GitHub issue. Those reports are what move it past 0.x.
The package is not on PyPI yet. From a clone of this repository:
pip install ./apis/etsy/packages/python Requires Python 3.10 or later.
from etsy_seller import EtsyClient, NotFoundError with EtsyClient("your-keystring", "your-shared-secret") as client: for listing in client.listings.iter_active(keywords="ceramic mug", limit=100): print(listing.listing_id, listing.title) try: client.shops.get(1) except NotFoundError as error: print(error.status, error.message) Calls that read or change a shop's private data need an OAuth access token as well as your key:
from etsy_seller import AsyncEtsyClient async with AsyncEtsyClient("your-keystring", "your-shared-secret") as client: async for listing in client.listings.iter_active(keywords="ceramic mug"): print(listing.listing_id) Your credentials are read from nowhere and stored nowhere: you pass them in, and the client sends them only to the server you selected.
Etsy uses the OAuth 2 authorization code flow with PKCE. The client builds the authorization URL with a fresh state and code verifier, then trades the code Etsy sends back for a token:
import secrets from etsy_seller import EtsyClient with EtsyClient("your-keystring", "your-shared-secret", on_token=print) as client: request = client.oauth.authorization_url("https://example.com/callback", ["listings_r", "shops_r"]) # Send the user to request.url, and keep request.state and request.code_verifier until they return. returned_state, code = request.state, "code-from-the-redirect" # read both from the redirect's query if not secrets.compare_digest(returned_state, request.state): raise RuntimeError("state mismatch") token = client.oauth.exchange_code( code, code_verifier=request.code_verifier, redirect_uri="https://example.com/callback" ) print(token.user_id) The redirect URI must be one registered for your app. After exchange_code the client uses the new token, and client.oauth.refresh() replaces it on demand. authorization_url and Token are also importable on their own.
EtsyClient and AsyncEtsyClient take the same arguments. api_key and shared_secret are positional and the rest are keywords.
See the architecture document for the runtime contract, testing limits and the decisions behind them.
Apache-2.0: see LICENSE and NOTICE. The licence covers only this project's own code, and grants no right to the Etsy name.
Both files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




