pyeBay is a Python library that encapsulates the eBay API. It's intended to make it very simple to create eBay applications on any platform. It is provided under an open-source license.

News

18. Nov 2004: Version 0.1.4 adds support for retrieving REST API tokens when you have a conventional token. Retrieving a REST token in this way has the benefit of not invalidating your existing token.

31. Aug 2004: Released version 0.1.3, adding basic support for GetSellerList, GetFinanceOffers, and ValidateTestUserRegistration calls.

23. Aug 2004: Version 0.1.2, adds limited support for AddItem (listing items for sale on eBay) as well as downloading eBay's XML product category taxonomy (GetCategories).

Code Examples

Return the list of items I've listed for sale:

from eBay import SellerList
theList = SellerList()
theList.Get('jmcmanus')
print theList.Xml.toprettyxml()

Retrieve and save the eBay product category structure:

from eBay import Categories
cats = Categories()
cats.Get()
cats.Save('categories.xml')

Search eBay for products matching a keyword:

from eBay import Search
theSearch = Search()
print theSearch.Get('shoes')

Download

Download the latest version of pyeBay here.

Contact

For information on this library or to contribute, contact jmcmanus (at) ebay dot com.