{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Product Scraper: Prices, Orders, Ratings, No Login",
    "description": "AliExpress product search by keyword or search link: price, original price, discount, orders sold, rating, delivery days, ship from and photos, in one currency for your ship to country. Filters for price, rating, orders, free shipping, Choice. No login. $1 per 1,000 results, platform usage included.",
    "version": "0.1",
    "x-build-id": "0pQOxRuITXbh8q4Ge"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~aliexpress-product-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-aliexpress-product-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/one_dollar_store~aliexpress-product-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-aliexpress-product-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/one_dollar_store~aliexpress-product-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-aliexpress-product-search-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Products to look for, one per line, typed the way you would type them into the AliExpress search box. You can leave this empty when you give search links below.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search or category links",
            "type": "array",
            "description": "Optional. AliExpress search or category pages, one per line, for example https://www.aliexpress.com/w/wholesale-phone-holder.html?SearchText=phone+holder. They are read as given, with their own filters, in the currency of your ship to country. Product pages are not read.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum products per search",
            "minimum": 10,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop each search term or search link after this many products. AliExpress shows 60 products per results page. Minimum 10.",
            "default": 100
          },
          "shipTo": {
            "title": "Ship to country",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "PL",
              "BR",
              "MX",
              "JP",
              "KR",
              "SA",
              "AE",
              "IL",
              "CL"
            ],
            "type": "string",
            "description": "The country AliExpress prices and ships for. Prices come back in that country's currency, so every row in a run uses the same one.",
            "default": "US"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "bestMatch",
              "orders",
              "priceLowToHigh",
              "priceHighToLow"
            ],
            "type": "string",
            "description": "Order of the results, as in the AliExpress sort bar.",
            "default": "bestMatch"
          },
          "minPrice": {
            "title": "Lowest price",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep products at or above this price, in the currency of your ship to country."
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 0,
            "type": "number",
            "description": "Optional. Keep products at or below this price, in the currency of your ship to country."
          },
          "minRating": {
            "title": "Lowest star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Optional. Keep products rated at least this many stars (0 to 5). Products AliExpress shows without a rating are left out when this is set."
          },
          "minOrders": {
            "title": "Fewest orders sold",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep products with at least this many orders sold."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Ask AliExpress for products with free shipping to your ship to country only.",
            "default": false
          },
          "choiceOnly": {
            "title": "AliExpress Choice only",
            "type": "boolean",
            "description": "Ask AliExpress for Choice products only.",
            "default": false
          },
          "shipFromCountry": {
            "title": "Ships from",
            "pattern": "^$|^[A-Za-z]{2}$",
            "type": "string",
            "description": "Optional. Two letter country code of the warehouse, for example US, ES or CN, as in the AliExpress \"Ships from\" filter."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The default Apify datacenter proxy works for most searches and keeps runs cheap. You can pick residential proxy here if you prefer.",
            "default": {
              "useApifyProxy": true
            }
          },
          "unblockerFallback": {
            "title": "Retry refused pages through Apify Unblocker",
            "type": "boolean",
            "description": "When a results page fails to load three times on the proxy above (errors, timeouts or empty answers), try it once more through Apify Unblocker. A slider or \"unusual traffic\" check page is never retried, through Unblocker or otherwise. Turn off to skip such pages instead.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}