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.

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 that is spelled wrong. It should be set to spell_auto_correct to exclude these results.

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).

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).

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": "5e3022bede9834001b8bb253",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/ec27552e14e2bbbb/5e3022bede9834001b8bb253.json",
    "created_at": "2020-01-28 12:02:06 UTC",
    "processed_at": "2020-01-28 12:02:06 UTC",
    "ebay_url": "https://www.ebay.com/sch/i.html?&_nkw=Coffee",
    "raw_html_file": "https://serpapi.com/searches/ec27552e14e2bbbb/5e3022bede9834001b8bb253.html",
    "total_time_taken": 4.44
  },
  "search_parameters": {
    "engine": "ebay",
    "_nkw": "Coffee"
  },
  "search_information": {
    "organic_results_state": "Results for exact spelling",
    "total_results": 3400831,
    "query_displayed": "Coffee"
  },
  "categories": [
    {
      "name": "All"
    },
    {
      "name": "Home & Garden",
      "id": "11700"
    },
    {
      "name": "Food & Beverages",
      "id": "14308"
    },
    ...
  ],
  "organic_results": [
    {
      "sponsored": true,
      "title": "Caffitaly Nespresso Compatible Coffee Capsules Premium Blend Italian Coffee Pods",
      "subtitle": "sold and shipped same day by Luxuryfreeshop",
      "link": "https://www.ebay.com/itm/Caffitaly-Nespresso-Compatible-Coffee-Capsules-Premium-Blend-Italian-Coffee-Pods/...",
      "condition": "Brand New",
      "price": {
        "from": {
          "raw": "$19.95",
          "extracted": 19.95
        },
        "to": {
          "raw": "$36.95",
          "extracted": 36.95
        }
      },
      "shipping": "Free Shipping",
      "extensions": [
        "Buy It Now",
        "40+ Watching"
      ],
      "thumbnail": "https://i.ebayimg.com/thumbs/images/m/mErYOmIjDftXtlYIJoxkYjw/s-l225.jpg"
    },
    {
      "sponsored": true,
      "title": "100% Kona / Hawaiian Coffee Whole Beans - Fresh Roasted Daily 1LBS Bag !",
      "subtitle": "Roasted In The Morning Shipped that Afternoon !",
      "link": "https://www.ebay.com/itm/100-Kona-Hawaiian-Coffee-Whole-Beans-Fresh-Roasted-Daily-1LBS-Bag/...",
      "condition": "Brand New",
      "price": {
        "raw": "$20.99",
        "extracted": 20.99
      },
      "shipping": "Free Shipping",
      "top_rated": true,
      "returns": "Free Returns",
      "extensions": [
        "Buy It Now",
        "3,604+ Sold"
      ],
      "thumbnail": "https://i.ebayimg.com/thumbs/images/m/mSt-arTl7TH8p8nCDcDdQlw/s-l225.jpg"
    },
    {
      "sponsored": true,
      "title": "Black Refillable Reusable Single K-Cups Filter Pod for Keurig 2.0 Coffee Makers",
      "link": "https://www.ebay.com/itm/Black-Refillable-Reusable-Single-K-Cups-Filter-Pod-for-Keurig-2-0-Coffee-Makers/...",
      "condition": "Brand New",
      "price": {
        "from": {
          "raw": "$4.25",
          "extracted": 4.25
        },
        "to": {
          "raw": "$9.98",
          "extracted": 9.98
        }
      },
      "shipping": "Free Shipping",
      "top_rated": true,
      "returns": "Free Returns",
      "extensions": [
        "Buy It Now"
      ],
      "thumbnail": "https://i.ebayimg.com/thumbs/images/m/mN0Djg36r9wqTPMrtfUfpgw/s-l225.jpg"
    },
    {
      "sponsored": true,
      "title": "Refillable Reusable K-Cup K Carafe Coffee Filter Pod Fits Keurig 2.0 1.0 Coffee",
      "subtitle": "⭐️⭐️⭐️⭐️⭐️ BEST PRICE ONLINE! 4000+ FEEDBACK! 20% PROMO",
      "link": "https://www.ebay.com/itm/Refillable-Reusable-K-Cup-K-Carafe-Coffee-Filter-Pod-Fits-Keurig-2-0-1-0-Coffee/...",
      "condition": "Brand New",
      "price": {
        "from": {
          "raw": "$4.20",
          "extracted": 4.2
        },
        "to": {
          "raw": "$17.88",
          "extracted": 17.88
        }
      },
      "shipping": "Free Shipping",
      "returns": "Free Returns",
      "extensions": [
        "Buy It Now",
        "765+ Sold"
      ],
      "thumbnail": "https://i.ebayimg.com/thumbs/images/m/mv9qqkwLMZf7zXT6pkBZf8A/s-l225.jpg"
    },
    ...
  ],
  "related_searches": [
    {
      "query": "ground coffee",
      "link": "https://www.ebay.com/sch/i.html?_nkw=ground+coffee&_sop=12"
    },
    {
      "query": "coffee beans",
      "link": "https://www.ebay.com/sch/i.html?_nkw=coffee+beans&_sop=12"
    },
    {
      "query": "coffee pods",
      "link": "https://www.ebay.com/sch/i.html?_nkw=coffee+pods&_sop=12"
    },
    {
      "query": "coffee maker",
      "link": "https://www.ebay.com/sch/i.html?_nkw=coffee+maker&_sop=12"
    },
    ...
  ],
  "related_items": [
    {
      "title": "Coffee",
      "link": "https://www.ebay.com/b/Coffee/185036/bn_1642204",
      "thumbnail": "https://i.ebayimg.com/00/s/ODQ0WDExNzk=/z/PBcAAOSwcgNZJXh3/$_26.JPG"
    },
    {
      "title": "Mr. Coffee Stainless Steel Coffee Machines",
      "link": "https://www.ebay.com/b/Mr-Coffee-Stainless-Steel-Coffee-Machines/184665/bn_7756280",
      "thumbnail": "https://i.ebayimg.com/00/$(KGrHqZHJEcFBfBDHOLZBQj8!LHCJw~~_26.JPG?set_id=89040003C1"
    },
    {
      "title": "Coffee Pro Stainless Steel Coffee Machines",
      "link": "https://www.ebay.com/b/Coffee-Pro-Stainless-Steel-Coffee-Machines/184665/bn_101682295",
      "thumbnail": "https://i.ebayimg.com/00/$(KGrHqNHJCkFBkpTmhiJBQj8jwKN3Q~~_26.JPG?set_id=89040003C1"
    },
    {
      "title": "Starbucks Coffee",
      "link": "https://www.ebay.com/b/Starbucks-Coffee/185036/bn_1646192",
      "thumbnail": "https://i.ebayimg.com/00/s/NTAwWDUwMA==/z/2JYAAOSwLnlWoSVM/$_26.JPG"
    }
  ],
  "pagination": {
    "current": 1,
    "previous": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=1",
    "next": "https://www.ebay.com/sch/i.html?_nkw=Coffee&_pgn=2",
    "other_pages": {
      "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?engine=ebay&_nkw=Coffee&_pgn=2",
    "next": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=2",
    "previous_link": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee",
    "previous": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee",
    "other_pages": {
      "2": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=2",
      "3": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=3",
      "4": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=4",
      "5": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=5",
      "6": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=6",
      "7": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=7",
      "8": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=8",
      "9": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=9",
      "10": "https://serpapi.com/search.json?engine=ebay&_nkw=Coffee&_pgn=10"
    }
  }
}