Ebay Search Engine Results API

/search?engine=ebay API endpoint allows you to scrape the results from the Ebay search engine via our SerpApi service. Head to the playground for a live and interactive demo.

API Parameters

Search Query

_nkw

Required

Parameter defines the search query. You can use anything that you would use in a regular Ebay search.

_nkw parameter is optional when category_id parameter is specified.

Localization

ebay_domain

Optional

Parameter defines the Ebay domain to use. It defaults to ebay.com. Head to the Ebay domains for a full list of supported Ebay domains.

Pagination

_pgn

Optional

Parameter defines the page number. It's used for pagination. (e.g., 1 (default) is the first page of results, 2 is the 2nd page of results, 3 is the 3rd page of results, etc.).

_ipg

Optional

Parameter defines the maximum number of results to return. There are total of four options: 25, 50 (default), 100 and 200 results.

Advanced Filters

_blrs

Optional

Parameter defines the exclusion of results from an auto-corrected query when the original query is spelled wrong. The recommended value for this parameter is spell_auto_correct. Omit _blrs if you want the search to include results for an auto-corrected query. Note that this parameter may not prevent eBay from returning results for an auto-corrected query if no other results are available.

show_only

Optional

Parameter defines the list of filters you can apply to the results.
Available options (case-sensitive):

Complete - Completed items
Sold - Sold items
FR - Free returns
RPA - Returns accepted
AS - Authorized seller
Savings - Deals and savings
SaleItems - Sale items
Lots - Listed as lots
Charity - Benefits charity
AV - Authenticity Guarantee
FS - Free shipping
LPickup - Local pickup

You can also combine multiple filter values by joining them with a comma (value + , + value; eg: Sold,FS).

Advanced Ebay Parameters

_udlo

Optional

Parameter defines the lowest price of items that should be included in the results (e.g. 10 will only return items that have higher price then 10).

_udhi

Optional

Parameter defines the highest price of items that should be included in the results (e.g. 20 will only return items that have lower price then 20).

_sop

Optional

Parameter defines results sorted by different options in the Ebay. The default option is 'Best Match'. Head to the Ebay sort options for a full list of supported sort options.

category_id

Optional

Parameter defines the ID of a category where you want your search to be concentrated. ID values are accessible inside categories array, located in our JSON output (e.g. categories[1].id).

You can search using category_id parameter without specifying _nkw parameter.

Serpapi Parameters

engine

Required

Set parameter to ebay to use the Ebay API engine.

no_cache

Optional

Parameter will force SerpApi to fetch the Ebay results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the final output you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.

API Results

JSON Results

JSON output includes structured data for organic results and more.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML Results

HTML output is useful to debug JSON results or support features not supported yet by SerpApi.
HTML output gives you the raw HTML results from Ebay.

API Examples

Example results for _nkw: Coffee

Example results for _nkw: Coffee

JSON Example

{
  "search_metadata": {
    "id": "643744bc7708441b6723c1fe",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/5cff5733649b98a5/643744bc7708441b6723c1fe.json",
    "created_at": "2023-04-12 23:54:36 UTC",
    "processed_at": "2023-04-12 23:54:36 UTC",
    "ebay_url": "https://www.ebay.com/sch/i.html?_nkw=Coffee",
    "raw_html_file": "https://serpapi.com/searches/5cff5733649b98a5/643744bc7708441b6723c1fe.html",
    "total_time_taken": 2.89
  },
  "search_parameters": {
    "engine": "ebay",
    "_nkw": "Coffee",
    "ebay_domain": "ebay.com"
  },
  "search_information": {
    "organic_results_state": "Results for exact spelling",
    "total_results": 81000,
    "query_displayed": "Coffee"
  },
  "categories": [
    {
      "name": "All"
    },
    {
      "id": 11700,
      "name": "Home & Garden"
    },
    {
      "id": 14308,
      "name": "Food & Beverages"
    },
    {
      "id": 185035,
      "name": "Non-Alcoholic Drinks"
    },
    ...
  ],
  "organic_results": [
    {
      "sponsored": true,
      "title": "Kaffeto Gourmet Cafe Latte with Ganoderma Coffee 100 Sachets",
      "link": "https://www.ebay.com/itm/255997789761?hash=item3b9aa84641:g:dqYAAOSwsJNkI3yO&amdata=enc%3AAQAHAAAAwPFCjHD1MC3Pc8%2Fq06WaEvu%2FWwOgjy5RhbTlph2rcwBQPbErAdTPhaIXQnAr32xRVArMiyEFj1xMUS%2Fb5Ta3%2BowDMj9YHSfx%2BA2k4mw%2F5hQZyuhWZRQ9vl3XM6f2aDFH02YHrv7pZwRZahgG8GhOflM%2BclScIoTXNAn2XpcX3yq8cPTrAeTMwrXza71ZDvXoZmYKuKPz7bNEHEVDchCAsX63HgbHKg2pR3rCPE%2BMdRU69hsEWhIoSs3MnNA5mQ4p9A%3D%3D%7Ctkp%3ABlBMUIqgpP7uYQ",
      "condition": "Brand New",
      "price": {
        "raw": "$80.95",
        "extracted": 80.95
      },
      "shipping": "Free 4 day shipping",
      "returns": "Free returns",
      "thumbnail": "https://i.ebayimg.com/thumbs/images/g/dqYAAOSwsJNkI3yO/s-l225.jpg",
      "promotion": "Save up to 15% when you buy more",
      "seller": {
        "username": "nybase",
        "reviews": 728,
        "positive_feedback_in_percentage": 98.2
      }
    },
    {
      "sponsored": true,
      "title": "Mexican Robusta Coffee Petapa, Oaxaca, Mexico",
      "subtitle": "Robusta Mexicana",
      "link": "https://www.ebay.com/itm/225343936313?var=524332194979&hash=item34778b9739:g:K2YAAOSwhd1jvgW2&amdata=enc%3AAQAHAAAAsO%2BFtqqFhX99xJJpRSTQymqf0rZNHTTsHImCApzZllq7TNESkG%2BkqSHXxj2d838WG8%2Frud6cAjpcDaQCad%2BWBeE5pZhG%2FFZuJ2it9fEW0fNV2wubDzhn9YHOx6H%2FJy3lIzn6YJ2dTMhiE0dlT%2FQ96KlchJCXt8MIyQjZwev7SYL2otQMdLbbzDdeQgfiq%2B3ZmLBSKAz2C0RegFijIv6qlB0EOFKdtkDryOMOCcpm%2Fuul%7Ctkp%3ABlBMUIqgpP7uYQ",
      "condition": "Brand New",
      "price": {
        "from": {
          "raw": "$10.00",
          "extracted": 10
        },
        "to": {
          "raw": "$19.00",
          "extracted": 19
        }
      },
      "shipping": "Free shipping",
      "thumbnail": "https://i.ebayimg.com/thumbs/images/g/K2YAAOSwhd1jvgW2/s-l225.jpg",
      "promotion": "Extra 8% off with coupon",
      "seller": {
        "username": "isla-coffee",
        "reviews": 850,
        "positive_feedback_in_percentage": 99.2
      }
    },
    {
      "sponsored": true,
      "title": "DECAF COLOMBIAN COFFEE SINGLE SERVE CUPS 50 CUPS ROASTED FRESH WEEKLY",
      "link": "https://www.ebay.com/itm/112362444611?hash=item1a2952d743:g:0m0AAOSwImRYUd3g&amdata=enc%3AAQAHAAAAwL0IgrKeaEZYkS0hfm%2BtaJw6%2FDp%2BtrAFzyckbb7ictjqg4XnZYn9SUfb%2BRAH2lqN5KJlIYIQmuX5jN%2FJiTY6riRGP8DvYus4TB21snvrrcnPePWd2JLyArOFcvm4TGlaqPh%2BrzrF0GIGqQC9ckuHwVfZxNbLswhFHKqIzP5cT3tsKJnWJWGtcjOCDkjyX3SvAI77sgAjkwxM0YoXy%2FrsX50EQ%2FBumJ0vNYNdgGtU7V7JKIX%2BiA%2BSRy%2BqvbpfOrxnhA%3D%3D%7Ctkp%3ABlBMUIqgpP7uYQ",
      "condition": "Brand New",
      "price": {
        "raw": "$26.99",
        "extracted": 26.99
      },
      "shipping": "Free 4 day shipping",
      "quantity_sold": "145 sold",
      "extracted_quantity_sold": 145,
      "thumbnail": "https://i.ebayimg.com/thumbs/images/g/0m0AAOSwImRYUd3g/s-l225.jpg",
      "seller": {
        "username": "koffeeexpress",
        "reviews": 24147,
        "positive_feedback_in_percentage": 100
      }
    },
    ...
  ],
  "related_searches": [
    {
      "query": "ground coffee",
      "link": "https://www.ebay.com/sch/i.html?_nkw=ground+coffee&_sop=12"
    },
    {
      "query": "coffee maker",
      "link": "https://www.ebay.com/sch/i.html?_nkw=coffee+maker&_sop=12"
    },
    {
      "query": "coffee beans",
      "link": "https://www.ebay.com/sch/i.html?_nkw=coffee+beans&_sop=12"
    },
    ...
  ],
  "pagination": {
    "current": 1,
    "next": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=2",
    "other_pages": {
      "1": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=1",
      "2": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=2",
      "3": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=3",
      "4": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=4",
      "5": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=5&rt=nc",
      "6": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=6&rt=nc",
      "7": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=7&rt=nc",
      "8": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=8&rt=nc",
      "9": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=9&rt=nc",
      "10": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=10&rt=nc"
    }
  },
  "serpapi_pagination": {
    "current": 1,
    "next_link": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=2&ebay_domain=ebay.com&engine=ebay",
    "next": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=2&ebay_domain=ebay.com&engine=ebay",
    "other_pages": [
      "1": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=1&ebay_domain=ebay.com&engine=ebay",
      "2": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=2&ebay_domain=ebay.com&engine=ebay",
      "3": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=3&ebay_domain=ebay.com&engine=ebay",
      "4": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=4&ebay_domain=ebay.com&engine=ebay",
      "5": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=5&ebay_domain=ebay.com&engine=ebay",
      "6": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=6&ebay_domain=ebay.com&engine=ebay",
      "7": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=7&ebay_domain=ebay.com&engine=ebay",
      "8": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=8&ebay_domain=ebay.com&engine=ebay",
      "9": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=9&ebay_domain=ebay.com&engine=ebay",
      "10": "https://serpapi.com/search.json?_nkw=Coffee&_pgn=10&ebay_domain=ebay.com&engine=ebay"
    ]
  }
}

Example results for search only by category_id: 9355 (Cell Phones & Smarthphones)

Example results for search only by category_id: 9355 (Cell Phones & Smarthphones)

JSON Example

{
  "search_metadata": {
    "id": "653a0908b68f8b9824ed3cae",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/2f6172ee3ad2c29d/653a0908b68f8b9824ed3cae.json",
    "created_at": "2023-10-26 06:36:56 UTC",
    "processed_at": "2023-10-26 06:36:56 UTC",
    "ebay_url": "https://www.ebay.com/sch/9355/i.html?",
    "raw_html_file": "https://serpapi.com/searches/2f6172ee3ad2c29d/653a0908b68f8b9824ed3cae.html",
    "total_time_taken": 3.18
  },
  "search_parameters": {
    "engine": "ebay",
    "category_id": "9355",
    "ebay_domain": "ebay.com"
  },
  "search_information": {
    "organic_results_state": "Results for exact spelling",
    "title": "Cell Phones & Smarthphones",
  },
  "categories": [
    {
      "name": "Cell Phones & Accessories",
      "id": "15032"
    },
    {
      "name": "Smart Watches",
      "id": "178893"
    },
    {
      "name": "Smart Watch Accessories",
      "id": "182064"
    },
    ...
  ],
  "organic_results": [
    {
      "sponsored": true,
      "title": "2020 Apple iPhone SE 2nd Gen (Great Condition) Unlocked Verizon AT&T T-Mobile",
      "link": "https://www.ebay.com/itm/334691749565?epid=0&hash=item4ded2ecebd:g:XTEAAOSwAPBgrTPy&amdata=enc%3AAQAIAAAA0CarRgZd7V0IPQSEbXpFOd8UZAMggZd6FdjqlpcQiViBmQjSypmsWndWqSldQ9Ljpi4YRIZYIuACHYbN7YYbJHdupR8gM557GJCU%2BE0KWn6tOt3stKdxClEGJ2I06upCKAPonE7b80Op8G42QzLyqt8Sw6tp%2B8Y4bFUmYZ8KiRTGM8TuRb1UGi6N7MJxIcSps5SzUNVBIjLmVY2sFOf6cBiXUAjDy%2BKXcH68BNtuBTGQj%2Fb9%2BpigvjTyVGhLAaRf1ugE3vNZTr5pf7SzLfjxyW0%3D%7Ctkp%3ABFBM6M-bq-1i",
      "condition": "Pre-Owned",
      "price": {
        "from": {
          "raw": "$179.99",
          "extracted": 179.99
        },
        "to": {
          "raw": "$229.99",
          "extracted": 229.99
        }
      },
      "top_rated": true,
      "returns": "Free returns",
      "thumbnail": "https://i.ebayimg.com/thumbs/images/g/XTEAAOSwAPBgrTPy/s-l300.jpg",
      "promotion": "Save up to 5% when you buy more",
      "seller": {
        "username": "cocosprinkles",
        "reviews": 31474,
        "positive_feedback_in_percentage": 99.5
      },
      "watchers": "14+ watchers",
      "extracted_watchers": 14
    },
    {
      "sponsored": true,
      "title": "Apple iPhone 8 (Great Condition) Factory Unlocked, AT&T, T-Mobile or Verizon",
      "link": "https://www.ebay.com/p/5035040580?iid=325661590882&var=514685976382",
      "condition": "Pre-Owned",
      "rating": 4.5,
      "reviews": 30,
      "price": {
        "from": {
          "raw": "$164.99",
          "extracted": 164.99
        },
        "to": {
          "raw": "$219.99",
          "extracted": 219.99
        }
      },
      "top_rated": true,
      "returns": "Free returns",
      "thumbnail": "https://i.ebayimg.com/thumbs/images/g/GKwAAOSwSBpfsXbn/s-l300.jpg",
      "seller": {
        "username": "cocosprinkles",
        "reviews": 31474,
        "positive_feedback_in_percentage": 99.5
      },
      "watchers": "14+ watchers",
      "extracted_watchers": 14
    },
    {
      "sponsored": true,
      "title": "2020 Apple iPhone SE 2nd Gen (Excellent Condition) Unlocked Verizon A&T T-Mobile",
      "link": "https://www.ebay.com/p/13039001065?iid=325791276236&var=514797919399",
      "condition": "Pre-Owned",
      "rating": 4.5,
      "reviews": 19,
      "price": {
        "from": {
          "raw": "$144.99",
          "extracted": 144.99
        },
        "to": {
          "raw": "$324.99",
          "extracted": 324.99
        }
      },
      "top_rated": true,
      "returns": "Free returns",
      "thumbnail": "https://i.ebayimg.com/thumbs/images/g/XTEAAOSwAPBgrTPy/s-l300.jpg",
      "promotion": "Save up to 5% when you buy more",
      "seller": {
        "username": "cocosprinkles",
        "reviews": 31474,
        "positive_feedback_in_percentage": 99.5
      },
      "watchers": "26+ watchers",
      "extracted_watchers": 26
    },
    ...
  ],
  "deals": {
    "title": "Top Deals in Cell Phones",
    "subtitle": "Free Shipping Included",
    "items": [
      {
        "title": "Apple iPhone 11 64GB Unlocked Smartphone - Very Good",
        "link": "https://www.ebay.com/itm/363183815277?var=632351260661",
        "price": {
          "raw": "$277.95",
          "extracted": 277.95
        },
        "old_price": {
          "raw": "$699.00",
          "extracted": 699,
          "discount": "60% OFF"
        },
        "extensions": [
          "eBay Refurbished"
        ],
        "thumbnail": "https://i.ebayimg.com/thumbs/images/g/tZEAAOSw7TNfkvbo/s-l225.jpg"
      },
      {
        "title": "OnePlus 10T 5G 128GB Moonstone Black T-Mobile Unlocked Smartphone - Brand New.",
        "link": "https://www.ebay.com/itm/185997734023",
        "price": {
          "raw": "$299.99",
          "extracted": 299.99
        },
        "old_price": {
          "raw": "$649.00",
          "extracted": 649,
          "discount": "54% OFF"
        },
        "thumbnail": "https://i.ebayimg.com/thumbs/images/g/RlQAAOSwhRhkuYfh/s-l225.jpg"
      },
      ...
    ]
  },
  "best_selling": {
    "title": "Best Selling",
    "items": [
      {
        "title": "Apple iPhone 15 Pro Max - 256GB - Natural Titanium (Unlocked)",
        "link": "https://www.ebay.com/p/9062763667?iid=256269741609",
        "price": {
          "raw": "$1,289.99 New",
          "extracted": 1289.99
        },
        "thumbnail": "https://i.ebayimg.com/thumbs/images/g/q~UAAOSwFtplHY6C/s-l225.jpg",
        "used_price": {
          "raw": "$880.00 Used",
          "extracted": 880
        }
      },
      {
        "title": "Apple iPhone 15 Pro Max - 256GB - Blue Titanium (Unlocked)",
        "link": "https://www.ebay.com/p/8062766783?iid=314908273299",
        "price": {
          "raw": "$1,400.00 New",
          "extracted": 1400
        },
        "thumbnail": "https://i.ebayimg.com/thumbs/images/g/LXEAAOSwKWVlJqXl/s-l225.jpg",
        "used_price": {
          "raw": "$1,318.99 Used",
          "extracted": 1318.99
        }
      },
      ...
    ]
  },
  "related_items": [
    {
      "title": "Unlocked Cell Phones & Smartphones",
      "link": "https://www.ebay.com/b/Unlocked-Cell-Phones-Smartphones/9355/bn_591735",
      "thumbnail": "https://ir.ebaystatic.com/cr/v/c1/s_1x2.gif"
    },
    {
      "title": "Apple Unlocked Smartphones",
      "link": "https://www.ebay.com/b/Apple-Unlocked-Smartphones/9355/bn_599372",
      "thumbnail": "https://ir.ebaystatic.com/cr/v/c1/s_1x2.gif"
    },
    {
      "title": "Unlocked Apple iPhone 7 Cell Phones & Smartphones",
      "link": "https://www.ebay.com/b/Unlocked-Apple-iPhone-7-Cell-Phones-Smartphones/9355/bn_84666692",
      "thumbnail": "https://ir.ebaystatic.com/cr/v/c1/s_1x2.gif"
    },
    ...
  ],
  "pagination": {
    "current": 1,
    "next": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=2",
    "other_pages": {
      "1": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=1",
      "2": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=2",
      "3": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=3",
      "4": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=4",
      "5": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=5&rt=nc",
      "6": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=6&rt=nc",
      "7": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=7&rt=nc",
      "8": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=8&rt=nc",
      "9": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=9&rt=nc",
      "10": "https://www.ebay.com/b/Cell-Phones-Smartphones/9355/bn_320094?_pgn=10&rt=nc"
    }
  },
  "serpapi_pagination": {
    "current": 1,
    "next_link": "https://serpapi.com/search.json?_pgn=2&category_id=9355&ebay_domain=ebay.com&engine=ebay",
    "next": "https://serpapi.com/search.json?_pgn=2&category_id=9355&ebay_domain=ebay.com&engine=ebay",
    "other_pages": {
      "1": "https://serpapi.com/search.json?_pgn=1&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "2": "https://serpapi.com/search.json?_pgn=2&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "3": "https://serpapi.com/search.json?_pgn=3&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "4": "https://serpapi.com/search.json?_pgn=4&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "5": "https://serpapi.com/search.json?_pgn=5&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "6": "https://serpapi.com/search.json?_pgn=6&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "7": "https://serpapi.com/search.json?_pgn=7&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "8": "https://serpapi.com/search.json?_pgn=8&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "9": "https://serpapi.com/search.json?_pgn=9&category_id=9355&ebay_domain=ebay.com&engine=ebay",
      "10": "https://serpapi.com/search.json?_pgn=10&category_id=9355&ebay_domain=ebay.com&engine=ebay"
    }
  }
}