{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onefindme-com/json-schema/onefindme-com-search-result-schema.json",
  "title": "SearchResult",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onefindme-com-openapi.json#/components/schemas/SearchResult",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "marketplace_query": {
      "type": [
        "string",
        "null"
      ],
      "description": "The English search the engine actually ran on AliExpress."
    },
    "country": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "language": {
      "type": "string"
    },
    "more": {
      "type": "string",
      "description": "Link to the full results on onefindme.com."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "product_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "AliExpress product id."
          },
          "title": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ]
          },
          "original_price": {
            "type": [
              "number",
              "null"
            ]
          },
          "discount_percent": {
            "type": [
              "number",
              "null"
            ]
          },
          "currency": {
            "type": "string"
          },
          "rating": {
            "type": [
              "number",
              "null"
            ],
            "description": "Out of 5."
          },
          "orders": {
            "type": "integer"
          },
          "store": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "description": "Affiliate link to the AliExpress listing."
          },
          "images": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Up to 4 more product photos, when available."
          },
          "delivery_days": {
            "type": "string",
            "description": "Delivery estimate in days, when available."
          }
        }
      }
    },
    "ebay_results": {
      "type": "array",
      "description": "Matching new, fixed-price eBay listings that ship to the delivery country, via the official eBay Browse API. A separate source: keep them apart from the AliExpress results. Empty when eBay has no match.",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "price": {
            "type": [
              "number",
              "null"
            ]
          },
          "currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping_cost": {
            "type": [
              "number",
              "null"
            ],
            "description": "0 = free shipping"
          },
          "delivery_days": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated delivery range in days, e.g. \"2-4\""
          },
          "ships_from": {
            "type": [
              "string",
              "null"
            ],
            "description": "ISO country code the item ships from"
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "description": "eBay affiliate link (eBay Partner Network)"
          }
        }
      }
    }
  }
}