Skip to content
Browsabledocs
Staging API reference · Requests use https://api-ingress-worker-staging.browsable-staging.workers.dev
Documentation eBay Search API
Markdown ↗
eBay APIs

eBay Search API

Search public active ebay.com listings, including displayed prices and seller feedback when available. Does not search sold/completed listings. eBay may restrict anonymous access.

POST/v1/ebay/search
Authenticate every request

Send Authorization: Bearer YOUR_API_KEY. Get an API key →

Parameters

Send these fields in a flat JSON body. Add _run to choose execution options.

querystringRequired

Search text. Minimum length: 1. Maximum length: 500. Pattern: \S.

limitintegerOptional

Maximum results in this response. Default: 25. Minimum: 1. Maximum: 100.

conditionstringOptional

Listing condition. for_parts selects For parts or not working. Allowed: "new", "used", "for_parts".

cursorstringOptional

next_cursor from the previous response. Keep query, marketplace and limit unchanged. Expires after 30 minutes. Maximum length: 131072. Pattern: ^(?:[0-9]+|[A-Za-z0-9_-]+\.[A-Za-z0-9_-]{43})$.

marketplacestringOptional

Public endpoints currently support ebay.com. Default: "ebay.com". Allowed: "ebay.com".

max_pricenumberOptional

Maximum displayed listing price in USD. Minimum: 0. Maximum: 1000000000.

min_pricenumberOptional

Minimum displayed listing price in USD. Minimum: 0. Maximum: 1000000000.

pageintegerOptional

Starting page; omit when continuing with a cursor. Minimum: 1. Maximum: 10000.

sortstringOptional

Sort order. Choose an allowed value below. Allowed: "best_match", "newest", "price_low", "price_high", "ending_soon".

Advanced & compatibility inputs 1
category_idstringOptional

Numeric eBay category id, such as 9355 for cell phones. Pattern: ^[0-9]{1,12}$.

Response

Every response describes a run. Read result once run_status is succeeded.

run_id
The run to track. Keep it when contacting support.
run_status
Queued, running, waiting for sign-in, succeeded, or failed. Check this even after an HTTP 200.
status_url
Poll this URL while the run is pending. Keep the same run instead of starting another request.
result
The endpoint’s returned data. The example is illustrative; actual fields may be empty or unavailable.
error
On failure, inspect its code, message, retryable and action fields.
View the complete output schema
JSON
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "success",
    "source",
    "query",
    "url",
    "results",
    "count",
    "data",
    "max_results_requested",
    "pagination"
  ],
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "data": {
      "type": "object",
      "required": [
        "marketplace"
      ],
      "properties": {
        "marketplace": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "query": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "const": "ebay-search"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "url",
          "rating",
          "summary",
          "image_url",
          "price",
          "condition",
          "shipping",
          "seller"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "price": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "rating": {
            "type": [
              "string",
              "null"
            ]
          },
          "seller": {
            "type": "object",
            "required": [
              "username",
              "feedback_count",
              "positive_feedback_percent"
            ],
            "properties": {
              "username": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "feedback_count": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "positive_feedback_percent": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          },
          "summary": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "success": {
      "const": true
    },
    "pagination": {
      "type": "object",
      "required": [
        "cursor",
        "next_cursor",
        "has_next_page",
        "count",
        "strategy"
      ],
      "properties": {
        "count": {
          "type": "integer"
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "strategy": {
          "type": [
            "string",
            "null"
          ]
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "has_next_page": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "max_results_requested": {
      "type": "integer"
    }
  },
  "additionalProperties": false
}
View a polled run response
JSON
{
  "run_id": "00000000-0000-4000-8000-000000000001",
  "task_key": "ebay-search",
  "task_name": "eBay Search API",
  "run_status": "succeeded",
  "status_url": "/v1/runs/00000000-0000-4000-8000-000000000001",
  "result": {
    "url": "https://example.com/item-1",
    "data": {
      "marketplace": "sample"
    },
    "count": 1,
    "query": "London",
    "source": "ebay-search",
    "results": [
      {
        "id": "id-1",
        "url": "https://example.com/item-1",
        "price": "180",
        "title": "Stylish Shoreditch Loft with Balcony",
        "rating": "sample",
        "seller": {
          "username": "Stylish Shoreditch Loft with Balcony",
          "feedback_count": 1,
          "positive_feedback_percent": 1.5
        },
        "summary": "Sample summary 1",
        "shipping": "sample",
        "condition": "sample",
        "image_url": "https://example.com/item-1"
      }
    ],
    "success": true,
    "pagination": {
      "count": 1,
      "cursor": "cursor-page-1",
      "strategy": "sample",
      "next_cursor": "cursor-page-1",
      "has_next_page": true
    },
    "max_results_requested": 1
  },
  "error": null
}

Errors & retries

  • 400Fix the fields listed in errors before retrying.
  • 428Connect the requested website account using the returned sign-in link.
  • 429Wait for the duration in Retry-After.
  • 5xxRetry transient failures with backoff. Keep the request ID.

A failed run has its own error inside the response. Retry it only when error.retryable is true.

Validation, pagination and recovery →

More examples

Async request with polling
RUN=$(curl -s -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"iphone 13"}')

RUN_ID=$(echo "$RUN" | jq -er '.run_id // empty') || { echo "$RUN" >&2; exit 1; }
POLL_DELAY=3

while true; do
  RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/runs/$RUN_ID")
  STATUS=$(echo "$RESULT" | jq -r '.run_status')
  if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
    echo "$RESULT"
    break
  fi
  sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
  POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
  [ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
done
Wait-for-results request
curl -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"iphone 13","_run":{"async":false}}'
Canonical & compatibility routes

You can also send the same JSON body to /v1/tasks/ebay-search/runs.