{
  "openapi": "3.0.1",
  "info": {
    "title": "Lazada Products Scraper",
    "description": "Lazada Products Scraper exports Lazada products from search terms, search or category links and product links in 6 countries: price, discount, rating, sold count, seller, brand, LazMall, stock, images, specs, variants, description and optional reviews. No login.",
    "version": "1.0",
    "x-build-id": "v2B02eo0bpEJLu3o2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~lazada-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-lazada-products-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/neuro-scraper~lazada-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-lazada-products-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/neuro-scraper~lazada-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-lazada-products-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": "Keywords to search on Lazada, e.g. \"phone case\". Each term is searched separately and Max products applies to each term.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Lazada links (optional)",
            "type": "array",
            "description": "Search links (/catalog/?q=...), category or tag links (/shop-.../, /tag/.../) or product links (/products/...-i<itemId>.html). The country is read from the link.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Lazada categories to list, one per line: a category name as it appears in Lazada category links (\"mobiles\", \"laptops\", \"womens-dresses\"), the path (\"shop-mobiles\") or a full category link. Every category is paged like a search and uses the same filters and limits. Example: mobiles -> the \"Mobiles\" category of the chosen country.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "my",
              "sg",
              "ph",
              "th",
              "vn",
              "id"
            ],
            "type": "string",
            "description": "Lazada country site for search terms. Links you paste keep their own country.",
            "default": "my"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "search",
              "product",
              "reviews",
              "product_reviews"
            ],
            "type": "string",
            "description": "Auto: search terms and search links give products, product links give product details. Reviews only / Products with reviews add review rows.",
            "default": "auto"
          },
          "maxItems": {
            "title": "Max products per search term / link",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Lazada lists 40 products per page; pages are read one after another until this number or the last page. Applies to each search term and each link.",
            "default": 40
          },
          "maxPages": {
            "title": "Max pages per search (0 = no page limit)",
            "minimum": 0,
            "maximum": 102,
            "type": "integer",
            "description": "Stop each search term or link after this many result pages (40 products each).",
            "default": 0
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "popularity",
              "priceasc",
              "pricedesc"
            ],
            "type": "string",
            "description": "Order of the search results, applied by Lazada.",
            "default": "popularity"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only products from this price on, in the country's currency (Lazada's price filter). 0 = no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only products up to this price, in the country's currency. 0 = no maximum.",
            "default": 0
          },
          "minRating": {
            "title": "Minimum rating (stars)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only products rated this many stars or more (Lazada's rating filter). 0 = all.",
            "default": 0
          },
          "lazMallOnly": {
            "title": "LazMall only",
            "type": "boolean",
            "description": "Only products of LazMall (official brand) stores.",
            "default": false
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only products Lazada marks with free shipping.",
            "default": false
          },
          "homepageOnly": {
            "title": "Home page Flash Sale snapshot only",
            "type": "boolean",
            "description": "Read only the Flash Sale block of the Lazada home page of the chosen country (usually 6 products, with flash price, normal price, discount and sold count). Search terms, categories and links are skipped in such a run.",
            "default": false
          },
          "specialsOnly": {
            "title": "Flash Sale only",
            "type": "boolean",
            "description": "Read only the products of the Lazada flash-sale page (the page the home page Flash Sale block links to), up to Max items. Search terms, categories and links are skipped in such a run.",
            "default": false
          },
          "fetchDetails": {
            "title": "Open each product page (full details)",
            "type": "boolean",
            "description": "Adds description, highlights, specifications, variants, all images, category path, seller ratings, delivery options and the rating summary. Off = faster, search-card fields only.",
            "default": true
          },
          "fetchSpecifications": {
            "title": "Specifications and seller ratings (slower)",
            "type": "boolean",
            "description": "Also opens each product page completely to add the specification table, seller rating and store tags, ratings per star, delivery options and warranty. Takes about 10-40 s per product (2 pages at a time).",
            "default": false
          },
          "fetchReviews": {
            "title": "Add reviews",
            "type": "boolean",
            "description": "Adds review rows (stars, text, reviewer, date, variant bought, photos, likes) after each product. Same as mode Products with reviews.",
            "default": false
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Reviews are loaded page after page until this number or the last page.",
            "default": 10
          },
          "reviewsRating": {
            "title": "Review star filter",
            "enum": [
              "all",
              "5",
              "4",
              "3",
              "2",
              "1"
            ],
            "type": "string",
            "description": "Keep only reviews with this many stars.",
            "default": "all"
          },
          "incrementalMode": {
            "title": "Only new or changed products",
            "type": "boolean",
            "description": "Remembers products between runs (by state key) and saves only products that are new or whose price, stock, rating or sold count changed.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Emit unchanged products (incremental mode only)",
            "type": "boolean",
            "description": "With Incremental mode on, products whose price, stock, rating, sold count and review count did not change since the last run are normally left out. Turn this on to write them too (changeType = \"unchanged\").",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired products (incremental mode only)",
            "type": "boolean",
            "description": "With Incremental mode on, write one row with changeType = \"expired\" for every product that an earlier run of the same search, category or link found but this run did not find any more (sold out, delisted or out of the results). Such a product is then forgotten.",
            "default": false
          },
          "stateKey": {
            "title": "State key (incremental mode)",
            "type": "string",
            "description": "Name of the memory used by incremental mode. Use one key per monitored search.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Parallel product pages",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many product pages are opened at the same time when details or reviews are on.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default; the proxy country follows the Lazada country of each search.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}