Docs
Log in
JS token recommended

Some eBay pages load content via JavaScript or iframes. For complete data extraction, use your JavaScript token.

API usage

Add &scraper=ebay-serp to a Crawling API request. URL-encode the target URL in the url parameter.

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.ebay.com/sch/i.html?_nkw=iphone+x' \
  --data-urlencode 'scraper=ebay-serp' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.ebay.com/sch/i.html?_nkw=iphone+x',
    {'scraper': 'ebay-serp'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.ebay.com/sch/i.html?_nkw=iphone+x',
  { scraper: 'ebay-serp' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.ebay.com/sch/i.html?_nkw=iphone+x', scraper: 'ebay-serp')
data = JSON.parse(res.body)

Example input URL

The URL passed in the url parameter (URL-decoded for readability):

https://www.ebay.com/sch/i.html?_nkw=iphone+x

Response shape

JSON response body. Field types may be null when the source page omits the value.

query
string
Search query.
total_results
integer | null
Total results.
products
array
Product summaries.
products[].item_id
string
eBay item ID.
products[].title
string
Listing title.
products[].url
string
Listing URL.
products[].price
string
Price.
products[].shipping
string
Shipping cost.
products[].condition
string
New / Used / Refurbished.
products[].seller
string
Seller username.
products[].image_url
string
Thumbnail.

Sample response

{
  "query": "iphone x",
  "products": [
    {
      "item_id": "156078647276",
      "title": "Apple iPhone X 64GB Unlocked",
      "price": "$129.99",
      "shipping": "Free shipping",
      "condition": "Used",
      "seller": "phonecollector_us"
    }
  ]
}