{
  "openapi": "3.0.1",
  "info": {
    "title": "1688 Product Details Page Scraper",
    "description": "Scrape comprehensive product data from 1688.com (Alibaba's China domestic B2B marketplace) product detail pages. Extracts title, price in CNY, minimum order quantity, seller details, specifications, and product description — ideal for wholesale sourcing research, price monitoring, and supplier...",
    "version": "1.0",
    "x-build-id": "wiBpNbxEohAa4gOr9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/t3code~1688-product-details-page-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-t3code-1688-product-details-page-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/t3code~1688-product-details-page-scraper/runs": {
      "post": {
        "operationId": "runs-sync-t3code-1688-product-details-page-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/t3code~1688-product-details-page-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-t3code-1688-product-details-page-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",
        "required": [
          "productUrls"
        ],
        "properties": {
          "productUrls": {
            "title": "Product URLs",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "1688.com product detail page URLs. URLs must use an 1688.com host and contain /offer/.",
            "items": {
              "type": "string",
              "pattern": "^https?://(?:[a-z0-9-]+\\.)*1688\\.com(?:/|$)"
            }
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of product URLs to process.",
            "default": 10
          },
          "waitForMs": {
            "title": "Page settle delay (ms)",
            "minimum": 0,
            "maximum": 15000,
            "type": "integer",
            "description": "Delay after navigation before extraction so client-rendered 1688 data can settle.",
            "default": 3000
          },
          "modelWaitTimeoutMs": {
            "title": "Model wait timeout (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Maximum time to wait for the current 1688 window.context product model before using fallbacks.",
            "default": 15000
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of product pages to process at the same time. Keep low for 1688 anti-bot safety.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Request retries",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Maximum Crawlee retries for navigation or handler failures.",
            "default": 3
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout (seconds)",
            "minimum": 15,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum time allowed for each page navigation.",
            "default": 90
          },
          "requestHandlerTimeoutSecs": {
            "title": "Handler timeout (seconds)",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time allowed for one page request handler, including extraction and output.",
            "default": 120
          },
          "deduplicate": {
            "title": "Deduplicate results",
            "type": "boolean",
            "description": "Skip duplicate input URLs or extracted offer IDs before writing dataset records.",
            "default": false
          },
          "deduplicateBy": {
            "title": "Deduplication key",
            "enum": [
              "offerId",
              "url"
            ],
            "type": "string",
            "description": "When deduplication is enabled, use the requested URL or extracted offer ID as the unique key.",
            "default": "offerId"
          },
          "extractOptions": {
            "title": "Extraction options",
            "type": "object",
            "description": "Choose optional product sections to include in each dataset record. All options default to true.",
            "properties": {
              "includeMedia": {
                "title": "Media",
                "type": "boolean",
                "description": "Include product images, video URLs, video cover, and mobile/QR URL when available.",
                "default": true
              },
              "includeDescription": {
                "title": "Description",
                "type": "boolean",
                "description": "Include product description text and detail URL when available.",
                "default": true
              },
              "includeAttributes": {
                "title": "Attributes",
                "type": "boolean",
                "description": "Include product specification attributes such as material, color, and size.",
                "default": true
              },
              "includeVariants": {
                "title": "Variants and SKUs",
                "type": "boolean",
                "description": "Include SKU property dimensions and individual variant stock/sales values.",
                "default": true
              },
              "includeSeller": {
                "title": "Seller profile",
                "type": "boolean",
                "description": "Include seller and company identifiers and service information.",
                "default": true
              },
              "includeReviews": {
                "title": "Reviews and sales",
                "type": "boolean",
                "description": "Include ratings, positive-rate, review count, sales count, and repurchase rate.",
                "default": true
              },
              "includeShipping": {
                "title": "Shipping",
                "type": "boolean",
                "description": "Include shipping origin and unit weight when available.",
                "default": true
              },
              "includeBuyerProtections": {
                "title": "Buyer protections",
                "type": "boolean",
                "description": "Include enabled buyer-protection service names.",
                "default": true
              },
              "includePageMetadata": {
                "title": "Page metadata",
                "type": "boolean",
                "description": "Include canonical URL, page title, meta description, language, and extraction method metadata.",
                "default": true
              }
            },
            "additionalProperties": false
          },
          "debug": {
            "title": "Debug mode",
            "type": "boolean",
            "description": "Save a bounded rendered HTML snapshot and page diagnostics to the default key-value store.",
            "default": false
          },
          "debugHtmlMaxChars": {
            "title": "Debug HTML limit",
            "minimum": 1000,
            "maximum": 500000,
            "type": "integer",
            "description": "Maximum characters stored in each debug HTML record.",
            "default": 100000
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. RESIDENTIAL CN (China) proxy is strongly recommended for 1688.com."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}