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...
eBay Search
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
organic_resultsobject[]conditionstringlinkstringpositionintegerpriceobjectcurrencystringextractednumberrawstring
product_idstringtitlestring
paginationobjectcurrentinteger
search_informationobjectquery_displayedstringtotal_resultsinteger
submit_feedback_for_this_response_herestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
organic_results?: Array<{
condition?: string;
link?: string;
position?: number;
price?: {
currency?: string;
extracted?: number;
raw?: string;
};
product_id?: string;
title?: string;
}>;
pagination?: {
current?: number;
};
search_information?: {
query_displayed?: string;
total_results?: number;
};
submit_feedback_for_this_response_here?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
litescrapeCurrent eBay Search · POST · View API reference | $0.00015 / call | — | —successP50— |
- 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.
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.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | 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_ItemCondition | JSON request bodybody | string | null | No | Condition IDs joined with |, such as 1000|3000. |
LH_PrefLoc | JSON request bodybody | string | null | No | Item location relative to the marketplace. |
_blrs | JSON request bodybody | string | null | No | Exclude automatic spelling corrections. |
_dmd | JSON request bodybody | string | null | No | Result layout. |
_ipg | JSON request bodybody | integer | No | Requested results per page. eBay may adjust the page size. enum: 25, 50, 100, 200 |
_nkw | JSON request bodybody | string | null | No | Search keywords. Required unless category_id is supplied. |
_pgn | JSON request bodybody | integer | No | Result page, starting at 1. minimum: 1 · maximum: 2147483647 |
_salic | JSON request bodybody | integer | null | No | eBay item-location country ID, e.g. 1 US, 2 Canada, 3 UK. |
_sasl | JSON request bodybody | string | null | No | Comma-separated eBay seller usernames. |
_saslop | JSON request bodybody | integer | No | Include (1) or exclude (2) the sellers in _sasl. enum: 1, 2 |
_sop | JSON request bodybody | integer | No | 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 |
_stpos | JSON request bodybody | string | null | No | Destination postal code used by eBay for shipping estimates. |
_udhi | JSON request bodybody | number | null | No | Maximum item price. |
_udlo | JSON request bodybody | number | null | No | Minimum item price. |
buying_format | JSON request bodybody | string | null | No | Auction, Buy It Now (BIN), or accepts offers (BO). |
category_id | JSON request bodybody | integer | null | No | eBay category ID. |
ebay_domain | JSON request bodybody | string | No | 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_filters | JSON request bodybody | string | null | No | eBay aspect filters as key=value pairs joined with &, with multiple values joined by |. Percent-encoded names are accepted. |
show_only | JSON request bodybody | string | null | No | 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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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
# 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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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" }'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" }