{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Product Details Scraper: SKUs, Stock & Prices, $1.98/1K",
    "description": "$1.98/1K products in full, no start fee. Every SKU with its own price and stock. No login. Input offer links or IDs (or keywords): tier prices in CNY and USD, MOQ, attributes, images, video, weight, reviews summary, supplier profile and description. English translation.",
    "version": "0.4",
    "x-build-id": "zvCK7TrJ6i5pN7Cvr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/laptime~1688-product-details-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-laptime-1688-product-details-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/laptime~1688-product-details-scraper/runs": {
      "post": {
        "operationId": "runs-sync-laptime-1688-product-details-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/laptime~1688-product-details-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-laptime-1688-product-details-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": {
          "offerIds": {
            "title": "Offer links or ids (商品链接)",
            "type": "array",
            "description": "1688 offers to read in full, one per line: the link from your browser (https://detail.1688.com/offer/694308108048.html), the mobile link (m.1688.com/offer/…), a link with tracking parameters, or just the id (694308108048). $1.98 per 1,000 offers. A removed offer returns a free row with detailsError.",
            "items": {
              "type": "string"
            }
          },
          "includeSupplierProfile": {
            "title": "Supplier profile: shop card (店铺信息)",
            "type": "boolean",
            "description": "Adds the supplier's 1688 shop card to each row: star level (1-5), quality pass rate, fulfilment rate, shop repeat-buyer rate, followers, main category and shop type (see the \"Suppliers\" view). Free, on by default.",
            "default": true
          },
          "includeDescription": {
            "title": "Long description: text and images (详情描述)",
            "type": "boolean",
            "description": "Adds the offer's long description: its text (descriptionText) and image links (descriptionImages), in the JSON, CSV and Excel exports. Free, on by default.",
            "default": true
          },
          "translateToEnglish": {
            "title": "Translate results to English",
            "type": "boolean",
            "description": "Adds English copies next to the Chinese text: titleEn (the \"English title\" column), supplierNameEn, categoryNameEn, attribute names and values, and SKU names. +$0.50 per 1,000 translated rows (free plan: 100 rows per run). US dollar prices are on every row and SKU without this option.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name (price tracking)",
            "type": "string",
            "description": "A name for a scheduled watch (e.g. \"phone-cases-daily\"). The Actor remembers the offers and prices it delivered under this name: later runs add isNewOffer, previousPrice, priceChange, priceChangePct and soldCountChange to every row, and with onlyNew deliver only offers it has not seen. Also accepts snapshotName, or compareWithPreviousRun: true (a name derived from the input). Empty: no memory."
          },
          "onlyNew": {
            "title": "Only new offers",
            "type": "boolean",
            "description": "With a monitor name: skip offers delivered by earlier runs of the same monitor (for new-offer alerts on keywords or photos). Leave off to re-check your offer links on every run.",
            "default": false
          },
          "keywords": {
            "title": "Search keywords (关键词)",
            "type": "array",
            "description": "Optional: products to search, one per line, Chinese (手机壳) or English (phone case). Each result is opened in full ($1.98 per 1,000).",
            "items": {
              "type": "string"
            }
          },
          "searchInChinese": {
            "title": "Search in Chinese (翻译成中文搜索)",
            "type": "boolean",
            "description": "Translates keywords that aren't Chinese (English, other languages, pinyin, typos) into the Chinese term 1688 sellers use before searching: phone case → 手机壳, zapatos de mujer → 女鞋. Chinese searches find more offers and fewer off-topic ones. Rows keep your keyword in searchKeyword and show the Chinese one in searchKeywordChinese. Free. Ticked in this form for new runs (recommended); API calls and saved tasks that don't set it search as typed.",
            "default": false
          },
          "imageUrls": {
            "title": "Search by image: photo links (以图搜货)",
            "type": "array",
            "description": "Optional: links to product photos (right-click a photo, \"Copy image address\"). The 1688 offers that look like each photo are opened in full ($0.49 + $0.99 per 1,000).",
            "items": {
              "type": "string"
            }
          },
          "similarToOffers": {
            "title": "Offers similar to these 1688 offers (找同款)",
            "type": "array",
            "description": "1688 offer links or ids: each offer's main photo is searched by image and its look-alikes are returned (the offer itself is left out), e.g. to find cheaper suppliers of the same product. Charged as image matches. Optional.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results per keyword or photo",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many offers each keyword or photo returns, 1–2,000. Default 20. Your offer links are not limited by this.",
            "default": 20
          },
          "includeDetails": {
            "title": "Open keyword and photo results in full",
            "type": "boolean",
            "description": "On (default here): every keyword or photo result is read like an offer link (SKUs, stock, tiers...). Off: search fields only, $0.99 per 1,000. Offer links are always read in full.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by (排序)",
            "type": "string",
            "description": "Order of the search results: relevance (1688's default), sales (best sellers first), price-asc (cheapest first), price-desc. Keywords only: photo matches always come closest first.",
            "default": "relevance"
          },
          "deepScan": {
            "title": "Deep scan past the ~100-offer search limit",
            "type": "boolean",
            "description": "When a keyword needs more offers than one search returns (about 240), also search the other sort orders and price bands. Rows then say which variant found them (searchQuery). Off: one search per keyword.",
            "default": true
          },
          "priceMin": {
            "title": "Min price, yuan (最低价)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers priced at or above this many yuan (CNY), e.g. 5. Empty: no minimum."
          },
          "priceMax": {
            "title": "Max price, yuan (最高价)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers priced at or below this many yuan (CNY), e.g. 50. Empty: no maximum."
          },
          "maxMinOrderQuantity": {
            "title": "Max MOQ (起批量上限)",
            "minimum": 1,
            "type": "integer",
            "description": "Only offers you can order in this quantity or less (minimum order quantity ≤ this), e.g. 10. When a search card shows no MOQ, the offer page is checked (free). Empty: any MOQ. Also accepted as minOrderQuantity."
          },
          "merchantType": {
            "title": "Supplier type (商家类型)",
            "type": "string",
            "description": "All suppliers; factories (manufacturers, Super Factories and 1688-audited factories, 源头工厂); Super Factories only; 实力商家 (verified power merchants, checked on the offer page); or traders (wholesalers, and suppliers that show no factory credentials). Default: all. Offers dropped by the filter are free.",
            "default": "all"
          },
          "minSupplierYears": {
            "title": "Min years on 1688 (诚信通年限)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only suppliers that have traded on 1688 (TrustPass) for at least this many years; suppliers without a known history are dropped. Dropped offers are free. Empty: any. Also accepts supplierYears."
          },
          "province": {
            "title": "Supplier province (省份)",
            "type": "string",
            "description": "Only suppliers in this province, in Chinese or pinyin: 广东 or Guangdong, 浙江 or Zhejiang, 江苏, 福建, 山东. Empty: anywhere."
          },
          "city": {
            "title": "Supplier city (城市)",
            "type": "string",
            "description": "Only suppliers in this city, in Chinese or pinyin (义乌 or Yiwu, 深圳 or Shenzhen, 东莞...). Empty: anywhere."
          },
          "excludeKeywords": {
            "title": "Exclude titles containing (排除词)",
            "type": "array",
            "description": "Drop offers whose title contains any of these words (case-insensitive), e.g. 二手 (second-hand), 定制 (custom-made).",
            "items": {
              "type": "string"
            }
          },
          "excludeAds": {
            "title": "Skip paid placements (排除广告)",
            "type": "boolean",
            "description": "Drop the sponsored (P4P) offers 1688 mixes into search results.",
            "default": false
          },
          "proxyCountry": {
            "title": "Proxy country",
            "type": "string",
            "description": "Country of the residential IPs (1688 serves logged-out visitors outside mainland China). US is the fastest in our tests; HK, SG, JP and others work too, and the run switches country by itself when one is refused. CN is replaced with US. Default US.",
            "default": "US"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}