OpenAny
Get API keyAPI Key
APIE-commerceScrapers

ebay logo
eBay Search API

Search eBay via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by LiteScrape, pass parameters such as _ipg, _nkw, and retrieve structured data including source eBay listing ID, listing title, source listing link, extracted item price amount, and source-formatted price for filtered marketplace research, and source matching.

Selected price
$0.00015 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

eBay Search API

Prepare your request, then continue with your agent.

Selected price

$0.00015 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
eBay Search API

eBay Search API

Provide _nkw or category_id in the JSON body. This route exposes eBay-style filter names rather than a generic query field; organic_results returns listing identity, position, condition, links and price objects.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs Choose the JSON body location or search inputs described below; optional body fields: LH_ItemCondition, LH_PrefLoc, _blrs, _dmd, _ipg, _nkw, _pgn, _salic, _sasl, _saslop, _sop, _stpos, _udhi, _udlo, buying_format, category_id, ebay_domain, popular_filters, show_only. Optional query parameter: timeout (greater than 0, at most 90 seconds).
Selected implementation litescrape · eBay Search
Billing See the pricing area for the selected implementation and request options

What You Can Build

  • Filtered marketplace research: Compare listings using supported price, condition and buying-format controls.
  • Source matching: Keep item IDs and listing links for subsequent eBay Product lookups.

Returned Data

Field Meaning
organic_results[].product_id Source eBay listing ID.
organic_results[].title Listing title.
organic_results[].link Source listing link.
organic_results[].position Listing position in the returned results.
organic_results[].condition Condition label from the source.
organic_results[].price.extracted Extracted item price amount.
organic_results[].price.currency Currency for the item price.
organic_results[].price.raw Source-formatted price.
pagination.current Returned page.
search_information.total_results Source-reported result count.

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request POST \
  https://api.openany.si/v1/agent-apis/litescrape/api/ebay/search \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{"_ipg":25,"_nkw":"lego star wars"}'

Request and Response Examples

The response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.

Published eBay Search API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Search eBay listings by keyword or category.
Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
litescrapeCurrent
eBay Search · POST · View API reference
$0.00015 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · litescrapeUSD / call
Unit price
$0.00015

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.

calls

Total $0.015

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/ebay/search
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
timeoutURL query parametersquerynumberNo

Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.

maximum: 90

LH_ItemConditionJSON request bodybodystring | nullNo

Condition IDs joined with |, such as 1000|3000.

LH_PrefLocJSON request bodybodystring | nullNo

Item location relative to the marketplace.

_blrsJSON request bodybodystring | nullNo

Exclude automatic spelling corrections.

_dmdJSON request bodybodystring | nullNo

Result layout.

_ipgJSON request bodybodyintegerNo

Requested results per page. eBay may adjust the page size.

enum: 25, 50, 100, 200

_nkwJSON request bodybodystring | nullNo

Search keywords. Required unless category_id is supplied.

_pgnJSON request bodybodyintegerNo

Result page, starting at 1.

minimum: 1 · maximum: 2147483647

_salicJSON request bodybodyinteger | nullNo

eBay item-location country ID, e.g. 1 US, 2 Canada, 3 UK.

_saslJSON request bodybodystring | nullNo

Comma-separated eBay seller usernames.

_saslopJSON request bodybodyintegerNo

Include (1) or exclude (2) the sellers in _sasl.

enum: 1, 2

_sopJSON request bodybodyintegerNo

Sort: 12 best match, 1 ending soonest, 10 newly listed, 7 nearest, 15/16 total price ascending/descending, 2/3 item price ascending/descending, 18/19 condition new/used first. Availability depends on marketplace.

enum: 1, 2, 3, 7, 10, 12, 15, 16, 18, 19

_stposJSON request bodybodystring | nullNo

Destination postal code used by eBay for shipping estimates.

_udhiJSON request bodybodynumber | nullNo

Maximum item price.

_udloJSON request bodybodynumber | nullNo

Minimum item price.

buying_formatJSON request bodybodystring | nullNo

Auction, Buy It Now (BIN), or accepts offers (BO).

category_idJSON request bodybodyinteger | nullNo

eBay category ID.

ebay_domainJSON request bodybodystringNo

eBay marketplace hostname.

enum: "ebay.com", "ebay.co.uk", "ebay.ca", "ebay.com.au", "ebay.de", "ebay.fr", "ebay.it", "ebay.es", "ebay.at", "ebay.be", "ebay.ch", "ebay.ie", "ebay.nl", "ebay.com.hk", "ebay.com.my", "ebay.pl", "ebay.com.sg"

popular_filtersJSON request bodybodystring | nullNo

eBay aspect filters as key=value pairs joined with &, with multiple values joined by |. Percent-encoded names are accepted.

show_onlyJSON request bodybodystring | nullNo

Comma-separated filters: FR, RPA, AS, Savings, SaleItems, Lots, Charity, AV, FS, LPickup.

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • organic_resultsobject[]
    • conditionstring
    • linkstring
    • positioninteger
    • priceobject
      • currencystring
      • extractednumber
      • rawstring
    • product_idstring
    • titlestring
  • paginationobject
    • currentinteger
  • search_informationobject
    • query_displayedstring
    • total_resultsinteger
  • submit_feedback_for_this_response_herestring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    timeout
    Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
    body
    Search eBay listings by keyword or category.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/litescrape/api/ebay/search' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "_ipg": 25,
      "_nkw": "lego star wars"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "organic_results": [
        {
          "condition": "Brand New",
          "link": "https://www.ebay.com/itm/307222565766",
          "position": 1,
          "price": {
            "currency": "USD",
            "extracted": 144.62,
            "raw": "$144.62"
          },
          "product_id": "307222565766",
          "title": "LEGO Star Wars: The Arrowhead (75186)"
        }
      ],
      "pagination": {
        "current": 1
      },
      "search_information": {
        "query_displayed": "lego star wars",
        "total_results": 1000
      },
      "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
    }

Common questions

Do I need keywords, a category, or both?

Supply _nkw with 1–500 characters unless category_id is supplied. category_id is a positive integer; ebay_domain selects one of the exposed marketplace hostnames.

How do pagination and sorting work?

_pgn starts at 1. _ipg accepts 25, 50, 100 or 200, and the source may adjust page size. _sop selects an exposed sort code, such as 12 for best match or 10 for newly listed.

How can I filter price, condition and sellers?

Use _udlo and _udhi for nonnegative price bounds, LH_ItemCondition for pipe-separated condition IDs, and _sasl for comma-separated seller usernames. _saslop=1 includes those sellers and 2 excludes them.

Can I control buying format and delivery context?

buying_format accepts Auction, BIN or BO. _stpos sets a destination postal code and LH_PrefLoc accepts Domestic, Regional or Worldwide; these are source search controls rather than a delivery guarantee.

Where should I set the request timeout?

Set timeout in the query string, including for POST requests. It must be greater than 0 and at most 90 seconds; page_timeout cannot extend this total execution budget.

Can I add arbitrary parameters to the JSON body?

Use the body fields exposed by this implementation. Its JSON schema rejects additional properties; query parameters such as timeout belong outside the JSON body.

Use eBay Search API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.