
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
A Python 3 pip package that wraps eBay’s REST APIs.
The basic installation provides core functionality without browser automation. It is lighter, easier to install, and sufficient for most use cases.
pip install ebay_rest
If Python 2 is installed, use pip3
instead.
The complete installation includes browser automation for getting eBay user tokens.
pip install ebay_rest[complete]
After installing the package, install Playwright and Chromium:
playwright install chromium
Note: Playwright may require additional system dependencies. See Playwright installation guide for details.
Follow the setup instructions in the example configuration file.
Here is a basic example of using ebay_rest
to retrieve eBay's global site IDs and search for iPhones:
from ebay_rest import API, DateTime, Error, Reference
print(f"eBay's official date and time is {DateTime.to_string(DateTime.now())}.\n")
print("All valid eBay global id values, also known as site ids.")
print(Reference.get_global_id_values(), '\n')
try:
api = API(application='production_1', user='production_1', header='US')
except Error as error:
print(f'Error {error.number} is {error.reason} {error.detail}.\n')
else:
try:
print("The five least expensive iPhone things now for sale on-eBay:")
for record in api.buy_browse_search(q='iPhone', sort='price', limit=5):
if 'record' not in record:
pass # TODO Refer to non-records, they contain optimization information.
else:
item = record['record']
print(f"item id: {item['item_id']} {item['item_web_url']}")
except Error as error:
print(f'Error {error.number} is {error.reason} {error.detail}.\n')
else:
pass
print("\nClass documentation:")
print(help(API)) # Over a hundred methods are available!
print(help(DateTime))
print(help(Error))
print(help(Reference))
dict
(objects): Groups related elements.list
(arrays): Repetitive structures with one or more elements.None
if empty.Yes, reuse the refresh token after the first retrieval. Modify your ebay_rest.json
file:
"refresh_token": "your_refresh_token", "refresh_token_expiry": "your_token_expiry"
Threading is safe. Multiprocessing is untested (help wanted).
Making repeated calls with the same parameters in a short time can trigger this error.
To optimize API calls:
Contributions are welcome! Please fork this repository and submit a pull request. Follow the coding standards outlined in CONTRIBUTING.md
.
FAQs
Wraps the eBay REST APIs.
We found that ebay-rest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.