eBay SERP
Extract eBay search results — array of products with prices, conditions, and seller info.
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' -Gfrom 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+xResponse shape
JSON response body. Field types may be null when the source page omits the value.
Search query.
Total results.
Product summaries.
eBay item ID.
Listing title.
Listing URL.
Price.
Shipping cost.
New / Used / Refurbished.
Seller username.
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"
}
]
}
