{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Global Scraper - Wholesale Products, MOQ & Suppliers",
    "description": "Extract 1688 Global wholesale products, USD and CNY tier prices, MOQ, SKU stock, variants, rankings, and supplier profiles. Export structured JSON, CSV, or Excel for wholesale sourcing, price comparisons, APIs, and AI agents via MCP.",
    "version": "0.3",
    "x-build-id": "5gwYzsnbdwBGCXtHz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~1688-global-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-1688-global-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/lentic_clockss~1688-global-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-1688-global-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/lentic_clockss~1688-global-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-1688-global-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "search",
              "ranking",
              "detail",
              "supplier",
              "facets",
              "markets"
            ],
            "type": "string",
            "description": "Auto selects detail for product URLs or offer IDs, supplier for member IDs or supplier shop URLs, and search for keyword or keywords. Select ranking, facets, or markets explicitly for ranking tabs, dynamic search filter facets, or the supported markets directory.",
            "default": "auto"
          },
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Enter a search phrase in any language or Unicode script (for example English, Chinese, Japanese, Korean, Spanish, or Arabic). Leaving all target fields empty starts the three-row phone case example, with normal charges."
          },
          "keywords": {
            "title": "Batch search keywords",
            "type": "array",
            "description": "Enter up to 50 search phrases in any language to collect multiple keyword searches in one run. Each keyword has its own maxResults allowance.",
            "items": {
              "type": "string"
            }
          },
          "offerIds": {
            "title": "Offer IDs",
            "type": "array",
            "description": "Enter numeric 1688 product IDs, such as the digits in detail.1688.com/offer/123456789.html. Direct details retain their source language and CNY prices unless translation is enabled.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Product or shop URLs",
            "type": "array",
            "description": "Enter 1688 product URLs (/offer/<number>.html or ?offerId=<number>) or supplier shop URLs (https://<shop>.1688.com/page/..., ?memberId=<id>, or /winport/<id>.html).",
            "items": {
              "type": "string",
              "pattern": "^https?://([A-Za-z0-9-]+\\.)*1688\\.com/.*$"
            }
          },
          "memberIds": {
            "title": "Supplier member IDs",
            "type": "array",
            "description": "Enter supplier member IDs, including b2b- IDs or older alphanumeric login IDs. For supplier shop URLs, paste them in startUrls.",
            "items": {
              "type": "string"
            }
          },
          "market": {
            "title": "Target market",
            "enum": [
              "US",
              "CN",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "PL",
              "PT",
              "TR",
              "RU",
              "JP",
              "KR",
              "VN",
              "TH",
              "ID",
              "MY",
              "PH",
              "SG",
              "HK",
              "TW",
              "MX",
              "BR",
              "CL",
              "CO",
              "AU",
              "CA",
              "AE",
              "SA",
              "IN",
              "ZA",
              "UK"
            ],
            "type": "string",
            "description": "Select one of 32 supported markets: 31 Global country catalogs (US default; UK aliases GB) or CN for the domestic 1688 China catalog.",
            "default": "US"
          },
          "language": {
            "title": "Output language",
            "enum": [
              "auto",
              "en",
              "zh",
              "zh-TW",
              "ja",
              "ko",
              "vi",
              "th",
              "id",
              "es",
              "fr",
              "de",
              "pt",
              "ru",
              "ar",
              "pl",
              "tr"
            ],
            "type": "string",
            "description": "Choose auto to use the selected market's default language, or override with one of 16 supported languages.",
            "default": "auto"
          },
          "currency": {
            "title": "Price currency",
            "enum": [
              "auto",
              "USD",
              "CNY",
              "GBP",
              "EUR",
              "JPY",
              "KRW",
              "VND",
              "THB",
              "IDR",
              "MYR",
              "PHP",
              "SGD",
              "HKD",
              "TWD",
              "MXN",
              "BRL",
              "AED",
              "SAR",
              "PLN",
              "TRY"
            ],
            "type": "string",
            "description": "Choose auto to use the selected market's native currency, or override with one of 20 supported currencies.",
            "default": "auto"
          },
          "maxResults": {
            "title": "Maximum rows per keyword or ID",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Most rows to deliver for each keyword, product ID or supplier member ID, from 1 to 100; default 70. Your maximum charge limits the whole run; Free Apify plan users are limited by the developer to 200 rows per run and 10 runs of this Actor.",
            "default": 70
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of search pages to check per keyword, from 1 to 5. Collection can stop sooner when the requested row limit is reached.",
            "default": 1
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "default",
              "sales",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Sort order for keyword search results.",
            "default": "default"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Optional lower price bound for keyword search in the active search currency (USD by default for US)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Optional upper price bound for keyword search in the active search currency (USD by default for US)."
          },
          "minOrderQuantity": {
            "title": "Minimum order quantity (MOQ)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional minimum order quantity filter for keyword search."
          },
          "supplierFilter": {
            "title": "Supplier badge filter",
            "enum": [
              "all",
              "super_factory",
              "certified_merchant",
              "global_verified"
            ],
            "type": "string",
            "description": "Filter keyword search results by verified 1688 supplier tier.",
            "default": "all"
          },
          "certifications": {
            "title": "Product certifications",
            "type": "array",
            "description": "Optional certification filters for keyword search. Supported codes: CE, ROHS, FCC, MSDS, UL, CPC, TUV, UKCA, CB, KC, FSC, PSE.",
            "items": {
              "type": "string"
            }
          },
          "searchTags": {
            "title": "Search filter tags",
            "type": "array",
            "description": "Optional dynamic facet or category filter IDs (returned by mode: facets) to refine keyword search results, up to 20 tags.",
            "items": {
              "type": "string"
            }
          },
          "rankingName": {
            "title": "Ranking",
            "enum": [
              "Most_Popular",
              "New_Arrivals",
              "TRENDING",
              "Trending",
              "Ranked_by_L30_Days_Total_Orders"
            ],
            "type": "string",
            "description": "Choose the ranking tab to read when mode is ranking. Trending is the older name of TRENDING; Most orders in the last 30 days was merged into Most_Popular. Rows keep the name you chose in rankingName and the tab read in rankingCode.",
            "default": "Most_Popular"
          },
          "categoryId": {
            "title": "Ranking category ID",
            "pattern": "^[0-9]+$",
            "type": "string",
            "description": "Enter the numeric category ID used by the ranking page, such as 54.",
            "default": "54"
          },
          "categoryLevel": {
            "title": "Category level",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "Category depth for the ranking filter, from 1 to 3.",
            "default": 1
          },
          "countryCode": {
            "title": "Ranking country",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Two-letter country filter for rankings, such as CN or US. Use market to switch the search catalog.",
            "default": "CN"
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Add available product specifications, SKU prices, images, shipping and ratings to search or ranking rows. Enabled by default; CNY details do not overwrite localized search prices.",
            "default": true
          },
          "maxDetailItems": {
            "title": "Maximum detail attempts",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum search or ranking rows to enrich with details, up to 20 and no more than maxResults. Use at least 1 when includeDetails is enabled; direct detail mode attempts all selected products.",
            "default": 1
          },
          "includeFullDetail": {
            "title": "Include full detail payload",
            "type": "boolean",
            "description": "Fetch full detail specifications, tier pricing and attributes when enriching product rows. Turn off to collect lightweight summary details only.",
            "default": true
          },
          "includeTranslation": {
            "title": "Include localized translation",
            "type": "boolean",
            "description": "Translate Chinese or non-localized product titles and attributes into the selected output language when native localization is unavailable.",
            "default": false
          },
          "includeLeads": {
            "title": "Include supplier contacts and company profiles",
            "type": "boolean",
            "description": "Add available supplier contacts and company fields to product rows; defaults to includeDetails. Supplier mode always attempts supplier information."
          },
          "maxLeadItems": {
            "title": "Maximum supplier enrichment rows",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum search or ranking rows to enrich with supplier information, up to 100 and no more than maxResults. Defaults to maxDetailItems; supplier mode attempts all selected suppliers."
          },
          "includeDescription": {
            "title": "Include detail description and images",
            "type": "boolean",
            "description": "Include available product description text and images when collecting product details.",
            "default": true
          },
          "includeContactInfo": {
            "title": "Include extra contact information",
            "type": "boolean",
            "description": "Attempt additional published landline and fax details. Requires includeLeads; unavailable contacts remain empty.",
            "default": false
          },
          "includeSku": {
            "title": "Include extended SKU selector",
            "type": "boolean",
            "description": "Fetch the standalone SKU selector surface for enriched product rows when available.",
            "default": false
          },
          "includeReviews": {
            "title": "Include buyer reviews as rows",
            "type": "boolean",
            "description": "Add buyer reviews of each enriched product as rows of their own (recordType review). Review rows share each input's maxResults with the product rows and are charged like any row: one offer ID with maxResults 3 gives the product and up to two reviews.",
            "default": false
          },
          "includeDsr": {
            "title": "Include seller DSR breakdown",
            "type": "boolean",
            "description": "Fetch detailed store rating tags and fulfillment scores for enriched product rows.",
            "default": false
          },
          "includeSimilar": {
            "title": "Include similar offers",
            "type": "boolean",
            "description": "Fetch comparable similarOffers cards on enriched product rows when available.",
            "default": false
          },
          "includeRecommend": {
            "title": "Include recommended offers",
            "type": "boolean",
            "description": "Fetch store recommendedOffers cards on enriched product rows when available.",
            "default": false
          },
          "incrementalMode": {
            "title": "Incremental monitoring mode",
            "enum": [
              "off",
              "diff_only",
              "state_track"
            ],
            "type": "string",
            "description": "Track product and supplier changes across runs using a persisted state snapshot: diff_only emits only new or changed rows; state_track emits all rows stamped with changeType and previousValue.",
            "default": "off"
          },
          "stateKey": {
            "title": "Incremental state key",
            "type": "string",
            "description": "Optional identifier for the incremental snapshot stored in the incremental-state key-value store. Leave empty to derive a stable key from the mode and target inputs."
          },
          "emitUnchanged": {
            "title": "Emit unchanged rows",
            "type": "boolean",
            "description": "Also emit unchanged rows (changeType: unchanged) when incrementalMode is diff_only.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired rows",
            "type": "boolean",
            "description": "Emit previously tracked items absent from the current run as rows with changeType: expired.",
            "default": false
          },
          "proxyCountry": {
            "title": "Catalog exit country",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "ES",
              "IT",
              "NL",
              "PL",
              "PT",
              "TR",
              "RU",
              "JP",
              "KR",
              "VN",
              "TH",
              "ID",
              "MY",
              "PH",
              "SG",
              "HK",
              "TW",
              "MX",
              "BR",
              "CL",
              "CO",
              "AU",
              "CA",
              "AE",
              "SA",
              "IN",
              "ZA"
            ],
            "type": "string",
            "description": "Select one of 31 supported international ISO-2 countries (US default; set market=\"CN\" for the domestic China catalog). Network routing is managed automatically; no proxy configuration is needed.",
            "default": "US"
          },
          "cursor": {
            "title": "Continue from cursor",
            "type": "string",
            "description": "Paste RUN_SUMMARY.nextCursor from an earlier run that stopped at its time limit to continue with the same search or ranking input. The site's own continuation object is pasted as JSON text (for example {\"version\":1,...}). Usually leave empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}