{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Scraper — Product Details & Wholesale Supplier Search",
    "description": "1688 scraper, no login — 2,000 wholesale products in 48 s. Search by keyword (English or Chinese) or paste product links, IDs: price in CNY by quantity, MOQ, units sold, every variant (SKU) with stock, rating, supplier with years, city, scores. Failed and missing products are free. CSV, Excel, JSON.",
    "version": "1.0",
    "x-build-id": "3R5V2AnWkU6MUYQLz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/instagram-data-api~1688-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-instagram-data-api-1688-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/instagram-data-api~1688-scraper/runs": {
      "post": {
        "operationId": "runs-sync-instagram-data-api-1688-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/instagram-data-api~1688-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-instagram-data-api-1688-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": "Keywords, links or offer IDs",
            "type": "array",
            "description": "One per line, any mix: a keyword in English or Chinese (wireless earbuds, 蓝牙耳机), a 1688 search link, a product link (detail.1688.com/offer/….html) or an offer ID. A keyword or search link returns search results; a product link or ID returns that product with full details. Duplicates are dropped and never charged.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products per keyword",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "How many products to take from each keyword or search link. A page holds 60; 1688 lists at most 2,000 products per search (0 = all it lists). Product links and IDs are not counted here — each one is always read.",
            "default": 60
          },
          "includeDetails": {
            "title": "Include product details for search results ($5.35 per 1,000 instead of $1.40)",
            "type": "boolean",
            "description": "Off: each search product is one light row (title, price, price by quantity, units sold, supplier, tags). On: every search product is read in full and the row also carries every variant with its price and stock, attributes, all images, video, weight, shipping and rating — charged as a product-details row instead of a search result (not on top). A product 1688 refuses comes as the search row, at the search price.",
            "default": false
          },
          "sort": {
            "title": "Sort search results by",
            "enum": [
              "default",
              "sales",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "1688's own sort orders. A search link keeps the sort it carries.",
            "default": "default"
          },
          "minPrice": {
            "title": "Min price, CNY",
            "minimum": 0,
            "type": "number",
            "description": "1688's own price filter, in Chinese yuan. Sponsored listings may fall outside it."
          },
          "maxPrice": {
            "title": "Max price, CNY",
            "minimum": 0,
            "type": "number",
            "description": "1688's own price filter, in Chinese yuan."
          },
          "province": {
            "title": "Supplier's province",
            "type": "string",
            "description": "English or Chinese: Guangdong, Zhejiang, Fujian, 广东 … 1688's own filter."
          },
          "city": {
            "title": "Supplier's city",
            "type": "string",
            "description": "English or Chinese: Shenzhen, Yiwu, Guangzhou, 深圳 … Works together with the province."
          },
          "manufacturersOnly": {
            "title": "Manufacturers only",
            "type": "boolean",
            "description": "Keep only suppliers 1688 marks as a manufacturer (生产加工); traders are left out and not charged. The Actor reads further pages to reach your number.",
            "default": false
          },
          "excludeAds": {
            "title": "Leave out sponsored listings",
            "type": "boolean",
            "description": "Sponsored listings (ads) are left out and not charged. Every row says `isAd` either way.",
            "default": false
          },
          "includeDescription": {
            "title": "Include the description text and pictures (product details)",
            "type": "boolean",
            "description": "Adds `descriptionText` and `descriptionImages` to every product-details row: one more small file per product, no extra charge. The link to it (`descriptionUrl`) is in the row either way.",
            "default": false
          },
          "maxVariants": {
            "title": "Max variants per product",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "A product may have hundreds of variants (colour x model). The row keeps this many; `variantsCount` always says how many the page has.",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Reads at once",
            "minimum": 1,
            "maximum": 48,
            "type": "integer",
            "description": "How many products or search pages are read in parallel.",
            "default": 32
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Leave as it is: the Actor then picks the addresses 1688 lets in by itself (the run's own, datacenter, residential of several countries) and changes them as they get refused. A group, a country or your own proxies chosen here are used as they are.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}