Untuk AI

eBay API: listing search, listing details, sold prices

4 eBay endpoints covering products and shops, from $0.002 a call. No eBay account or cookie needed.

Mulai gratis Coba pencarian listing
Hubungkan AI Anda

Tempelkan ini ke agen Anda

Baca https://okdata.online/agents.md dan siapkan okdata untuk saya; kunci saya ada di variabel lingkungan OKDATA_API_KEY.

Claude Code, Cursor, Codex, dan agen lain yang bisa membuka tautan akan menyiapkan dirinya sendiri dari sini.

Server MCPhttps://api.okdata.online/mcp

Ask about eBay from Claude, Cursor and other agents: the eBay MCP page

Endpoint
4 endpoint
Dalam 2 grup, satu format respons · 1 segera hadir
Harga terendah
Mulai $0.002
Panggilan, dibayar dari saldo prabayar
Kebaruan data
Live
Dibaca dari platform saat Anda memanggil
Biaya bulanan
$0
Tanpa langganan atau pembelanjaan minimum

Every eBay endpoint

Satu baris per endpoint: permintaan, data yang dikembalikan, dan biaya satu panggilan.

What people do with eBay data

Setiap kebutuhan punya halaman sendiri berisi endpoint yang dipakai, contoh eksekusi, dan biayanya.

Mulai dalam tiga langkah

The example is eBay listing search; every eBay endpoint is called the same way and answers in the same shape.

  1. Dapatkan key

    Buat akun dan kunci di konsol. Kunci baru mendapat $0.20 untuk mencoba, tanpa kartu.

    Buka konsol

  2. Hubungkan AI Anda, atau panggil sendiri

    Tempel kalimat ini ke Claude Code, Cursor, Codex, atau agen lain yang dapat membuka tautan, dan agen akan menyiapkan dirinya sendiri. Atau kirim permintaan di bawah dengan key Anda di header Authorization.

    Siapkan okdata untuk saya dengan mengikuti https://okdata.online/agents.md. Ini API key okdata saya: okd_…. Simpan baik-baik dan gunakan untuk semua panggilan okdata.

    Ganti placeholder dengan key Anda, atau masuk dan salin dengan key yang sudah terisi.

  3. Lakukan panggilan pertama

    Item ada di data.items (satu objek di data.item), halaman berikutnya di page.next_cursor, dan biaya yang ditagihkan di meta.billing.amount.

    cURL

    curl -G "https://api.okdata.online/v1/ebay/products/search" \
      -H "Authorization: Bearer $OKDATA_API_KEY" \
      --data-urlencode 'query=vintage camera'

    Python

    import os
    import requests
    
    resp = requests.get(
        "https://api.okdata.online/v1/ebay/products/search",
        headers={"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"},
        params={"query": "vintage camera"},
        timeout=60,
    )
    body = resp.json()
    if body["code"] != "ok":
        raise RuntimeError(f"{body['code']}: {body['message']} (charged: {body['charged']})")
    
    for row in body["data"]["items"]:
        print(row["price"], row["currency"], row["sold"], row["title"][:60])
    print("cost: $" + body["meta"]["billing"]["amount"])

    TypeScript

    const url = new URL('https://api.okdata.online/v1/ebay/products/search');
    url.searchParams.set('query', "vintage camera");
    
    const res = await fetch(url, {
      headers: {
        Authorization: `Bearer ${process.env.OKDATA_API_KEY}`,
      },
    });
    const body = await res.json();
    if (body.code !== 'ok') throw new Error(`${body.code}: ${body.message}`);
    
    for (const row of body.data.items) {
      console.log(row.price, row.currency, row.sold, row.title.slice(0, 60));
    }
    console.log('cost: $' + body.meta.billing.amount);

    MCPtools/call

    {
      "name": "call",
      "arguments": {
        "capability": "ebay.products.search",
        "query": "vintage camera"
      }
    }

Questions about the eBay API

What does the eBay API cost?

Each of the 4 endpoints has its own price, from $0.002 to $0.003 a call; the cheapest is eBay listing details at $0.002. You pay per call from a prepaid balance, with no subscription. A call that reaches the platform is charged even when it comes back empty, not found or failed; one stopped before that, such as for bad parameters, is free.

Do I need a eBay account or cookie?

No. You call https://api.okdata.online with one okdata key and get public eBay data back; you never use your own eBay account, cookie or QR login.

Seberapa baru datanya?

A request reads eBay when you call, unless the same request was answered a short while ago: then the answer can come from the result cache, with meta.cached: true and meta.fetched_at saying when it was read (lists and searches up to 30 minutes old, one post or product up to 1 hour, profiles up to 6 hours).

Can my AI agent use the eBay API?

Ya. Hubungkan server MCP di https://api.okdata.online/mcp: tool find-nya menampilkan 4 endpoint ini beserta harganya, dan tool call-nya menjalankannya dengan key Anda.

Bisakah saya mencobanya gratis?

New accounts get $0.20 of trial credit with no card: enough for 100 calls to eBay listing details.

Hubungkan sekali, lalu cukup bertanya.

Setiap kunci baru mendapat $0.20 untuk mencoba. Satu kalimat menghubungkan agen Anda.

Mulai gratis
Hubungkan AI Anda

Tempelkan ini ke agen Anda

Baca https://okdata.online/agents.md dan siapkan okdata untuk saya; kunci saya ada di variabel lingkungan OKDATA_API_KEY.

Claude Code, Cursor, Codex, dan agen lain yang bisa membuka tautan akan menyiapkan dirinya sendiri dari sini.

Server MCPhttps://api.okdata.online/mcp