{
  "openapi": "3.1.0",
  "info": {
    "title": "OneFindMe Wig Search",
    "version": "1.0.0",
    "description": "Search human hair wigs, toppers, bundles and men's hair systems sold on AliExpress. Returns real listings with today's starting price in the currency of the delivery country, order count, positive-feedback share and a short link. Synthetic wigs are left out unless the query asks for them. Links are affiliate links: OneFindMe may earn a commission at no extra cost to the buyer.",
    "contact": { "name": "OneFindMe", "url": "https://onefindme.com/en/about/" }
  },
  "servers": [{ "url": "https://onefindme.com" }],
  "paths": {
    "/hair/api/search": {
      "get": {
        "operationId": "searchWigs",
        "summary": "Search wigs and hair pieces with today's prices",
        "description": "Pass what the shopper wants in the words wig sellers use: texture (body wave, straight, deep wave, kinky curly), length in inches, lace type (13x4, 13x6, 5x5, glueless, headband), colour (613 blonde, 99J burgundy, 1B) and density. English, Spanish, Portuguese and French queries work.",
        "parameters": [
          { "name": "q", "in": "query", "required": true, "description": "What the shopper is looking for, e.g. \"26 inch body wave 13x6 lace front wig\", \"glueless bob wig\", \"men toupee 1b20\", \"hair topper silk base\".", "schema": { "type": "string", "maxLength": 120 } },
          { "name": "country", "in": "query", "required": false, "description": "ISO 3166-1 alpha-2 delivery country (US, GB, CA, NG, ZA, FR, BR, MX...). Sets the currency and which listings ship there. Default US. Ask the shopper if unknown.", "schema": { "type": "string", "minLength": 2, "maxLength": 2 } },
          { "name": "max", "in": "query", "required": false, "description": "Number of listings, 1 to 12. Default 8.", "schema": { "type": "integer", "minimum": 1, "maximum": 12 } }
        ],
        "responses": {
          "200": {
            "description": "Matching listings",
            "content": { "application/json": { "schema": {
              "type": "object",
              "properties": {
                "query": { "type": "string" },
                "searched_as": { "type": "string", "description": "The English keywords actually searched" },
                "country": { "type": "string" },
                "currency": { "type": "string" },
                "checked": { "type": "string", "description": "Date the prices were read (YYYY-MM-DD)" },
                "count": { "type": "integer" },
                "products": { "type": "array", "items": { "type": "object", "properties": {
                  "title": { "type": "string" },
                  "price": { "type": "number", "description": "Starting price in 'currency'" },
                  "currency": { "type": "string" },
                  "original_price": { "type": "number" },
                  "discount": { "type": "string" },
                  "orders": { "type": "integer", "description": "Orders shown on the listing; absent when unknown" },
                  "positive_feedback": { "type": "string" },
                  "url": { "type": "string", "description": "Link to the listing. Show it exactly as given." },
                  "image": { "type": "string" }
                } } },
                "all_results": { "type": "string", "description": "The full result list on onefindme.com, with filters and the price of each length" },
                "note": { "type": "string" }
              }
            } } }
          },
          "400": { "description": "q is missing" }
        }
      }
    }
  }
}
