> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape AliExpress search results

> Searches AliExpress for `keyword` and returns the products as JSON: `title`, product `url`, `price` (numeric) + `priceFormatted` + `currency`/`currencySymbol`, `originalPrice`, `rating`, `orders` (sold count) and `images`. Sort with `sort` (relevance / orders / price_asc / price_desc / newest) and collect up to `max_results` across pages. AliExpress localises price by region, so the currency follows the exit IP; pass `proxy_country` to pin it.



## OpenAPI

````yaml /api-reference/openapi.json post /goods/aliexpress-search
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Three endpoints are
    documented here: page-source extraction, Google SERP scraping, and image
    fetch. All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /goods/aliexpress-search:
    post:
      tags:
        - Plugins
      summary: Scrape AliExpress search results
      description: >-
        Searches AliExpress for `keyword` and returns the products as JSON:
        `title`, product `url`, `price` (numeric) + `priceFormatted` +
        `currency`/`currencySymbol`, `originalPrice`, `rating`, `orders` (sold
        count) and `images`. Sort with `sort` (relevance / orders / price_asc /
        price_desc / newest) and collect up to `max_results` across pages.
        AliExpress localises price by region, so the currency follows the exit
        IP; pass `proxy_country` to pin it.
      operationId: aliexpress_search_goods_aliexpress_search_post
      parameters:
        - name: keyword
          in: query
          required: true
          schema:
            type: string
            description: What to search, e.g. 'wireless earbuds' or 'phone case'.
            title: Keyword
          description: What to search, e.g. 'wireless earbuds' or 'phone case'.
        - name: sort
          in: query
          required: false
          schema:
            type: string
            description: 'Ordering: relevance, orders, price_asc, price_desc, newest.'
            default: relevance
            title: Sort
          description: 'Ordering: relevance, orders, price_asc, price_desc, newest.'
        - name: max_results
          in: query
          required: false
          schema:
            type: integer
            maximum: 1200
            minimum: 1
            description: >-
              How many products to collect across pages (~60 per page, max
              1200).
            default: 60
            title: Max Results
          description: How many products to collect across pages (~60 per page, max 1200).
        - name: page
          in: query
          required: false
          schema:
            type: integer
            maximum: 20
            minimum: 1
            description: 1-based results page to start from.
            default: 1
            title: Page
          description: 1-based results page to start from.
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Exit-IP country (ISO-2); also pins AliExpress price currency.
              Blank for a smart exit.
            title: Proxy Country
          description: >-
            Exit-IP country (ISO-2); also pins AliExpress price currency. Blank
            for a smart exit.
      responses:
        '200':
          description: JSON with a `products` array plus totals.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked by AliExpress or no results page returned.
        '504':
          description: Fetch timed out.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````