{
  "openapi": "3.0.1",
  "info": {
    "title": "Made-in-China Product Scraper",
    "description": "Extract product details, suppliers, prices and specifications from Made-in-China.com.",
    "version": "0.1",
    "x-build-id": "mawezVtjjAFG7lhH7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apinator~made-in-china-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apinator-made-in-china-product-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/apinator~made-in-china-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-apinator-made-in-china-product-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/apinator~made-in-china-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-apinator-made-in-china-product-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": {
          "keyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Optional product search; leave empty to process only direct URLs"
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Optional product searches in order; empty entries and duplicates are ignored",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Product URLs",
            "type": "array",
            "description": "Optional HTTPS product page URLs from Made-in-China.com",
            "items": {
              "type": "string"
            }
          },
          "filters": {
            "title": "Search filters",
            "type": "object",
            "description": "Optional native filters for keyword searches only; direct product URLs are processed unchanged",
            "properties": {
              "businessType": {
                "title": "Supplier business type",
                "type": "string",
                "enum": [
                  "manufacturer",
                  "trading",
                  "group",
                  "other"
                ],
                "description": "Filter keyword searches by supplier type; these labels map to the site's business type codes.",
                "editor": "select"
              },
              "rdCapacity": {
                "title": "R&D capacity",
                "type": "string",
                "enum": [
                  "OEM",
                  "ODM",
                  "ownBrand",
                  "other"
                ],
                "description": "Filter keyword searches by the supplier's R&D capacity using one of the accepted site values.",
                "editor": "select"
              },
              "auditedOnly": {
                "title": "Audited suppliers only",
                "type": "boolean",
                "description": "When enabled, request audited suppliers in keyword search results.",
                "editor": "checkbox"
              },
              "securedTradingOnly": {
                "title": "Secured Trading only",
                "type": "boolean",
                "description": "When enabled, request suppliers supporting Secured Trading in keyword search results.",
                "editor": "checkbox"
              },
              "leadingFactoryOnly": {
                "title": "Leading Factory only",
                "type": "boolean",
                "description": "When enabled, request Leading Factory suppliers in keyword search results.",
                "editor": "checkbox"
              },
              "samplesOnly": {
                "title": "Sample offers only",
                "type": "boolean",
                "description": "When enabled, request products with sample offers in keyword search results.",
                "editor": "checkbox"
              },
              "excludeSponsored": {
                "title": "Exclude sponsored results",
                "type": "boolean",
                "description": "Skip search results marked as sponsored; unknown sponsorship remains included.",
                "default": false,
                "editor": "checkbox"
              },
              "maxMOQ": {
                "title": "Maximum minimum order quantity",
                "type": "integer",
                "minimum": 1,
                "maximum": 9223372036854776000,
                "description": "Sent to the site's minNumOrder search filter",
                "editor": "number"
              },
              "minPrice": {
                "title": "Minimum price",
                "type": "number",
                "minimum": 0,
                "description": "Provide together with maxPrice; sent via the candidate priceRange format",
                "editor": "number"
              },
              "maxPrice": {
                "title": "Maximum price",
                "type": "number",
                "minimum": 0,
                "description": "Upper price bound; provide together with minPrice for the candidate priceRange format.",
                "editor": "number"
              },
              "categoryCode": {
                "title": "Category code",
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9_.:-]+$",
                "description": "Copy the code from a Made-in-China search URL; no category codes are guessed",
                "editor": "textfield"
              },
              "propertyValues": {
                "title": "Dynamic property codes",
                "type": "array",
                "uniqueItems": true,
                "description": "Opaque codes copied from Made-in-China search URLs; sent as repeated propertyValues parameters",
                "editor": "stringList",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128,
                  "pattern": "^[A-Za-z0-9_.:-]+$"
                }
              }
            },
            "additionalProperties": false
          },
          "enrichSupplierProfiles": {
            "title": "Enrich supplier profiles",
            "type": "boolean",
            "description": "Fetch one public supplier profile per unique supplier and add fields that are present.",
            "default": false
          },
          "previousSnapshot": {
            "title": "Previous product snapshot",
            "maxItems": 10000,
            "type": "array",
            "description": "Optional array of earlier Actor output records used to compare stable product IDs, prices, explicit MOQ and availability.",
            "items": {
              "type": "object"
            }
          },
          "maxProducts": {
            "title": "Maximum products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of products collected across URLs and all searches",
            "default": 100
          },
          "maxPages": {
            "title": "Maximum search pages",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of search result pages per keyword",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}