{
  "openapi": "3.0.1",
  "info": {
    "title": "Made-in-China Scraper: Supplier Shortlist, Prices & MOQ",
    "description": "A supplier shortlist for any product on Made-in-China.com: its suppliers ranked by a sourcing score (factory, audit, membership, rating, price against the market), with their lowest price, MOQ, offers and company size. Plus products and suppliers by keyword, sourcing filters and a market summary.",
    "version": "0.1",
    "x-build-id": "B7lsJy25GpKsSHnU1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~made-in-china/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-made-in-china",
        "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/pikoulas~made-in-china/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-made-in-china",
        "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/pikoulas~made-in-china/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-made-in-china",
        "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": "Keywords",
            "type": "array",
            "description": "What to search Made-in-China.com for, as you'd type it there (LED light, solar panel 400W, hydraulic cylinder).",
            "items": {
              "type": "string"
            }
          },
          "searchFor": {
            "title": "Search for",
            "enum": [
              "shortlist",
              "products",
              "suppliers",
              "both"
            ],
            "type": "string",
            "description": "Supplier shortlist: a row per supplier of the products a keyword finds, ranked by a sourcing score out of 100 (manufacturer, audited, membership, buyers' rating, how many offers it has for the product, its price against the keyword's median), with its lowest and median price, lowest minimum order, certifications, its cheapest offers and, where Made-in-China's supplier list names it too, employees, revenue and plant area; charged as suppliers, the products read for it free. Or each keyword's product list, its supplier list, or both.",
            "default": "products"
          },
          "urls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Made-in-China.com product or supplier search pages without filters, from any page of them (https://www.made-in-china.com/products-search/hot-china-products/LED_Light.html, https://www.made-in-china.com/manufacturers/led-light_2.html).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Results per search",
            "minimum": 0,
            "type": "integer",
            "description": "The most products or suppliers taken from each search, or suppliers in a shortlist (from the products of up to 20 pages); 0 for all Made-in-China lists.",
            "default": 100
          },
          "includeProductDetails": {
            "title": "Product details",
            "type": "boolean",
            "description": "Read each product's own page too: its price tiers by quantity, its specifications (model, material, power, packaging, HS code and the rest the supplier lists), brand and description. $0.0035 a product in place of $0.0015, and slower, a page each.",
            "default": false
          },
          "maxPrice": {
            "title": "Max price (US$)",
            "minimum": 0,
            "type": "number",
            "description": "Products whose lowest price is this or less, in the unit they're sold in (a piece, a watt). Negotiable prices are left out."
          },
          "maxMinOrder": {
            "title": "Max minimum order",
            "minimum": 1,
            "type": "integer",
            "description": "Products whose minimum order (MOQ) is this or less, for small orders and samples."
          },
          "manufacturersOnly": {
            "title": "Manufacturers only",
            "type": "boolean",
            "description": "Products and suppliers whose business type names a manufacturer or factory, not a trading company alone.",
            "default": false
          },
          "auditedOnly": {
            "title": "Audited suppliers only",
            "type": "boolean",
            "description": "Products and suppliers whose supplier Made-in-China marks as audited.",
            "default": false
          },
          "certifications": {
            "title": "Certifications",
            "type": "array",
            "description": "Any of these: a product's certification (CE, RoHS, UL, FCC) or its supplier's management certification (ISO 9001, ISO 14001, BSCI); for supplier lists, the management certification.",
            "items": {
              "type": "string"
            }
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Suppliers located in any of these (Guangdong, Zhejiang, Jiangsu) or cities (Ningbo).",
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Min supplier rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Products whose supplier's buyer rating is this or higher, out of 5."
          },
          "includeSourcingSummary": {
            "title": "Sourcing summary",
            "type": "boolean",
            "description": "A free row per search over every item it read, the filtered-out ones too: for products, the price range and median in their usual unit, the median minimum order, the share audited, from manufacturers and with Secured Trading, the top provinces and certifications, and the 5 cheapest offers; for suppliers, the shares audited, manufacturing, Diamond and certified, and the top provinces.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Leave out the products and suppliers an earlier run with the same memory gave, so a scheduled run gives only what's new to you. Those left out are free; each is remembered a year.",
            "default": false
          },
          "memory": {
            "title": "Memory",
            "type": "string",
            "description": "A name for what Only new listings remembers, one per watch (solar-panels). Kept in your account's made-in-china-memory store."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}