{
  "openapi": "3.0.1",
  "info": {
    "title": "Chinese B2B Supplier & Product Finder by Province",
    "description": "Search Made-in-China.com products and suppliers by keyword or category, with province, business type, certification, price, MOQ and trust-badge filters for sourcing and lead generation.",
    "version": "2.0",
    "x-build-id": "zv28gTyK3f45a1cP3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~chinese-b2b-supplier-and-product-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-chinese-b2b-supplier-and-product-finder",
        "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/dataspryva~chinese-b2b-supplier-and-product-finder/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-chinese-b2b-supplier-and-product-finder",
        "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/dataspryva~chinese-b2b-supplier-and-product-finder/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-chinese-b2b-supplier-and-product-finder",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "searchProducts",
              "searchSuppliers",
              "categoryBrowse",
              "productDetails",
              "supplierDetails",
              "supplierProducts"
            ],
            "type": "string",
            "description": "What to scrape from Made-in-China.com.",
            "default": "searchProducts"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One or more product or supplier keywords. Used by 'Search products' and 'Find suppliers' modes (e.g. 'industrial pump', 'LED lights').",
            "items": {
              "type": "string"
            },
            "default": [
              "industrial pump"
            ]
          },
          "categoryPaths": {
            "title": "Category paths",
            "type": "array",
            "description": "Made-in-China.com catalog paths (or full catalog URLs) to browse in 'Browse a product category' mode, e.g. 'Agriculture-Food-Catalog/Beverage'.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "productUrls": {
            "title": "Product URLs or IDs",
            "type": "array",
            "description": "Product page URLs or product IDs to scrape in 'Scrape these product URLs/IDs' mode. A bare ID is resolved through the site's own search.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "supplierUrls": {
            "title": "Supplier URLs or subdomains",
            "type": "array",
            "description": "Supplier storefront URLs or subdomains, e.g. 'allslorm.en.made-in-china.com' or just 'allslorm'. Used by 'Scrape these supplier storefronts' and 'Scrape a supplier's catalog'.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "province": {
            "title": "Filter by province",
            "enum": [
              "",
              "Anhui",
              "Beijing",
              "Chongqing",
              "Fujian",
              "Gansu",
              "Guangdong",
              "Guangxi",
              "Guizhou",
              "Hainan",
              "Hebei",
              "Heilongjiang",
              "Henan",
              "Hong Kong",
              "Hubei",
              "Hunan",
              "Inner Mongolia",
              "Jiangsu",
              "Jiangxi",
              "Jilin",
              "Liaoning",
              "Macau",
              "Ningxia",
              "Qinghai",
              "Shaanxi",
              "Shandong",
              "Shanghai",
              "Shanxi",
              "Sichuan",
              "Taiwan",
              "Tianjin",
              "Tibet",
              "Xinjiang",
              "Yunnan",
              "Zhejiang"
            ],
            "type": "string",
            "description": "Only return listings whose supplier is located in this Chinese province, municipality, or region. Leave blank for no filter.",
            "default": ""
          },
          "businessType": {
            "title": "Filter by business type",
            "enum": [
              "",
              "Manufacturer/Factory",
              "Trading Company",
              "Group Corporation",
              "Other"
            ],
            "type": "string",
            "description": "Only return suppliers of this business type. Leave blank for no filter. Used by product and supplier search modes.",
            "default": ""
          },
          "goldSupplierOnly": {
            "title": "Gold/Diamond suppliers only",
            "type": "boolean",
            "description": "Only return listings from suppliers with a Gold Member, Diamond Member, or higher paid membership badge.",
            "default": false
          },
          "auditedSupplierOnly": {
            "title": "Audited suppliers only",
            "type": "boolean",
            "description": "Only return listings whose supplier carries an 'Audited Supplier' badge from an independent inspection agency.",
            "default": false
          },
          "leadingFactoryOnly": {
            "title": "Leading factories only",
            "type": "boolean",
            "description": "Only return listings whose supplier holds an 'Industry-leading Audited Factory' badge.",
            "default": false
          },
          "securedTradingOnly": {
            "title": "Secured Trading listings only",
            "type": "boolean",
            "description": "Only return listings that offer Secured Trading (payment protection and after-sales support through Made-in-China.com).",
            "default": false
          },
          "rdCapacity": {
            "title": "Filter by R&D/production capability",
            "enum": [
              "",
              "OEM",
              "ODM",
              "Own Brand",
              "Others"
            ],
            "type": "string",
            "description": "Only return products from suppliers with this R&D or production capability. Leave blank for no filter.",
            "default": ""
          },
          "certification": {
            "title": "Filter by certification",
            "enum": [
              "",
              "CE",
              "ISO",
              "RoHS",
              "CCC",
              "ISO9001"
            ],
            "type": "string",
            "description": "Only return products from suppliers who advertise this quality or safety certification. Leave blank for no filter.",
            "default": ""
          },
          "maxMinOrder": {
            "title": "Maximum minimum-order quantity",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only return products whose Minimum Order Quantity is at or below this number. Leave blank for no filter."
          },
          "priceMin": {
            "title": "Price range — minimum (USD)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Only return products whose listed price is at or above this USD value. Must be used together with the maximum; a lone bound is ignored."
          },
          "priceMax": {
            "title": "Price range — maximum (USD)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "number",
            "description": "Only return products whose listed price is at or below this USD value. Must be used together with the minimum; a lone bound is ignored."
          },
          "sampleAvailableOnly": {
            "title": "Sample available only",
            "type": "boolean",
            "description": "Only return products whose supplier offers a paid sample order ('Buy Sample').",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of records to return across all keywords, categories, or URLs.",
            "default": 50
          },
          "maxPagesPerQuery": {
            "title": "Max pages per query",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Maximum listing pages to walk for each keyword, category, or supplier catalog. Each page holds about 24-30 records.",
            "default": 20
          },
          "includeProductDetails": {
            "title": "Fetch product detail pages",
            "type": "boolean",
            "description": "Open each product page to add description, specifications, price tiers, images, video, categories, FAQ, and deeper supplier data. Adds one request per product.",
            "default": true
          },
          "includeSupplierProfile": {
            "title": "Fetch supplier profiles",
            "type": "boolean",
            "description": "Open supplier storefront and company-profile pages to add firmographics, trade terms, audit report, product groups, and verification data. Adds requests per supplier.",
            "default": true
          },
          "includeContactDetails": {
            "title": "Fetch supplier contact pages",
            "type": "boolean",
            "description": "Open the public contact page in supplier modes to add contact person, position, postal code, and showroom URL. Phone and email are not public.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}