Scrape eBay with a JSON API. This repo has working Python examples for DataGuru's eBay scraper APIs: eBay Search and eBay Product Details.
DataGuru runs the scraping, proxies, retries and parsing, and returns clean JSON. You pay only for successful requests, from $0.0013 per request, out of a prepaid balance: no subscription. New accounts get $1.00 of free credit.
| API | What it returns | Price | Page |
|---|---|---|---|
| eBay Search | Scrape eBay search results including listings, prices, sellers, filters, categories, and pagination. | $0.0013 | https://dataguru.cc/apis/ebay-search/ |
| eBay Product Details | Scrape eBay product details, price, condition, seller feedback, specifications, shipping, and return policies. | $0.0013 | https://dataguru.cc/apis/ebay-product-details/ |
- Create a free account and an API key at dashboard.dataguru.cc.
- Install and run:
git clone https://github.com/dataguru-cc/ebay-scraper-api.git
cd ebay-scraper-api
pip install -r requirements.txt
export DATAGURU_API_KEY="your key"
python examples/sdk_example.py ebay-searchEvery example covers all 2 eBay APIs. Pass an API name to run just one; with no name each script runs them all, and each call is billed at the price above.
| File | Style | Run |
|---|---|---|
examples/sdk_example.py |
DataGuru Python SDK (pip install dataguru-sdk), one function per API, saves JSON to output/ |
python examples/sdk_example.py |
examples/requests_example.py |
Plain requests, synchronous |
python examples/requests_example.py |
examples/async_example.py |
asyncio + httpx, concurrent with a limit |
python examples/async_example.py |
examples/scrapy_spider.py |
Scrapy spider, items to JSON/CSV | scrapy runspider examples/scrapy_spider.py -O ebay.json |
All requests use the header Authorization: Api-Key YOUR_API_KEY. Errors return {"success": false, "error": {"code", "message", "request_id"}}, with HTTP 402 when the balance runs out and 429 (with Retry-After) when rate limited. Failed requests are not charged.
Scrape eBay search results including listings, prices, sellers, filters, categories, and pagination.
- Endpoint:
POST https://api.dataguru.cc/api/v1/ebay/search - Price: $0.0013 per successful request ($1.30 per 1,000)
- Rate limit: 60 requests/minute
- Page and live playground: https://dataguru.cc/apis/ebay-search/
- Documentation: https://dataguru.cc/documentation/ebay-search/
| Parameter | Type | Required | Description |
|---|---|---|---|
location |
string | no | Two-letter country code to localise results (e.g. US). Default: US. |
query |
string | yes | Search query or full eBay search URL (e.g. 'macbook pro' or 'https://www.ebay.com/sch/i.html?_nkw=macbook+pro'). |
Response fields: search_metadata, search_information, search_results, popular_filters, categories, related_searches, inline_results, pagination, plus _metadata
curl -X POST "https://api.dataguru.cc/api/v1/ebay/search" \
-H "Authorization: Api-Key $DATAGURU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "macbook pro"}'Response schema
Values are type placeholders from the API's published schema, not real data.
{
"search_metadata": {
"status": "Success",
"ebay_url": "https://example.com/..."
},
"search_information": {
"total_results": 0,
"total_results_text": "string",
"query_displayed": "string"
},
"search_results": [
{
"position": 0,
"itemId": "1234567890",
"title": "string",
"subtitle": "string",
"is_new_listing": false,
"seller": {
"name": "string",
"feedback": "string",
"extracted_feedback": 0,
"positive_feedback_percent": "string"
},
"condition": "string",
"is_sponsored": false,
"rating": "string",
"reviews": "string",
"reviews_link": "https://example.com/...",
"buying_format": "string",
"is_best_offer": false,
"price": "string",
"extracted_price": 0.0,
"extracted_price_max": 0.0,
"original_price": "string",
"extracted_original_price": 0.0,
"discount": "string",
"link": "https://example.com/...",
"items_sold": "string",
"extracted_items_sold": 0,
"watchers": "string",
"extracted_watchers": 0,
"bids": {
"count": 0,
"time_left": "string"
},
"promotion": "string",
"stock_status": "string",
"location": "string",
"epid": "1234567890",
"extensions": [
"string"
],
"shipping": "string",
"extracted_shipping": 0.0,
"delivery_days": "string",
"is_free_return": false,
"sold_date": "2026-01-01T12:00:00Z",
"thumbnail": "https://example.com/...",
"shipping_to": "string",
"product_api_link": "https://example.com/..."
}
],
"popular_filters": [
{
"name": "string",
"parameter": "string",
"link": "https://example.com/..."
}
],
"categories": [
{
"name": "string",
"id": 0,
"link": "https://example.com/..."
}
],
"related_searches": [
{
"query": "string",
"link": "https://example.com/..."
}
],
"inline_results": [
{
"title": "string",
"items": [
{
"title": "string",
"price": "string",
"extracted_price": 0.0,
"link": "https://example.com/..."
}
]
}
],
"pagination": {
"current": 0,
"next": "https://example.com/...",
"other_pages": {}
},
"_metadata": {
"request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
"execution_time_ms": 842,
"endpoint": "eBay Search",
"mode": "live",
"format": "json",
"timestamp": "2026-01-01T12:00:00+00:00"
}
}Scrape eBay product details, price, condition, seller feedback, specifications, shipping, and return policies.
- Endpoint:
POST https://api.dataguru.cc/api/v1/ebay/products/details - Price: $0.0013 per successful request ($1.30 per 1,000)
- Rate limit: 60 requests/minute
- Page and live playground: https://dataguru.cc/apis/ebay-product-details/
- Documentation: https://dataguru.cc/documentation/ebay-product-details/
The examples find the product_url with eBay Search first, then pass it to this API. Both calls are billed.
| Parameter | Type | Required | Description |
|---|---|---|---|
location |
string | no | Two-letter country code to localise results (e.g. US). Default: US. |
product_url |
string | yes | Full eBay Product URL or Item ID (e.g. 168130314813 or https://www.ebay.com/itm/168130314813). |
Response fields: title, itemId, product_category, seller, likes, price, extracted_price, listing_lifecycle, condition, condition_snippet, is_buy_it_now, buy_it_now_link, availability, main_image, images, shipping_details, return_details, payment_methods, extensions, specifications, upc, item_description_from_seller, product, about_seller, sections, sold_out, plus _metadata
curl -X POST "https://api.dataguru.cc/api/v1/ebay/products/details" \
-H "Authorization: Api-Key $DATAGURU_API_KEY" \
-H "Content-Type: application/json" \
-d '{"product_url": "URL_FROM_SEARCH"}'Response schema
Values are type placeholders from the API's published schema, not real data.
{
"product_results": {
"title": "string",
"itemId": "1234567890",
"product_category": [
{
"name": "string",
"link": "https://example.com/..."
}
],
"seller": {
"name": "string",
"reviews": "string",
"positive_feedback_percent": "string",
"thumbnail": "https://example.com/..."
},
"likes": 0,
"price": "string",
"extracted_price": 0.0,
"listing_lifecycle": "string",
"condition": "string",
"condition_snippet": "string",
"is_buy_it_now": false,
"buy_it_now_link": "https://example.com/...",
"availability": "string",
"main_image": "https://example.com/...",
"images": [
"https://example.com/..."
],
"shipping_details": [
{
"shipping_service": "string",
"shipping_cost": "string",
"estimated_delivery": "string"
}
],
"return_details": {
"returns_accepted": false,
"return_period": "string",
"return_shipping_paid_by": "string"
},
"payment_methods": [
"string"
],
"extensions": [
"string"
],
"specifications": [
{
"name": "string",
"value": "string"
}
],
"upc": "string",
"item_description_from_seller": "string",
"product": {
"product_id": "1234567890",
"rating": 0.0,
"feature_rating": {},
"reviews": 0,
"reviews_histogram": {}
},
"about_seller": {
"name": "string",
"bio": "string",
"positive_feedback_percent": 0.0,
"items_sold": 0,
"joined": "string",
"link": "https://example.com/...",
"contact": "string",
"feature_rating": {},
"popular_categories": [
{
"name": "string",
"link": "https://example.com/..."
}
],
"reviews": {
"all_products": {
"total": 0,
"reviews": [
"string"
]
}
}
},
"sections": [
"string"
],
"sold_out": false
},
"_metadata": {
"request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e",
"execution_time_ms": 842,
"endpoint": "eBay Product Details",
"mode": "live",
"format": "json",
"timestamp": "2026-01-01T12:00:00+00:00"
}
}- Python SDK and examples for all DataGuru APIs: github.com/dataguru-cc/dataguru-python (docs)
- Every API, with a live playground: https://dataguru.cc/apis/
- Use DataGuru from Claude, ChatGPT or Cursor through the MCP server: https://dataguru.cc/mcp/
- Run thousands of inputs from a CSV at half price with batch jobs: https://dataguru.cc/documentation/
- Other scraper APIs: 1688, Airbnb, Alibaba, AliExpress, Amazon, arXiv, ASOS, Best Buy, Booking.com, Brave Search, CA State Bar, Capterra, CoinGecko, CoinMarketCap, Companies House, Costco, CourtListener, Crunchbase, Discord, DoorDash, Etsy, Expedia, Fiverr, Flipkart, Glassdoor, Google Flights, Google Patents, Google Scholar, Google Search, Grubhub, Home Depot, Instagram, Investing.com, Justia, Kayak, Kick, Lazada, MarketWatch, Mercado Libre, Monster, OpenCorporates, OpenTable, PACER, PitchBook, PubMed, Reddit, Redfin, Resy, Rightmove, SEC EDGAR, Seeking Alpha, Shopee, Skyscanner, Target, TikTok, TradingView, TripAdvisor, Trulia, TrustRadius, Twitch, Uber Eats, Upwork, Vrbo, Walmart, Wayfair, X (Twitter), Yahoo Finance, YouTube, Zillow, ZoomInfo, Zoopla
The example code is MIT licensed. Use of the DataGuru API is subject to the terms of service.