eBay Search
POST /api/v1/ebay/search
Scrape eBay search results including listings, prices, sellers, filters, categories, and pagination.
Overview
Scrape eBay search results including listings, prices, sellers, filters, categories, and pagination.
POST /api/v1/ebay/search
Method: POST Path: /api/v1/ebay/search Category: E-Commerce
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| location | string | Optional | Two-letter country code to localise results (e.g. US). |
| query | string | Required | Search query or full eBay search URL (e.g. 'macbook pro' or 'https://www.ebay.com/sch/i.html?_nkw=macbook+pro'). |
Request Example
eBay Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/ebay/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"location": "US", "query": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "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" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| search_metadata | object | Yes | Metadata regarding the search request and endpoint execution. |
| search_metadata.status | string | Yes | Status of the scrape execution (e.g., 'Success' or 'Failed'). |
| search_metadata.ebay_url | string | Yes | The normalized eBay search URL that was scraped. |
| search_information | object | Yes | Aggregate search statistics and query display information. |
| search_information.total_results | integer | null | Yes | Parsed total number of search results matching the query. |
| search_information.total_results_text | string | null | Yes | Raw string representing total results count (e.g., '35,000+ results for macbook pro'). |
| search_information.query_displayed | string | null | Yes | Displayed search query if altered or autocorrected by eBay. |
| search_results | array<object> | Yes | List of product listings found on the search result page. |
| search_results[].position | integer | Yes | 1-indexed ranking position of the item in the search results. |
| search_results[].itemId | string | Yes | Unique eBay listing identification number. |
| search_results[].title | string | Yes | Full title of the product listing. |
| search_results[].subtitle | string | Yes | Secondary subtitle or specification summary (e.g., storage, color, warranty). |
| search_results[].is_new_listing | boolean | Yes | Indicates whether the listing is marked as newly listed. |
| search_results[].seller | object | Yes | Seller profile and feedback details. |
| search_results[].seller.name | string | Yes | Username / store name of the seller. |
| search_results[].seller.feedback | string | Yes | Raw feedback score string (e.g., '11K' or '427.1K'). |
| search_results[].seller.extracted_feedback | integer | null | Yes | Numeric feedback score parsed from the feedback string. |
| search_results[].seller.positive_feedback_percent | string | Yes | Percentage of positive feedback ratings (e.g., '99.2'). |
| search_results[].condition | string | Yes | Item condition (e.g., 'Pre-Owned', 'Good - Refurbished', 'Open Box', 'Brand New'). |
| search_results[].is_sponsored | boolean | Yes | True if the listing is an advertised/promoted placement. |
| search_results[].rating | string | Yes | Star rating out of 5 (e.g., '4.5', '5.0', or empty string if unrated). |
| search_results[].reviews | string | Yes | Review count or rating reviews string. |
| search_results[].reviews_link | string | Yes | Link to the customer reviews page. |
| search_results[].buying_format | string | Yes | Listing buying format (e.g., 'Buy It Now', 'or Best Offer', 'auction'). |
| search_results[].is_best_offer | boolean | Yes | True if seller accepts best offers. |
| search_results[].price | string | Yes | Listing price string as displayed (e.g., '$539.00' or '$169.00 to $209.00'). |
| search_results[].extracted_price | number | null | Yes | Parsed lower-bound or fixed price as a float/integer. |
| search_results[].extracted_price_max | number | null | Yes | Parsed upper-bound price if a range was displayed, otherwise null. |
| search_results[].original_price | string | Yes | Strikethrough / original listing price string (e.g., '$1,078.00'). |
| search_results[].extracted_original_price | number | null | Yes | Parsed numeric value of original/strikethrough price. |
| search_results[].discount | string | Yes | Discount percentage or text if displayed. |
| search_results[].link | string | Yes | Full direct URL to the eBay listing. |
| search_results[].items_sold | string | Yes | Sales volume string (e.g., '412 sold'). |
| search_results[].extracted_items_sold | integer | null | Yes | Parsed integer count of items sold. |
| search_results[].watchers | string | Yes | Watcher text (e.g., '8+ watchers', '14 watchers'). |
| search_results[].extracted_watchers | integer | null | Yes | Parsed integer count of watchers. |
| search_results[].bids | object | null | Yes | Auction bidding details if listing is an auction. |
| search_results[].bids.count | integer | No | Number of bids placed. |
| search_results[].bids.time_left | string | No | Time remaining in auction. |
| search_results[].promotion | string | Yes | Promotional coupon or multi-buy offer (e.g., '$321.99 with coupon'). |
| search_results[].stock_status | string | Yes | Stock urgency indicator (e.g., 'Last one', 'Almost gone'). |
| search_results[].location | string | Yes | Item geographical origin (e.g., 'Located in United States'). |
| search_results[].epid | string | null | Yes | eBay Product ID (ePID) reference. |
| search_results[].extensions | array<string> | Yes | Badges and seller accreditation highlights. |
| search_results[].shipping | string | Yes | Shipping cost and estimated timeframe (e.g., 'Free delivery in 1-2 days'). |
| search_results[].extracted_shipping | number | null | Yes | Parsed shipping fee (0 for free shipping, or numeric dollar amount). |
| search_results[].delivery_days | string | Yes | Estimated delivery range in days (e.g., '1-2', '2-4'). |
| search_results[].is_free_return | boolean | Yes | True if listing offers free returns. |
| search_results[].sold_date | string | null | Yes | Date when item was sold if scraping completed/sold listings. |
| search_results[].thumbnail | string | Yes | Direct image URL for the product thumbnail. |
| search_results[].shipping_to | string | Yes | Target destination region for shipping. |
| search_results[].product_api_link | string | Yes | DataGuru internal API link to retrieve full product details for this item. |
| popular_filters | array<object> | Yes | Popular facet filters and aspect options extracted from the search page. |
| popular_filters[].name | string | Yes | Display label of the filter (e.g., '32 GB', 'Apple M1 Pro'). |
| popular_filters[].parameter | string | null | Yes | Query parameter representing the filter (e.g., 'RAM%20Size=32%20GB'). |
| popular_filters[].link | string | Yes | URL to apply this filter. |
| categories | array<object> | Yes | Related eBay categories associated with the query. |
| categories[].name | string | Yes | Category name (e.g., 'Computers/Tablets & Networking'). |
| categories[].id | integer | Yes | Numeric category ID (e.g., 58058). |
| categories[].link | string | Yes | URL to browse within this category. |
| related_searches | array<object> | Yes | Keyword search suggestions related to the current query. |
| related_searches[].query | string | Yes | Suggested search query (e.g., 'macbook air', 'macbook pro m1'). |
| related_searches[].link | string | Yes | URL to execute the related search. |
| inline_results | array<object> | Yes | Special horizontal carousels embedded within the search page. |
| inline_results[].title | string | Yes | Carousel section title (e.g., 'Trending auctions', 'Quality pre-owned picks'). |
| inline_results[].items | array<object> | Yes | List of products inside the inline carousel. |
| inline_results[].items[].title | string | Yes | Item title. |
| inline_results[].items[].price | string | Yes | Item display price. |
| inline_results[].items[].extracted_price | number | null | Yes | Parsed numeric price. |
| inline_results[].items[].link | string | Yes | Item detail link. |
| pagination | object | Yes | Pagination navigation metadata and links to adjacent pages. |
| pagination.current | integer | Yes | Current active page number (e.g., 1). |
| pagination.next | string | null | Yes | URL to the next page of search results. |
| pagination.other_pages | object | Yes | Key-value map of page numbers to their respective URLs. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/ebay/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
query,location example,US
Pricing & Rate Limits
Endpoint Pricing
$0.0013 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |