{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Wholesale Scraper — Factory Prices, MOQ, Landed Cost",
    "description": "1688 wholesale scraper (Alibaba 1688, 阿里巴巴批发): paste an Amazon, AliExpress or Shopify product for a sourcing verdict (factory, landed cost, margin) or search 1688 by keyword for factory prices, quantity tiers, MOQ and supplier signals. Pay per verdict, candidate and product. Unofficial.",
    "version": "0.1",
    "x-build-id": "d04pRRzalGOnbvW2n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ntriqpro~china-1688-wholesale-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ntriqpro-china-1688-wholesale-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/ntriqpro~china-1688-wholesale-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ntriqpro-china-1688-wholesale-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/ntriqpro~china-1688-wholesale-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ntriqpro-china-1688-wholesale-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": {
          "keywords": {
            "title": "Search keywords (any language)",
            "type": "array",
            "description": "Type what you want to find on 1688 in any language, for example \"phone holder\". Chinese keywords are searched as written; on paid plans, English and other languages are translated to Chinese for you at no extra charge (on the free preview, or if translation is unavailable, the keyword is searched as written and a free notice row says so). Each result row shows keywordOriginal, keywordChinese and keywordMethod.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Maximum unique products",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Total products across keywords, $0.005 each. Free plan preview: 10 products per run. Search pages can return fewer products."
          },
          "pages": {
            "title": "Pages per keyword",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Maximum sequential search pages for each keyword, within the total result limit."
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Anonymous Chrome + CN residential proxy collection of SKU variants, attributes, MOQ, images, supplier and shipping signals. Each product whose details were collected adds one product-detail event ($0.08); blocked pages keep the search data and are not charged for details. Select at least 2048 MB memory. Free plan: details for 2 products per run."
          },
          "translateTitles": {
            "title": "AI English titles",
            "type": "boolean",
            "description": "AI English titles on paid plans, $0.002 per translated title (a failed translation is not charged). Free plans keep the original Chinese titles. A missing operator key or provider failure is disclosed."
          },
          "products": {
            "title": "Products you sell (sourcing verdict mode)",
            "type": "array",
            "description": "Up to 20 items. Each item is a product page URL (Amazon /dp/ASIN, AliExpress /item/ID.html, or a Shopify /products/ page), a JPEG/PNG image URL, or an object {\"url\", \"imageUrl\", \"sellingPrice\", \"currency\"}. When set, the Actor runs sourcing-verdict mode instead of keyword search. $0.25 per verdict; a product whose page or image the source answered with not-found or blocked still gets a verdict row saying so. Free plan: 1 verdict per run. A price you supply overrides the extracted price."
          },
          "candidatesPerProduct": {
            "title": "Factory candidates per product",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many 1688 photo-search candidates to evaluate per product. Each delivered candidate row is one factory-candidate event ($0.004). Free plan: 3 candidate rows per run (the pick and its closest alternatives). Candidates beyond your spending limit or the free preview are not stored or shown.",
            "default": 10
          },
          "detailCandidates": {
            "title": "Detailed candidates per product",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "How many of the best-matching candidates also get the 1688 detail lookup (quantity price tiers, MOQ, seller profile) before the verdict. Each successful detail is one product-detail event ($0.08); a failed lookup is not charged. About 20 seconds each. Free plan: 1 per run.",
            "default": 2
          },
          "orderQuantity": {
            "title": "Planned order quantity",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Units you plan to buy. The verdict prices the quantity tier that applies to this amount. If empty, each candidate is priced at its minimum order quantity."
          },
          "costAssumptions": {
            "title": "Your landed-cost and fee assumptions",
            "type": "object",
            "description": "Optional numbers: domesticShippingPerUnitCny, internationalShippingPerUnitUsd, dutyRatePercent (applied to the product cost), marketplaceFeePercent (of your selling price), fulfillmentFeePerUnitUsd, otherPerUnitUsd, and a source note. A missing number is reported as missing; it is never treated as zero. These are your assumptions, not shipping quotes or customs rulings."
          },
          "landedCost": {
            "title": "Landed-cost assumptions",
            "type": "object",
            "description": "Optional object: quantity, unit (exact source unit), domesticShippingCny, internationalShippingUsd, dutyUsd, taxUsd, feesUsd, quoteSource and quotedAt (ISO date). All costs must be explicit, including any actual zero. Missing costs produce null, not zero."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}