Anmelden
JS Token empfohlen

Einige eBay-Seiten laden Inhalte über JavaScript oder iframes. Für eine vollständige Datenextraktion verwenden Sie Ihr JavaScript token.

API-Verwendung

Fügen Sie &scraper=ebay-serp zu einem Crawling API-Request hinzu. URL-kodieren Sie die Ziel-URL im 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)

Beispiel-Eingabe-URL

Die im url-Parameter übergebene URL (zur besseren Lesbarkeit URL-dekodiert):

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

Response-Struktur

JSON-Response-Body. Feldtypen können null sein, wenn die Quellseite den Wert nicht enthält.

query
string
Suchanfrage.
total_results
integer | null
Gesamtergebnisse.
products
array
Produktübersichten.
products[].item_id
string
eBay-Artikel-ID.
products[].title
string
Titel des Angebots.
products[].url
string
URL des Angebots.
products[].price
string
Preis.
products[].shipping
string
Versandkosten.
products[].condition
string
Neu / Gebraucht / Generalüberholt.
products[].seller
string
Benutzername des Verkäufers.
products[].image_url
string
Vorschaubild.

Beispiel-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"
    }
  ]
}