APIE-commerceScrapers

eBay Search

Search Ebay via API. The sample response includes links, positions and prices. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists timeout. Use the results to organize a research workflow and cross-check the relevant source records.

Selected price
$0.00015 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

eBay Search

Prepare your request, then continue with your agent.

Selected price

$0.00015 / call

Provider
Pricing
Connect your agent
On this page

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

{
  "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"
}

Response result

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

Sellers

SellerPricingRequests · 30dPerformanceAccess
litescrapeCurrent
eBay Search · POST · View API reference
$0.00015 / call—
—successP50—
Loading...
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: 3. 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
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"
}'

Input parameters

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

ParameterLocationTypeRequiredDescription
timeoutURL query parametersquerynumberNoTotal 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 | nullNoCondition IDs joined with |, such as 1000|3000.
LH_PrefLocJSON request bodybodystring | nullNoItem location relative to the marketplace.
_blrsJSON request bodybodystring | nullNoExclude automatic spelling corrections.
_dmdJSON request bodybodystring | nullNoResult layout.
_ipgJSON request bodybodyintegerNoRequested results per page. eBay may adjust the page size.

enum: 25, 50, 100, 200

_nkwJSON request bodybodystring | nullNoSearch keywords. Required unless category_id is supplied.
_pgnJSON request bodybodyintegerNoResult page, starting at 1.

minimum: 1 · maximum: 2147483647

_salicJSON request bodybodyinteger | nullNoeBay item-location country ID, e.g. 1 US, 2 Canada, 3 UK.
_saslJSON request bodybodystring | nullNoComma-separated eBay seller usernames.
_saslopJSON request bodybodyintegerNoInclude (1) or exclude (2) the sellers in _sasl.

enum: 1, 2

_sopJSON request bodybodyintegerNoSort: 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 | nullNoDestination postal code used by eBay for shipping estimates.
_udhiJSON request bodybodynumber | nullNoMaximum item price.
_udloJSON request bodybodynumber | nullNoMinimum item price.
buying_formatJSON request bodybodystring | nullNoAuction, Buy It Now (BIN), or accepts offers (BO).
category_idJSON request bodybodyinteger | nullNoeBay category ID.
ebay_domainJSON request bodybodystringNoeBay 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 | nullNoeBay aspect filters as key=value pairs joined with &, with multiple values joined by |. Percent-encoded names are accepted.
show_onlyJSON request bodybodystring | nullNoComma-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.

Sample response

Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.

Official example
{
  "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"
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# eBay Search

Search Ebay via API. The sample response includes links, positions and prices. Use it to surface relevant records in a search or discovery tool. The POST request schema also lists timeout. Use the results to organize a research workflow and cross-check the relevant source records.
## Available implementations
litescrape · eBay Search: https://openany.si/markets/apis/capabilities/ebay-search-e33f65a8?offering=bd49097e-10ee-41f1-9567-78e8169a7cb6 · $0.00015 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/ebay-search-e33f65a8
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/ebay/search
Price: $0.00015 / call
Provider: litescrape
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
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"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "eBay Search",
  "endpoint": "https://api.openany.si/v1/agent-apis/litescrape/api/ebay/search",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "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.",
      "location": "query",
      "maximum": "90",
      "name": "timeout",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "Search eBay listings by keyword or category.",
      "json_schema": {
        "additionalProperties": false,
        "examples": [
          {
            "_ipg": 25,
            "_nkw": "lego star wars"
          }
        ],
        "properties": {
          "LH_ItemCondition": {
            "anyOf": [
              {
                "pattern": "^[0-9]{1,4}(\\|[0-9]{1,4}){0,9}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Condition IDs joined with |, such as 1000|3000.",
            "title": "Lh Itemcondition",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Condition IDs",
              "summary": "Condition IDs joined with |, such as 1000|3000."
            }
          },
          "LH_PrefLoc": {
            "anyOf": [
              {
                "enum": [
                  "Domestic",
                  "Regional",
                  "Worldwide"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Item location relative to the marketplace.",
            "title": "Lh Prefloc",
            "x-litescrape": {
              "formGroup": 1,
              "group": 1,
              "label": "Preferred item location",
              "summary": "Item location relative to the marketplace."
            }
          },
          "_blrs": {
            "anyOf": [
              {
                "const": "spell_auto_correct",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Exclude automatic spelling corrections.",
            "title": "Blrs",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Spelling control",
              "summary": "Exclude automatic spelling corrections."
            }
          },
          "_dmd": {
            "anyOf": [
              {
                "enum": [
                  "Grid",
                  "List"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Result layout.",
            "title": "Dmd",
            "x-litescrape": {
              "formGroup": 3,
              "group": 3,
              "label": "Result layout",
              "summary": "Result layout."
            }
          },
          "_ipg": {
            "default": 50,
            "description": "Requested results per page. eBay may adjust the page size.",
            "enum": [
              25,
              50,
              100,
              200
            ],
            "title": "Ipg",
            "type": "integer",
            "x-litescrape": {
              "formGroup": 3,
              "group": 3,
              "label": "Results per page",
              "placeholder": "25",
              "summary": "Requested results per page. eBay may adjust the page size."
            }
          },
          "_nkw": {
            "anyOf": [
              {
                "maxLength": 500,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Search keywords. Required unless category_id is supplied.",
            "title": "Nkw",
            "x-litescrape": {
              "formGroup": 0,
              "group": 0,
              "label": "Keywords",
              "placeholder": "lego star wars",
              "summary": "Search keywords. Required unless category_id is supplied."
            }
          },
          "_pgn": {
            "default": 1,
            "description": "Result page, starting at 1.",
            "maximum": 2147483647,
            "minimum": 1,
            "title": "Pgn",
            "type": "integer",
            "x-litescrape": {
              "formGroup": 3,
              "group": 3,
              "label": "Page",
              "summary": "Result page, starting at 1."
            }
          },
          "_salic": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "eBay item-location country ID, e.g. 1 US, 2 Canada, 3 UK.",
            "title": "Salic",
            "x-litescrape": {
              "formGroup": 1,
              "group": 1,
              "label": "Item country ID",
              "summary": "eBay item-location country ID, e.g. 1 US, 2 Canada, 3 UK."
            }
          },
          "_sasl": {
            "anyOf": [
              {
                "maxLength": 1000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Comma-separated eBay seller usernames.",
            "title": "Sasl",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Seller usernames",
              "summary": "Comma-separated eBay seller usernames."
            }
          },
          "_saslop": {
            "default": 1,
            "description": "Include (1) or exclude (2) the sellers in _sasl.",
            "enum": [
              1,
              2
            ],
            "title": "Saslop",
            "type": "integer",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Include or exclude sellers",
              "summary": "Include (1) or exclude (2) the sellers in _sasl."
            }
          },
          "_sop": {
            "default": 12,
            "description": "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
            ],
            "title": "Sop",
            "type": "integer",
            "x-litescrape": {
              "formGroup": 3,
              "group": 3,
              "label": "Sort order",
              "summary": "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."
            }
          },
          "_stpos": {
            "anyOf": [
              {
                "maxLength": 20,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Destination postal code used by eBay for shipping estimates.",
            "title": "Stpos",
            "x-litescrape": {
              "formGroup": 1,
              "group": 1,
              "label": "Shipping postal code",
              "summary": "Destination postal code used by eBay for shipping estimates."
            }
          },
          "_udhi": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Maximum item price.",
            "title": "Udhi",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Maximum price",
              "summary": "Maximum item price."
            }
          },
          "_udlo": {
            "anyOf": [
              {
                "minimum": 0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Minimum item price.",
            "title": "Udlo",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Minimum price",
              "summary": "Minimum item price."
            }
          },
          "buying_format": {
            "anyOf": [
              {
                "enum": [
                  "Auction",
                  "BIN",
                  "BO"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Auction, Buy It Now (BIN), or accepts offers (BO).",
            "title": "Buying Format",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Buying format",
              "summary": "Auction, Buy It Now (BIN), or accepts offers (BO)."
            }
          },
          "category_id": {
            "anyOf": [
              {
                "maximum": 2147483647,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "eBay category ID.",
            "title": "Category Id",
            "x-litescrape": {
              "formGroup": 0,
              "group": 0,
              "label": "Category ID",
              "summary": "eBay category ID."
            }
          },
          "ebay_domain": {
            "default": "ebay.com",
            "description": "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"
            ],
            "title": "Ebay Domain",
            "type": "string",
            "x-litescrape": {
              "formGroup": 1,
              "group": 1,
              "label": "Marketplace",
              "summary": "eBay marketplace hostname."
            }
          },
          "popular_filters": {
            "anyOf": [
              {
                "maxLength": 4000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "eBay aspect filters as key=value pairs joined with &, with multiple values joined by |. Percent-encoded names are accepted.",
            "title": "Popular Filters",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Popular filters",
              "summary": "eBay aspect filters as key=value pairs joined with &, with multiple values joined by |. Percent-encoded names are accepted."
            }
          },
          "show_only": {
            "anyOf": [
              {
                "maxLength": 100,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Comma-separated filters: FR, RPA, AS, Savings, SaleItems, Lots, Charity, AV, FS, LPickup.",
            "title": "Show Only",
            "x-litescrape": {
              "formGroup": 2,
              "group": 2,
              "label": "Show only",
              "summary": "Comma-separated filters: FR, RPA, AS, Savings, SaleItems, Lots, Charity, AV, FS, LPickup."
            }
          }
        },
        "title": "Request",
        "type": "object"
      },
      "location": "body",
      "name": "body",
      "nullable": false,
      "pointer": "",
      "required": true,
      "type": "object"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "150",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example",
      "request": {
        "body": {
          "_ipg": 25,
          "_nkw": "lego star wars"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "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"
      }
    }
  ]
}
```

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 a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use eBay Search with your agent

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