{
  "openapi": "3.0.1",
  "info": {
    "title": "AliExpress Search Scraper & Price Tracker: Products & Sales",
    "description": "Search AliExpress by keyword, compare listing prices across delivery countries, and track changes over time. Export products, prices, discounts, ratings and available sales and shipping data to CSV or JSON. Start with one keyword and five results.",
    "version": "1.1",
    "x-build-id": "5fH8NEbN71kDNXM8v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hirepulse~aliexpress-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hirepulse-aliexpress-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/hirepulse~aliexpress-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hirepulse-aliexpress-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/hirepulse~aliexpress-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hirepulse-aliexpress-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": {
          "queries": {
            "title": "Searches",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "AliExpress search keywords, one per item, up to 20 per run. Also accepts singular \"query\", \"keyword\", or \"search\". Example: [\"yoga mat\", \"usb c cable\"].",
            "default": [
              "yoga mat"
            ],
            "items": {
              "type": "string"
            }
          },
          "max_results_per_query": {
            "title": "Max products per search",
            "minimum": 1,
            "maximum": 1200,
            "type": "integer",
            "description": "Maximum products per keyword: 1–1,200, over at most 20 pages. Start with 5 to inspect relevance. Free-plan preview is capped at 100 products total per run. Source limits, repeated pages or blocking can produce fewer results; inspect the run summary.",
            "default": 5
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "best_match",
              "orders",
              "price_low",
              "price_high"
            ],
            "type": "string",
            "description": "best_match for relevance; orders for source-reported cumulative units sold; price_low or price_high for listing prices. Sold counts are not sales in a fixed time period.",
            "default": "best_match"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "BRL",
              "MXN",
              "PLN",
              "ILS",
              "JPY",
              "KRW",
              "INR",
              "TRY",
              "CHF",
              "SEK"
            ],
            "type": "string",
            "description": "Currency of all prices, one of the listed codes. Example: \"EUR\". Default: \"USD\".",
            "default": "USD"
          },
          "ship_to": {
            "title": "Ship to country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Delivery country as a two-letter ISO code. Prices and availability follow it, as on the website. Example: \"DE\". Default: \"US\".",
            "default": "US"
          },
          "min_price": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or above this value, as a whole number. Example: 5. Optional."
          },
          "max_price": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at or below this value, as a whole number. Example: 50. Optional; must not be below min_price."
          },
          "track_changes": {
            "title": "Track price and sales changes between runs",
            "type": "boolean",
            "description": "When true, each product also gets a \"changes\" object comparing it with the previous run of the same search, currency and country: previous_price, price_change, price_change_percent, sold_since_previous_run, recent_sold_per_day, previous_position and first_seen. The snapshot is kept in a key-value store named \"aliexpress-search-history\" in your own account. The first run only records the baseline. Run the same search on a schedule to see changes. No extra charge.",
            "default": false
          },
          "compare_countries": {
            "title": "Also compare prices in these countries",
            "maxItems": 10,
            "type": "array",
            "description": "Optional. Two-letter country codes, up to 10. Example: [\"DE\", \"GB\", \"AU\"]. Each product then has a \"country_comparison\" object with its listing price in every country where the same product appeared in the search results, the cheapest country and the price spread. All prices are in the selected currency. A product that is not in another country's results is listed under not_in_results; that does not mean it cannot be bought there. No extra charge.",
            "items": {
              "type": "string"
            }
          },
          "store_product_urls": {
            "title": "Supplier match: Shopify product links",
            "maxItems": 20,
            "type": "array",
            "description": "Optional. Up to 20 product page links from Shopify stores, such as https://store.com/products/product-name. When set, the run does supplier matching only and ignores \"queries\": it reads each product's public title and price, searches AliExpress by the title, and returns the 5 closest listings with title_similarity and, when the store currency equals the selected currency, the price gap. Matching is by title text only; it does not confirm that a listing is the same product. Charged per returned listing.",
            "items": {
              "type": "string"
            }
          },
          "use_paid_upstream": {
            "title": "Allow external paid upstream (owner opt-in)",
            "type": "boolean",
            "description": "Off by default. Supported paid sources also require the owner-controlled HIREPULSE_ALLOW_PAID_UPSTREAM=1 environment setting. Keep false for all quality and smoke checks.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}