LurkAPI
Docs · Search eBay listings

Search eBay listings

Active eBay listings for a keyword, with price, bids, condition, shipping, seller and how many sold, filtered and sorted like ebay.com.

2 credits per callFresh within 15 minutesMCP tool: ebay_search
GEThttps://api.lurkapi.com/v1/ebay/search

Example response

When to use this

Use it for price research and sourcing: what's listed, at what price, in what condition, and which listings sell. Filters work like eBay's own: condition, buying_format, min_price and max_price, free_shipping and category_id.

The price filters use the item price, without shipping. category_id is the number in an eBay category URL, or the category_id from listing details (ebay_item).

Results match what ebay.com shows. Sponsored listings eBay places among the results are included; carousels and ads between them aren't. sold is how many units a listing has sold. It isn't a list of sold items, which eBay shows only to signed-in accounts.

Pagination. 60 listings per page. Pass next_page as page for more. It's null on the last page.

Example request

Copy one and replace YOUR_API_KEY with your API key (get one free). The code versions read the key from the LURKAPI_API_KEY environment variable instead.

Language

Parameters

Add them to the URL after a ?, as in ?query=nintendo+switch+oled. Join several with &.

ParameterDescription
query
stringrequired
Keywords, as typed into eBay's search box, e.g. iphone 15 pro.
Example
nintendo switch oled
condition
stringoptional
new, open_box, refurbished (any refurbished grade), used, for_parts, or any (default).
One of
anynewopen_boxrefurbishedusedfor_parts
Default
any
buying_format
stringoptional
buy_it_now, auction, best_offer (accepts offers), or any (default).
One of
anybuy_it_nowauctionbest_offer
Default
any
sort
stringoptional
best_match (eBay's default), ending_soonest, newly_listed, price_low or price_high (price plus shipping).
One of
best_matchending_soonestnewly_listedprice_lowprice_high
Default
best_match
min_price
numberoptional
Lowest item price in US dollars, e.g. 100.
max_price
numberoptional
Highest item price in US dollars, e.g. 500.
free_shipping
booleanoptional
true keeps listings with free shipping only.
One of
truefalse
Default
false
category_id
stringoptional
An eBay category number, e.g. 9355 (Cell Phones & Smartphones).
page
integeroptional
Page of results, 1–100; 60 listings each. Use next_page from the previous answer.
Default
1

Example response

A real response, captured from the live API. Lists are trimmed to a couple of items, and long text such as media links is cut short with ….

Show the example response (2 KB)
{
  "success": true,
  "credits_remaining": 999998,
  "credits_charged": 2,
  "total_results": 6600,
  "items": [
    {
      "id": "226794283368",
      "url": "https://www.ebay.com/itm/226794283368",
      "title": "Nintendo Switch OLED Model HEG-001 Handheld Console w/ Accessories - Excellent",
      "subtitle": "Nintendo Switch · Nintendo Switch (OLED Model)",
      "condition": "Pre-Owned",
      "image": "https://i.ebayimg.com/images/g/XXUAAeSwrqNpvBXC/s-l500.webp",
      "price": 244.99,
      "price_max": 249.99,
      "price_text": "$244.99 to $249.99",
      "original_price": 284.99,
      "format": "fixed_price",
      "bids": null,
      "time_left": null,
      "best_offer": false,
      "shipping_cost": 12.99,
      "shipping_text": "+$12.99 delivery",
      "location": "United States",
      "free_returns": false,
      "sold": 6,
      "watchers": null,
      "seller": {
        "username": "cocosprinkles",
        "feedback_percent": 99.8,
        "feedback_count": 42000
      },
      "badges": [
        "From $225.39 with coupon"
      ]
    },
    {
      "id": "336852421836",
      "url": "https://www.ebay.com/itm/336852421836",
      "title": "Nintendo Switch OLED Model Console with case, 128 GB SD card and deck.",
      "subtitle": "Nintendo Switch · Nintendo Switch (OLED Model)",
      "condition": "Pre-Owned",
      "image": "https://i.ebayimg.com/images/g/gSgAAeSw~oxq1i4A/s-l500.webp",
      "price": 175,
      "price_max": null,
      "price_text": "$175.00",
      "original_price": null,
      "format": "fixed_price",
      "bids": null,
      "time_left": null,
      "best_offer": true,
      "shipping_cost": 12.97,
      "shipping_text": "+$12.97 delivery",
      "location": "United States",
      "free_returns": false,
      "sold": null,
      "watchers": null,
      "seller": {
        "username": "hat-1634",
        "feedback_percent": null,
        "feedback_count": 0
      },
      "badges": [
        "New Listing"
      ]
    }
  ],
  "page": 1,
  "next_page": 2
}

Response fields

Every field in a successful response, and what it means. A name with [] belongs to each item of a list: items[].id is the id of every item in items. null means there's no value.

Show all 32 fields
FieldTypeDescription
successtrueAlways true here; errors have success: false.
credits_remainingnumberYour balance after this call. On anonymous playground calls: free tries left today.
credits_chargednumberCredits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1).
total_resultsnumbercan be nullMatching listings as eBay counts them, from "40,000+ results" (a rounded lower bound for big searches).
itemsobject[]One page of listings, in sort order.
items[].idstringItem id, e.g. 285090601008. Pass it to eBay listing details (ebay_item) for specifics, seller and shipping.
items[].urlstringThe listing on ebay.com.
items[].titlestringListing title.
items[].subtitlestringcan be nullThe lines under the title other than the condition: the seller's subtitle and key specifics, joined with · .
items[].conditionstringcan be nullCondition as the card shows it, e.g. "Brand New", "Pre-Owned", "Good - Refurbished".
items[].imagestringcan be nullThumbnail URL (i.ebayimg.com).
items[].pricenumbercan be nullPrice (the low end of a range, for listings with variations), in US dollars; null when the card doesn't show it.
items[].price_maxnumbercan be nullThe high end of a price range; null for a single price, in US dollars; null when the card doesn't show it.
items[].price_textstringcan be nullThe price as shown, e.g. "$189.99" or "$20.00 to $35.00".
items[].original_pricenumbercan be nullThe struck-through earlier price on discounted listings, in US dollars; null when the card doesn't show it.
items[].formatstringauction when the card shows bids, else fixed_price.
items[].bidsnumbercan be nullBids so far, on auctions; null otherwise.
items[].time_leftstringcan be nullTime left on auctions as shown, e.g. "6d 23h" or "46m"; null otherwise.
items[].best_offerbooleanThe seller accepts offers.
items[].shipping_costnumbercan be nullShipping to the US: 0 when free, in US dollars; null when the card doesn't show it.
items[].shipping_textstringcan be nullShipping as shown, e.g. "Free delivery in 2-4 days" or "+$8.99 delivery".
items[].locationstringcan be nullWhere the item ships from, e.g. "United States" or "China".
items[].free_returnsbooleanThe card says free returns.
items[].soldnumbercan be nullHow many the listing has sold, from "1,234 sold" (a lower bound for "99+ sold"); null when not shown.
items[].watchersnumbercan be nullWatchers, from "16+ watchers" (a lower bound); null when not shown.
items[].sellerobjectcan be nullThe seller, when the card shows one (eBay leaves it off some layouts).
items[].seller.usernamestringThe seller's eBay username.
items[].seller.feedback_percentnumbercan be nullPositive feedback, percent, e.g. 99.8; null for a seller without ratings.
items[].seller.feedback_countnumbercan be nullFeedback score as the card shows it; eBay rounds large ones (42K → 42000).
items[].badgesstring[]Other labels on the card, e.g. "New Listing", "Last one", "eBay Refurbished", "Authenticity Guarantee", coupons.
pagenumberThis page's number.
next_pagenumbercan be nullPass as page for the next 60 listings; null on the last page.

Cost and freshness

Each call costs 2 credits. Calls turned away before they reach the platform (invalid parameters, a key or balance problem, a rate limit) are free, and so are 5xx errors. A not_found is charged, since the platform was checked. How charging works.

Answers are cached for up to 15 minutes. A repeat call within that time can return the same data, and costs the same.

Errors

A failed call returns success: false, an error message, a code your program can check, and a docs link. These are the errors this endpoint can return. All error codes.

StatusCodeMeaning
401missing_api_keyNo API key was sent. Put it in the x-api-key header.
401invalid_api_keyThis key doesn't exist or was revoked.
402insufficient_creditsNot enough credits for this call. Buy a pack, or wait for tomorrow's free top-up.
402over_max_creditsThis call would cost more than the max_credits you set. The error says what it needs; raise max_credits to allow it. Not charged.
403account_suspendedThis account is suspended. Email support@lurkapi.com. Not charged.
405method_not_allowedEndpoints only take GET, with parameters in the URL.
429rate_limitedToo many calls in a short time. Wait as many seconds as the retry-after header says, then retry.
500internal_errorSomething broke on our side. Retry. Not charged.
502upstream_errorThe platform didn't send a usable answer. Retry. Not charged.
503upstream_busyAll our connections to the platform are busy. Retry in a few seconds. Not charged.
504upstream_timeoutThe platform took over 30 seconds to answer (90 for web pages). Retry. Not charged.

Use it in Claude

Connect LurkAPI to Claude and ask in plain English. This endpoint is the ebay_search tool. For example:

Ask Claude
Use LurkAPI's ebay_search tool with query "nintendo switch oled", then summarize what you find.

Claude calls ebay_search with arguments like these, and each call costs 2 credits:

Tool arguments
{"query": "nintendo switch oled"}

To save tokens, tool results leave out empty fields, keep one URL per image or video, and give transcripts as plain text unless you pass timestamps=true. A result over 45,000 characters comes in parts. Its _note gives the offset for the next part, and later parts are free for 15 minutes. Pass trim=false for the full response.

From the blog

All posts